codeswholesale / codeswholesale-sdk-php

A PHP wrapper for CodesWholesale's API
Apache License 2.0
36 stars 21 forks source link

Retrieving ProductId from preorder postback #10

Closed rchoffardet closed 6 years ago

rchoffardet commented 8 years ago

Hello,

I'm using your SDK and I'm seeking to retrieve the productId from $productOrdered as $productOrdered = $client->receiveProductOrdered(); so i'll be able to associate these two and gives codes where it needs to go.

Could you help me ?

codeswholesale commented 7 years ago

I'll take a look at it, sorry for such long response

codeswholesale commented 6 years ago

Hey @rchoffardet,

I am really sorry for the big delay on our side. Now that we have moved from API v1 to v2, I'm back with the right answer to you! You will receive an order ID for the preorder postback, which will enable you to send a request to the OrderHistory endpoint. Here, you will find a lot of information about the previous orders.

Remember to take a quick look at our recent update and features!

Cheers!