I am trying to get the sales order through rest API in PHP from unicommerce.com. The issue is I could not able to understand the parameter to fetch the data from the server via API. as I understand I successfully get the data from the server access-token from this page using my credentials, but I am trying to get sales-order due to very few parameters I could not understand what I pass to get the data. The page only showing this data to pass -
Basic Information
NAME | DETAILS |
---|---|
Endpoint: | /services/rest/v1/oms/saleorder/get |
Request Type: | POST |
Level: | Tenant |
Scheme: | HTTPS |
Header (Content-Type): | application/json |
Header (Authorization): | bearer {access-token}, Eg.: bearer b30f3aea-7978-49bb-9ea7-33eddfc80afa |
I am using like this but it not working and showing the error -
{"error":"unauthorized","error_description":"An Authentication object was not found in the SecurityContext"}
https://subdomain.unicommerce.com/services/rest/v1/oms/saleorder/get?bearer=b30f3aea-7978-49bb-9ea7-33eddfc80afa