Hello everyone,
When I create an order from the “create an order” endpoint. The order gets created successfully.
Then I get the fulfilment id for that order and call the “Send a fulfilment request” endpoint. The error I get there is confusing me since I am new to Shopify endpoints. I am attaching the body for the request for both endpoints. It will be great if someone can help me understand why I get this error.
Create an Order
**[https://gf-store-for-test.myshopify.com/admin/api/2022-04/fulfillments.json](https://gf-store-for-test.myshopify.com/admin/api/2023-01/fulfillments.json)**
{
"order": {
"currency": "PKR",
"line_items": [
{
"quantity": 23,
"title": "Some Title",
"grams": "100",
"fulfillment_service": "My New Fulfillment Service",
"price": 50
}
]
}
}
Send a Fulfillment Request
**[https://gf-store-for-test.myshopify.com/admin/api/2022-04/orders/{{fullfilmentorderid}}/fulfillment_orders.json](https://gf-store-for-test.myshopify.com/admin/api/2022-04/orders/5267156304186/fulfillment_orders.json)**
{
"fulfillment_request": {
"message": "some message"
}
}
The error I get is “The fulfillment order’s assigned fulfillment service must be of api type”. Not sure what it means by this.
Help is appreciated.