Question:
I am trying to fulfil a order by sending tracking code to test order on test store but I am getting 403 Forbidden error
Product:
REST API e-commerce/order-fulfillments/create-fulfillment
What are you trying to achieve:
Send tracking code to the order id 430e3b0f-a2b3-4a99-aed3-8359f1ba46ee
Here is request:
{“fulfillment”:{“lineItems”:[{“id”:“00000000-0000-0000-0000-000000000001”,“quantity”:1}]},“trackingInfo”:{“trackingNumber”:“123456789”,“shippingProvider”:“FEDEX”}}
Request type: POST
Request URL: https://www.wixapis.com/ecom/v1/fulfillments/orders/430e3b0f-a2b3-4a99-aed3-8359f1ba46ee/create-fulfillment
And here is response:
Array
(
[headers] => Array
(
[status] => HTTP/1.1 403 Forbidden
[date] => Fri, 26 Jul 2024 15
[content-type] => application/json
[Content-Length] => 27
[x-wix-responded-by] => wix.ecom.v1.fulfillments
[x-seen-by] => xIKq3IotbbLp4+7DTTMx8R9slopJdhD+WySraMrpIY8=,m0j2EEknGIVUW/liY8BLLnE0+sv3Cu6axHpMgnDQFcN9UuJLvoOY0uBy3RuVN3og,jdDt270t0fniy2BugWKBre8atL/Z9lpvTN+njMF8rRZEQfi00LSS7LJu7sdkoLsDYcKIT6vFC0hJZppLdrvjgg==,r6yY0ta7bIKrqK70x072lUTSTxlJVohIntBGHKrbVSs=
[x-wix-request-id] => 1722008841.5832239317773796866
[set-cookie] => XSRF-TOKEN=1722008841|q8sna89Acu_a; Path=/; Domain=www.wixapis.com; Secure; SameSite=None
[server] => Pepyaka
[x-content-type-options] => nosniff
[via] => 1.1 google
[glb-x-seen-by] => wMMTADooq5AJ3cFomJ/MuXOQWGce7NCZXKms1ErOpBs=
[Alt-Svc] => h3="
[code] => 403
)
[body] => {"message":"","details":{}}
)
The token is current and I can make other api calls just fine and all required permissions are there for the app. Please see screenshot from URL below:
Screenshot
Did anyone faced this issue?