Changelog

This page contains the changelog of the current API version. For the past changelog, please refer to this page.

2025-01 (2025-01-09)

CHANGEBEFOREAFTER
Base URLhttps://api.aftership.com/commerce/2024-10https://api.aftership.com/commerce/2025-01
BEFOREAFTER
order.items.*.source_idorder.items.*.id

Affected Endpoints (Request and Response Body)

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

Affected Endpoints (Response Body)

  • GET /orders
  • GET /orders/{id}
  • PATCH /orders/{id}
BEFOREAFTER
order.items.*.fulfillable_quantityField deleted

Affected Endpoints (Request and Response Body)

  • POST /orders

Affected Endpoints (Response Body)

  • GET /orders
  • GET /orders/{id}
  • PATCH /orders/{id}
FIELDBEFOREAFTER
order.items.*.product_titleField value is optionalField value is now required
order.items.*.product_variant_titleField value is requiredField value is now optional

Affected Endpoints (Request Body)

  • POST /orders

The following fields are added to the request body to provide more control to the endpoint. The specification of each of the fields are the same as the model.

  • currency
  • order_total
  • shipping_total
  • tax_total
  • discount_total
  • subtotal
FIELDBEFOREAFTER
titleField value is requiredField value is optional

Affected Endpoints (Request body)

  • POST /products
BEFOREAFTER
fulfillment.line_items.*.source_idfulfillment.line_items.*.id

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

New endpoints for manipulating order.items (OrderItem resource) are added. As the OrderItem resource is a subresource of Order, order.id is required during the request, which would be specified in the URL.

For the detailed endpoint specification, please refer to the API endpoint reference.

  1. Create an order item (POST /orders/{id}/items)
    • Create a new order item to an existing order.
  2. Get order item by ID (GET /orders/{id}/items/{item_id})
    • Get an existing order item by order ID and order item ID.
  3. Update order item by ID (PATCH /orders/{id}/items/{item_id})
    • Update an existing order item by order ID and order item ID.
  4. Delete order item by ID (DELETE /orders/{id}/items/{item_id})
    • Delete an existing order item by order ID and order item ID.