Migrate from 2026-01 to 2026-07

The following guide will help you migrate the API and webhook from version 2026-01 to version 2026-07.

What's the difference?

ChangeBeforeAfter
Base URLhttps://api.aftership.com/returns/2026-01https://api.aftership.com/returns/2026-07
as-api-version response header value2026-012026-07
as-webhook-version request header value2026-012026-07

What do I need to do?

Make the following updates to your application's code:

  1. Replace the base URL from https://api.aftership.com/returns/2026-01 to https://api.aftership.com/returns/2026-07.
  2. When editing existing URLs or adding new ones, select the webhook version. Please review your webhook settings for verification.
  3. Parse the header to distinguish between different versions. Otherwise, no action is required.
new fieldsdescription
return_items[*].green_returnThe green_return field is a boolean value indicating whether this return item is marked as a green return item. When true, no physical return is required for this item.
shipments[*].invoice_urlThe invoice_url field is a nullable string containing the URL for the invoice associated with the shipment.

What do I need to do?

Simply parse the new fields in the API response and the webhook body to fetch the data. Otherwise, no action is required.

Please refer to the Return Model New Fields Added section of the guide.

Please refer to the Return Model New Fields Added section of the guide.