POST create fulfillments

New Member
5 0 0

Hi Shopify, 


I ran into a problem that got me stuck. I want to create fulfillment for, a location called Testlokation as shown on picture below:


Skærmbillede 2020-05-28 kl. 08.46.54.png


But when i try to make a POST request to /admin/api/2020-04/orders/2279048347780/fulfillments.json


With following data (example from guide):

  "fulfillment": {
    "location_id": 45549650052,
    "tracking_number": "123456789",
    "tracking_urls": [
    "notify_customer": true

I get alot of HTML as response, and nothing is created. The reply from this request is seen below:



	<script type="text/javascript">
		window.location = "https:\/\/\/services\/login\/identity?destination_uuid=283aeb0b-b751-4d97-87e4-3679f97bcd87\u0026prompt=merge\\u0026ui_locales=en\u0026ux=shop";


Have any of you experienced this? And if so, what did you do to solve this?


Shopify Staff
Shopify Staff
534 105 103



Is this happening for all POST requests? It usually is one of two things: 
1. You are sending cookies with your request (try and delete them all) 

2. Your authentication is wrong 

Vix | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog