Getting an Error when trying to fulfill an order

We are developing a fulfillment app to get data for orders from Shopify into our fulfillment system. I am able to get the orders but when I post a fulfillment I am getting a strange response shown below.

I am using Postman for testing then building it out one API at a time.

The Order ID I am using is 4606998708436 which should be valid based on this…

[email removed]

With this body…

{
    "fulfillment": {
        "location_id": 66633203924,
        "tracking_number": "123456789",
        "tracking_urls": [
            "https:\/\/shipping.xyz\/track.php?num=123456789",
            "https:\/\/anothershipper.corp\/track.php?code=abc"
        ],
        "notify_customer": true
    }
}

This is the response I am seeing in Postman…


  
    

    
  

When I copy the URL from the continue href I land on this page…

Then I will select my account and land on this page…

I really have no idea what I am doing wrong here but tried to give as much info as possible. Anyone have any idea what is going on here? I have even tried creating a second private app with new API keys but the same thing happens get requests for Orders and Locations both work but then fail on the post to fulfill an order.

Hi @travistqualfon

Looks like you’re running in to an issue with authorization. Could you please try clearing all the cookies from Postman and give the request another try? Hope this helps!

Regards,

1 Like

I have the same problem. Have you solved it

I’m experiencing the same issue. Did anyone find a resolution to this issue?

Hi @Aga_Pawluczuk ,

Have you tried removing cookies from your HTTP client and using a X-Shopify-Access-Token header in your requests instead of using basic authentication like those examples from 2021 above?

Our documentation on authentication also has the expected formatting in cURL.

Hope that helps.