FulfillmentRequest

Version 2020-01 (Latest)

The FulfillmentRequest resource represents a fulfillment request made by the merchant to a fulfillment service for a fulfillment order.

What you can do with FulfillmentRequest

The Shopify API lets you do the following with the FulfillmentRequest resource. More detailed versions of these general actions may be available:

Endpoints

POST /admin/api/2020-01/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request.json
Sends a fulfillment request to the fulfillment service of a fulfillment order.
message

An optional message for the fulfillment request.

fulfillment_order_line_items

The fulfillment order line items to be requested for fulfillment. If left blank, all line items of the fulfillment order are requested for fulfillment.

Sends a fulfillment request to the fulfillment service of a fulfillment order for the specified line items

POST /admin/api/2020-01/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request.json
{
  "fulfillment_request": {
    "message": "Fulfill this ASAP please.",
    "fulfillment_order_line_items": [
      {
        "id": 1025578637,
        "quantity": 1
      },
      {
        "id": 1025578638,
        "quantity": 1
      }
    ]
  }
}
View Response
HTTP/1.1 200 OK
{
  "original_fulfillment_order": {
  "id": 1025578632,
  "shop_id": 690933842,
  "order_id": 1073459969,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "unsubmitted",
  "status": "closed",
  "supported_actions": [],
  "destination": {
    "id": 1025578627,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578637,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578632,
      "quantity": 1,
      "line_item_id": 1071823182,
      "inventory_item_id": 39072856,
      "fulfillable_quantity": 1,
      "variant_id": 39072856
    },
    {
      "id": 1025578638,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578632,
      "quantity": 1,
      "line_item_id": 1071823183,
      "inventory_item_id": 457924702,
      "fulfillable_quantity": 1,
      "variant_id": 457924702
    },
    {
      "id": 1025578639,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578632,
      "quantity": 1,
      "line_item_id": 1071823184,
      "inventory_item_id": 49148385,
      "fulfillable_quantity": 1,
      "variant_id": 49148385
    }
  ],
  "outgoing_requests": []
},
  "submitted_fulfillment_order": {
  "id": 1025578633,
  "shop_id": 690933842,
  "order_id": 1073459969,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "submitted",
  "status": "open",
  "supported_actions": [
    "cancel_fulfillment_order"
  ],
  "destination": {
    "id": 1025578628,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578640,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578633,
      "quantity": 1,
      "line_item_id": 1071823182,
      "inventory_item_id": 39072856,
      "fulfillable_quantity": 1,
      "variant_id": 39072856
    },
    {
      "id": 1025578641,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578633,
      "quantity": 1,
      "line_item_id": 1071823183,
      "inventory_item_id": 457924702,
      "fulfillable_quantity": 1,
      "variant_id": 457924702
    }
  ],
  "outgoing_requests": [
    {
      "message": "Fulfill this ASAP please.",
      "request_options": {
        "notify_customer": false
      },
      "sent_at": "2020-02-06T12:45:31-05:00",
      "kind": "fulfillment_request"
    }
  ]
},
  "unsubmitted_fulfillment_order": {
  "id": 1025578634,
  "shop_id": 690933842,
  "order_id": 1073459969,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "unsubmitted",
  "status": "open",
  "supported_actions": [
    "request_fulfillment",
    "create_fulfillment"
  ],
  "destination": {
    "id": 1025578629,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578642,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578634,
      "quantity": 1,
      "line_item_id": 1071823184,
      "inventory_item_id": 49148385,
      "fulfillable_quantity": 1,
      "variant_id": 49148385
    }
  ],
  "outgoing_requests": []
}
}

Sends a fulfillment request to the fulfillment service for all line items on the fulfillment order if fulfillment_order_line_items is left blank

