I wanted to find out whether an order as already been paid by credit cart or is set to COD. I could not find information regarding payment type in the order details gotten through https://{accountName}.{environment}.com.br/api/oms/pvt/orders/{orderId}, so I hit a request to retrieve order payment transactions through https://{accountName}.{environment}.com.br/api/oms/pvt/orders/{orderId}/payment-transaction:
That´s strange. Here it´s working. Are you using a real order in your test?
Just a note, it´s good to erase the host and the key details (even the name),
Thanks for pointing out the GDPR sensitive data in the image attached. Corrected it.
And thanks for the answer. I was using a real order in my tests. It means that the problem lies somewhere else, maybe in our server’s configuration to handle responses.
Have a nice day!
I had a second thought about it and I believe I found the reason.
The payment information is in the main account. So you have to call the API in the main account instead of calling the franchise account. The order number in the main account doesn´t have the prefix GCB.
Or is the order from an external marketplace?
The order is from the franchise account.
I tried the payment-transaction request for the order without the GCB prefix (witout anything else changed), but that returned a 404 HTTP status.
How should the main account API be called? I haven’t found any information regarding this.
Is the URL the same? Can I use the same X-VTEX-API-AppKey - X-VTEX-API-AppToken pair that I use to fetch orders?
Or could you point me to a page in the online documentation where I could find this information?
Thank you for your help.
Can you use the Admin? Check the transactions page. If it´s empty means the payment information is in another account.
" No transactions found. Please try other search terms or filter combinations."