Creates a fulfillment 404 Not Found

jk-lyb
Tourist
4 0 1

I have obtained the idfulfillment_order_id

Creates a fulfillment 404 Not Found

Replies 2 (2)

jk-lyb
Tourist
4 0 1
x-request-id: 1fbb74b3-e4d6-492e-acb2-8afab087e804-1713259952
curl --location 'https://xxx.myshopify.com/admin/api/2024-04/orders/xxx/fulfillment_orders.json' \
--header 'X-Shopify-Access-Token: xxx'

I have obtained the idfulfillment_order_id

x-request-id: 72509ad7-d924-49af-a127-4626204d193b-1713259784
curl --location 'https://xxx.myshopify.com/admin/api/2023-07/fulfillments.json' \
--header 'X-Shopify-Access-Token: xxx' \
--header 'Content-Type: application/json' \
--header 'Cookie: request_method=POST' \
--data '{
    "fulfillment": {
        "notify_customer": true,
        "tracking_info": {
            "number": xxx,
            "url": "xxx"
        },
        "line_items_by_fulfillment_order": [
            {
                "fulfillment_order_id": xxx
            }
        ]
    }
}'
jk-lyb
Tourist
4 0 1
x-request-id: 91fa4406-5baa-480d-922a-de18beec14ef-1713320815
curl --location 'https://xxx.myshopify.com/admin/api/2024-04/orders/xxx/fulfillment_orders.json' \
--header 'X-Shopify-Access-Token: xxx'

response:
{
    "fulfillment_orders": [
         "line_items": [
                {
                    "fulfillment_order_id": xxx
                }
            ],
    ]
}


x-request-id: 74c8e7c9-e6b5-43de-82cf-7d24f2c7b9b0-1713320835
curl --location 'https://xxx.myshopify.com/admin/api/2024-04/fulfillments.json' \
--header 'X-Shopify-Access-Token: xxx' \
--header 'Content-Type: application/json' \
--header 'Cookie: request_method=POST' \
--data '{
    "fulfillment": {
        "notify_customer": true,
        "tracking_info": {
            "number": xxx,
            "url": "xxx"
        },
        "line_items_by_fulfillment_order": [
            {
                "fulfillment_order_id": xxx
            }
        ]
    }
}'
response:

{

    "errors": "Not Found"

}