POST /admin/api/2020-01/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request.json
{
  "fulfillment_request": {
    "message": "Fulfill this ASAP please."
  }
}
View Response
HTTP/1.1 200 OK
{
  "original_fulfillment_order": {
  "id": 1025578635,
  "shop_id": 690933842,
  "order_id": 1073459970,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "submitted",
  "status": "open",
  "supported_actions": [
    "cancel_fulfillment_order"
  ],
  "destination": {
    "id": 1025578630,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578643,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823185,
      "inventory_item_id": 39072856,
      "fulfillable_quantity": 1,
      "variant_id": 39072856
    },
    {
      "id": 1025578644,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823186,
      "inventory_item_id": 457924702,
      "fulfillable_quantity": 1,
      "variant_id": 457924702
    },
    {
      "id": 1025578645,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823187,
      "inventory_item_id": 49148385,
      "fulfillable_quantity": 1,
      "variant_id": 49148385
    }
  ],
  "outgoing_requests": [
    {
      "message": "Fulfill this ASAP please.",
      "request_options": {
        "notify_customer": false
      },
      "sent_at": "2020-02-06T12:45:34-05:00",
      "kind": "fulfillment_request"
    }
  ]
},
  "submitted_fulfillment_order": {
  "id": 1025578635,
  "shop_id": 690933842,
  "order_id": 1073459970,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "submitted",
  "status": "open",
  "supported_actions": [
    "cancel_fulfillment_order"
  ],
  "destination": {
    "id": 1025578630,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578643,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823185,
      "inventory_item_id": 39072856,
      "fulfillable_quantity": 1,
      "variant_id": 39072856
    },
    {
      "id": 1025578644,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823186,
      "inventory_item_id": 457924702,
      "fulfillable_quantity": 1,
      "variant_id": 457924702
    },
    {
      "id": 1025578645,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823187,
      "inventory_item_id": 49148385,
      "fulfillable_quantity": 1,
      "variant_id": 49148385
    }
  ],
  "outgoing_requests": [
    {
      "message": "Fulfill this ASAP please.",
      "request_options": {
        "notify_customer": false
      },
      "sent_at": "2020-02-06T12:45:34-05:00",
      "kind": "fulfillment_request"
    }
  ]
},
  "unsubmitted_fulfillment_order": null
}
POST /admin/api/2020-01/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request/accept.json
Accepts a fulfillment request sent to a fulfillment service for a fulfillment order.
message

An optional reason for accepting the fulfillment request.

Accepts a fulfillment request sent to a fulfillment service and updates the fulfillment order

POST /admin/api/2020-01/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request/accept.json
{
  "fulfillment_request": {
    "message": "We will start processing your fulfillment on the next business day."
  }
}
View Response
HTTP/1.1 200 OK
{
  "fulfillment_order": {
    "id": 1025578636,
    "shop_id": 690933842,
    "order_id": 1073459971,
    "assigned_location_id": 48752903,
    "fulfillment_service_handle": "shipwire-app",
    "request_status": "accepted",
    "status": "in_progress",
    "supported_actions": [
      "request_cancellation",
      "create_fulfillment"
    ],
    "destination": {
      "id": 1025578631,
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "last_name": "Norman",
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202"
    },
    "origin": {
      "address1": null,
      "address2": null,
      "city": null,
      "country_code": "DE",
      "location_id": 48752903,
      "name": "Apple Api Shipwire",
      "phone": null,
      "province": null,
      "zip": null
    },
    "line_items": [
      {
        "id": 1025578646,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578636,
        "quantity": 1,
        "line_item_id": 1071823188,
        "inventory_item_id": 39072856,
        "fulfillable_quantity": 1,
        "variant_id": 39072856
      },
      {
        "id": 1025578647,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578636,
        "quantity": 1,
        "line_item_id": 1071823189,
        "inventory_item_id": 457924702,
        "fulfillable_quantity": 1,
        "variant_id": 457924702
      },
      {
        "id": 1025578648,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578636,
        "quantity": 1,
        "line_item_id": 1071823190,
        "inventory_item_id": 49148385,
        "fulfillable_quantity": 1,
        "variant_id": 49148385
      }
    ],
    "outgoing_requests": []
  }
}
POST /admin/api/2020-01/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request/reject.json
Rejects a fulfillment request sent to a fulfillment service for a fulfillment order.
message

An optional reason for rejecting the fulfillment request.

Rejects a fulfillment request sent to a fulfillment service and updates the fulfillment order

