Liquid, JavaScript, themes, sales channels
I am trying to call Fulfillment API from version 2022-10 to fulfill an order in Shopify. Calling the API by passing Shopify API Key and Password and generating the token using Basic Authentication.
URL: https://{store}.myshopify.com/admin/api/2022-10/fulfillments.json
JSON:
{
fulfillment:
{
location_id: {locationid},
tracking_number: {tracking_number},
tracking_company: {tracking_company},
notify_customer: false,
line_items_by_fulfillment_order:
{
fulfillment_order_id: {orderid}
}
}
}
The API is returning Response with Status Code as ‘Forbidden’ and message as The api_client does not have the required permission(s).
I checked in Shopify account for access scopes and the account/app has been granted write_fulfillments access. Is there any additional scope required for the API call?
Hello @mayurib_cloud9,
Thank you for reaching out to the Shopify community.
It appears that you are experiencing an issue with the fulfillment resource. Please ensure that you have sufficient access to use this resource. The following scopes are required to create a fulfillment for the order:
Once you have confirmed that you have all the necessary access, please follow the instructions outlined below:
Here is the Postman collection for further reference/additional use.
If you encounter any difficulties or require further assistance, please do not hesitate to let us know. We are here to support you and ensure a smooth resolution of the issue.
Thanks
User | RANK |
---|---|
37 | |
24 | |
13 | |
11 | |
8 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023