Migrate from 2025-04 to 2025-07

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

What's the difference?

ChangeBeforeAfter
Base URLhttps://api.aftership.com/returns/2025-04https://api.aftership.com/returns/2025-07
as-api-version response header value2025-042025-07
as-webhook-version request header value2025-042025-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/2025-04 to https://api.aftership.com/returns/2025-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.

The following endpoints are added in API 2025-07:

  • POST /returns/{return_id}/remove-items
  • POST /returns/rma/{rma_number}/remove-items
  • POST /returns/link

What do I need to do?

Make the following updates to your application's code:

  1. Implement these new endpoints in your code to use this feature. Otherwise, no further action is required.
new fieldsdescription
shipments[*].ship_toThe ship_to field represents the destination address of the shipment and will only have a value when using AfterShip Shipment to print labels.
shipments[*].ship_fromThe ship_from field represents the source address of the shipment and will only have a value when using AfterShip Shipment to print labels.
refunds[*].transactionsThe transactions field represents the transaction records on the e-commerce platform associated with the refund, including the transaction ID and other details. Currently, this is only available for Shopify.
order.customer.localeThe locale field represents the language code of the customer, e.g., en-US.
exchange.order.customer.localeThe locale field represents the language code of the customer, e.g., en-US.

What do I need to do?

Simply parse the new field 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.