POST /admin/api/2020-01/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request/reject.json
{
  "fulfillment_request": {
    "message": "Not enough inventory on hand to complete the work."
  }
}
View Response
HTTP/1.1 200 OK
{
  "fulfillment_order": {
    "id": 1025578637,
    "shop_id": 690933842,
    "order_id": 1073459972,
    "assigned_location_id": 48752903,
    "fulfillment_service_handle": "shipwire-app",
    "request_status": "rejected",
    "status": "open",
    "supported_actions": [
      "request_fulfillment",
      "create_fulfillment"
    ],
    "destination": {
      "id": 1025578632,
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "last_name": "Norman",
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202"
    },
    "origin": {
      "address1": null,
      "address2": null,
      "city": null,
      "country_code": "DE",
      "location_id": 48752903,
      "name": "Apple Api Shipwire",
      "phone": null,
      "province": null,
      "zip": null
    },
    "line_items": [
      {
        "id": 1025578649,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578637,
        "quantity": 1,
        "line_item_id": 1071823191,
        "inventory_item_id": 39072856,
        "fulfillable_quantity": 1,
        "variant_id": 39072856
      },
      {
        "id": 1025578650,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578637,
        "quantity": 1,
        "line_item_id": 1071823192,
        "inventory_item_id": 457924702,
        "fulfillable_quantity": 1,
        "variant_id": 457924702
      },
      {
        "id": 1025578651,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578637,
        "quantity": 1,
        "line_item_id": 1071823193,
        "inventory_item_id": 49148385,
        "fulfillable_quantity": 1,
        "variant_id": 49148385
      }
    ],
    "outgoing_requests": []
  }
}
Version 2020-04 (Release candidate)

The FulfillmentRequest resource represents a fulfillment request made by the merchant to a fulfillment service for a fulfillment order.

What you can do with FulfillmentRequest

The Shopify API lets you do the following with the FulfillmentRequest resource. More detailed versions of these general actions may be available:

Endpoints

POST /admin/api/2020-04/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request.json
Sends a fulfillment request to the fulfillment service of a fulfillment order.
message

An optional message for the fulfillment request.

fulfillment_order_line_items

The fulfillment order line items to be requested for fulfillment. If left blank, all line items of the fulfillment order are requested for fulfillment.

Sends a fulfillment request to the fulfillment service of a fulfillment order for the specified line items

POST /admin/api/2020-04/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request.json
{
  "fulfillment_request": {
    "message": "Fulfill this ASAP please.",
    "fulfillment_order_line_items": [
      {
        "id": 1025578637,
        "quantity": 1
      },
      {
        "id": 1025578638,
        "quantity": 1
      }
    ]
  }
}
View Response
HTTP/1.1 200 OK
{
  "original_fulfillment_order": {
  "id": 1025578632,
  "shop_id": 690933842,
  "order_id": 1073459969,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "unsubmitted",
  "status": "closed",
  "supported_actions": [],
  "destination": {
    "id": 1025578627,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578637,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578632,
      "quantity": 1,
      "line_item_id": 1071823182,
      "inventory_item_id": 39072856,
      "fulfillable_quantity": 1,
      "variant_id": 39072856
    },
    {
      "id": 1025578638,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578632,
      "quantity": 1,
      "line_item_id": 1071823183,
      "inventory_item_id": 457924702,
      "fulfillable_quantity": 1,
      "variant_id": 457924702
    },
    {
      "id": 1025578639,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578632,
      "quantity": 1,
      "line_item_id": 1071823184,
      "inventory_item_id": 49148385,
      "fulfillable_quantity": 1,
      "variant_id": 49148385
    }
  ],
  "outgoing_requests": []
},
  "submitted_fulfillment_order": {
  "id": 1025578633,
  "shop_id": 690933842,
  "order_id": 1073459969,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "submitted",
  "status": "open",
  "supported_actions": [
    "cancel_fulfillment_order"
  ],
  "destination": {
    "id": 1025578628,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578640,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578633,
      "quantity": 1,
      "line_item_id": 1071823182,
      "inventory_item_id": 39072856,
      "fulfillable_quantity": 1,
      "variant_id": 39072856
    },
    {
      "id": 1025578641,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578633,
      "quantity": 1,
      "line_item_id": 1071823183,
      "inventory_item_id": 457924702,
      "fulfillable_quantity": 1,
      "variant_id": 457924702
    }
  ],
  "outgoing_requests": [
    {
      "message": "Fulfill this ASAP please.",
      "request_options": {
        "notify_customer": false
      },
      "sent_at": "2020-02-06T12:45:31-05:00",
      "kind": "fulfillment_request"
    }
  ]
},
  "unsubmitted_fulfillment_order": {
  "id": 1025578634,
  "shop_id": 690933842,
  "order_id": 1073459969,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "unsubmitted",
  "status": "open",
  "supported_actions": [
    "request_fulfillment",
    "create_fulfillment"
  ],
  "destination": {
    "id": 1025578629,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578642,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578634,
      "quantity": 1,
      "line_item_id": 1071823184,
      "inventory_item_id": 49148385,
      "fulfillable_quantity": 1,
      "variant_id": 49148385
    }
  ],
  "outgoing_requests": []
}
}

