Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Fulfillment API Not Working

Solved

Fulfillment API Not Working

galago
Tourist
4 1 0

Hi,

I am trying to create fulfillment for a order, with lines undefined to fulfil all order lines.

To Confirm my Order is good I am calling the fulfillment_orders end point

https://{MYSHOP}.myshopify.com/admin/api/2024-04/fulfillment_orders/7007017992539.json

This is returning :

{
    "fulfillment_order": {
        "id": 7007017992539,
        "shop_id": 82397462875,
        "order_id": 5991735230811,


However when trying to Create Fulfillment I am getting an error

https://{MYSHOP}.myshopify.com/admin/api/2024-04/fulfillments.json

The  payload is

 

{
    "fulfillment": {
        "line_items_by_fulfillment_order": [
            {
                "fulfillment_order_id": 7007017992539
            }
        ],
        "tracking_info": {
            "number": "MS1562678",
        }
    }
}
Response 200 OK

However the error response starts with this:
<html>

<body>
    <noscript>
        <a

Just to confirm response from /access_scopes.json

{
    "access_scopes": [
        {
            "handle": "read_inventory"
        },
        {
            "handle": "write_inventory"
        },
        {
            "handle": "write_fulfillments"
        },
        {
            "handle": "read_fulfillments"
        },
        {
            "handle": "write_orders"
        },
        {
            "handle": "read_orders"
        },
        {
            "handle": "read_product_feeds"
        },
        {
            "handle": "read_products"
        },
        {
            "handle": "write_products"
        },
        {
            "handle": "write_assigned_fulfillment_orders"
        },
        {
            "handle": "read_assigned_fulfillment_orders"
        },
        {
            "handle": "write_merchant_managed_fulfillment_orders"
        },
        {
            "handle": "read_merchant_managed_fulfillment_orders"
        },
        {
            "handle": "write_third_party_fulfillment_orders"
        },
        {
            "handle": "read_third_party_fulfillment_orders"
        },
        {
            "handle": "write_custom_fulfillment_services"
        },
        {
            "handle": "read_custom_fulfillment_services"
        },
        {
            "handle": "write_fulfillment_constraint_rules"
        },
        {
            "handle": "read_fulfillment_constraint_rules"
        },
        {
            "handle": "write_discounts_allocator_functions"
        },
        {
            "handle": "read_discounts_allocator_functions"
        },
        {
            "handle": "read_all_orders"
        }
    ]
}

Any suggestions / help please urgently required.

Thanks
Kevin





Accepted Solution (1)

galago
Tourist
4 1 0

This is an accepted solution.

I have figured this out - these API required a different kind of authorization to the other APIs I was using 

View solution in original post

Reply 1 (1)

galago
Tourist
4 1 0

This is an accepted solution.

I have figured this out - these API required a different kind of authorization to the other APIs I was using