Migration Guide

Affected Endpoints (Request and Response Body)

  • POST /orders (request_body.items.*.id)

Affected Endpoints (Response Body)

  • GET /orders
  • GET /orders/{id}
  • PATCH /orders/{id}

How to migrate

  • For POST /orders endpoint, rename items.*.source_id to items.*.id in the request body, no action required if this field is not utilized.

  • Rename order.items.*.source_id to order.items.*.id for all response body of order resource endpoints, no action required if this field is not utilized.

  • Remove the usage of order.items.*.fulfillable_quantity, no action required if this field is not utilized.

  • Make sure to include order.items.*.product_title when creating the order.

Affected Endpoints (Request and Response Body)

  • POST /fulfillments (request_body.line_items.*.id)

Affected Endpoints (Response Body)

  • GET /fulfillments
  • GET /fulfillments/{id}
  • PATCH /fulfillments/{id}
  • POST /fulfillments/{id}/update-status
  • POST /fulfillments/{id}/ship

How to migrate

  • For POST /fulfillments endpoint, rename line_items.*.source_id to line_items.*.id in the request body, no action required if this field is not utilized.

  • Rename fulfillment.line_items.*.source_id to fulfillment.line_items.*.id for all response body of fulfillment resource endpoints, no action required if this field is not utilized.

For all legacy API user (with the API URL https://api.aftership.com/commerce/v1), please visit 2024-04 migration guide for the detail instruction.