Sends a fulfillment request to the fulfillment service for all line items on the fulfillment order if fulfillment_order_line_items is left blank

POST /admin/api/2020-04/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request.json
{
  "fulfillment_request": {
    "message": "Fulfill this ASAP please."
  }
}
View Response
HTTP/1.1 200 OK
{
  "original_fulfillment_order": {
  "id": 1025578635,
  "shop_id": 690933842,
  "order_id": 1073459970,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "submitted",
  "status": "open",
  "supported_actions": [
    "cancel_fulfillment_order"
  ],
  "destination": {
    "id": 1025578630,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578643,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823185,
      "inventory_item_id": 39072856,
      "fulfillable_quantity": 1,
      "variant_id": 39072856
    },
    {
      "id": 1025578644,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823186,
      "inventory_item_id": 457924702,
      "fulfillable_quantity": 1,
      "variant_id": 457924702
    },
    {
      "id": 1025578645,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823187,
      "inventory_item_id": 49148385,
      "fulfillable_quantity": 1,
      "variant_id": 49148385
    }
  ],
  "outgoing_requests": [
    {
      "message": "Fulfill this ASAP please.",
      "request_options": {
        "notify_customer": false
      },
      "sent_at": "2020-02-06T12:45:34-05:00",
      "kind": "fulfillment_request"
    }
  ]
},
  "submitted_fulfillment_order": {
  "id": 1025578635,
  "shop_id": 690933842,
  "order_id": 1073459970,
  "assigned_location_id": 48752903,
  "fulfillment_service_handle": "shipwire-app",
  "request_status": "submitted",
  "status": "open",
  "supported_actions": [
    "cancel_fulfillment_order"
  ],
  "destination": {
    "id": 1025578630,
    "address1": "Chestnut Street 92",
    "address2": "",
    "city": "Louisville",
    "company": null,
    "country": "United States",
    "email": "bob.norman@hostmail.com",
    "first_name": "Bob",
    "last_name": "Norman",
    "phone": "555-625-1199",
    "province": "Kentucky",
    "zip": "40202"
  },
  "origin": {
    "address1": null,
    "address2": null,
    "city": null,
    "country_code": "DE",
    "location_id": 48752903,
    "name": "Apple Api Shipwire",
    "phone": null,
    "province": null,
    "zip": null
  },
  "line_items": [
    {
      "id": 1025578643,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823185,
      "inventory_item_id": 39072856,
      "fulfillable_quantity": 1,
      "variant_id": 39072856
    },
    {
      "id": 1025578644,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823186,
      "inventory_item_id": 457924702,
      "fulfillable_quantity": 1,
      "variant_id": 457924702
    },
    {
      "id": 1025578645,
      "shop_id": 690933842,
      "fulfillment_order_id": 1025578635,
      "quantity": 1,
      "line_item_id": 1071823187,
      "inventory_item_id": 49148385,
      "fulfillable_quantity": 1,
      "variant_id": 49148385
    }
  ],
  "outgoing_requests": [
    {
      "message": "Fulfill this ASAP please.",
      "request_options": {
        "notify_customer": false
      },
      "sent_at": "2020-02-06T12:45:34-05:00",
      "kind": "fulfillment_request"
    }
  ]
},
  "unsubmitted_fulfillment_order": null
}
POST /admin/api/2020-04/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request/accept.json
Accepts a fulfillment request sent to a fulfillment service for a fulfillment order.
message

