question

pr7977 avatar image
0 Likes"
pr7977 asked

How set Order status using api in php

I am developing my eshop using php

I am going to implement update function of order status on my project

when update order status on my eshop, I need to update order status on the ebay

I have used ebay-sdk-examples (https://github.com/davidtsadler/ebay-sdk-examples)


I can't not find order setting function from eshop to ebay


Can someone give me the source code to set order status using API in PHP?

orderstatus
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
nicpoo87 avatar image
0 Likes"
nicpoo87 answered

If you look at the swagger api documents (either on your local machine at /swagger or at the devdocs). You should find the API V1/orders. If you are using your local version you will also have the button to try to calls direct from swagger which is nice for debugging. From looking through the documents you should be able to post something like the following to the api.

{  "entity": {    "entity_id": 0,    "status": "string"  } }

Remember to replace the entity_id with the correct order id and the status with the status you would like to change to.

myLoneStar login

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.