An optional reason for accepting the fulfillment request.

Accepts a fulfillment request sent to a fulfillment service and updates the fulfillment order

POST /admin/api/2020-04/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request/accept.json
{
  "fulfillment_request": {
    "message": "We will start processing your fulfillment on the next business day."
  }
}
View Response
HTTP/1.1 200 OK
{
  "fulfillment_order": {
    "id": 1025578636,
    "shop_id": 690933842,
    "order_id": 1073459971,
    "assigned_location_id": 48752903,
    "fulfillment_service_handle": "shipwire-app",
    "request_status": "accepted",
    "status": "in_progress",
    "supported_actions": [
      "request_cancellation",
      "create_fulfillment"
    ],
    "destination": {
      "id": 1025578631,
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "last_name": "Norman",
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202"
    },
    "origin": {
      "address1": null,
      "address2": null,
      "city": null,
      "country_code": "DE",
      "location_id": 48752903,
      "name": "Apple Api Shipwire",
      "phone": null,
      "province": null,
      "zip": null
    },
    "line_items": [
      {
        "id": 1025578646,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578636,
        "quantity": 1,
        "line_item_id": 1071823188,
        "inventory_item_id": 39072856,
        "fulfillable_quantity": 1,
        "variant_id": 39072856
      },
      {
        "id": 1025578647,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578636,
        "quantity": 1,
        "line_item_id": 1071823189,
        "inventory_item_id": 457924702,
        "fulfillable_quantity": 1,
        "variant_id": 457924702
      },
      {
        "id": 1025578648,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578636,
        "quantity": 1,
        "line_item_id": 1071823190,
        "inventory_item_id": 49148385,
        "fulfillable_quantity": 1,
        "variant_id": 49148385
      }
    ],
    "outgoing_requests": []
  }
}
POST /admin/api/2020-04/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request/reject.json
Rejects a fulfillment request sent to a fulfillment service for a fulfillment order.
message

An optional reason for rejecting the fulfillment request.

Rejects a fulfillment request sent to a fulfillment service and updates the fulfillment order

POST /admin/api/2020-04/fulfillment_orders/#{fulfillment_order_id}/fulfillment_request/reject.json
{
  "fulfillment_request": {
    "message": "Not enough inventory on hand to complete the work."
  }
}
View Response
HTTP/1.1 200 OK
{
  "fulfillment_order": {
    "id": 1025578637,
    "shop_id": 690933842,
    "order_id": 1073459972,
    "assigned_location_id": 48752903,
    "fulfillment_service_handle": "shipwire-app",
    "request_status": "rejected",
    "status": "open",
    "supported_actions": [
      "request_fulfillment",
      "create_fulfillment"
    ],
    "destination": {
      "id": 1025578632,
      "address1": "Chestnut Street 92",
      "address2": "",
      "city": "Louisville",
      "company": null,
      "country": "United States",
      "email": "bob.norman@hostmail.com",
      "first_name": "Bob",
      "last_name": "Norman",
      "phone": "555-625-1199",
      "province": "Kentucky",
      "zip": "40202"
    },
    "origin": {
      "address1": null,
      "address2": null,
      "city": null,
      "country_code": "DE",
      "location_id": 48752903,
      "name": "Apple Api Shipwire",
      "phone": null,
      "province": null,
      "zip": null
    },
    "line_items": [
      {
        "id": 1025578649,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578637,
        "quantity": 1,
        "line_item_id": 1071823191,
        "inventory_item_id": 39072856,
        "fulfillable_quantity": 1,
        "variant_id": 39072856
      },
      {
        "id": 1025578650,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578637,
        "quantity": 1,
        "line_item_id": 1071823192,
        "inventory_item_id": 457924702,
        "fulfillable_quantity": 1,
        "variant_id": 457924702
      },
      {
        "id": 1025578651,
        "shop_id": 690933842,
        "fulfillment_order_id": 1025578637,
        "quantity": 1,
        "line_item_id": 1071823193,
        "inventory_item_id": 49148385,
        "fulfillable_quantity": 1,
        "variant_id": 49148385
      }
    ],
    "outgoing_requests": []
  }
}