Backend API

Fields
idobjectId

Unique identifier for the return.

order_idobjectIdrequired

ID of the order this return was created for.

canceledboolean

Indicates the return was canceled.

carrierstring

ID of a third-party carrier offering the service, if applicable.

carrier_namestring

Name of a third-party carrier offering the service, if applicable.

credit_taxcurrencyauto

Total amount of taxes credited to the order for the returned items.

credit_totalcurrencyauto

Total amount of additional credit applied to the order.

currencystring

Three-letter ISO currency code in uppercase. Defaults to the store's base currency.

date_createddateauto

Date and time the return was created.

date_estimateddate

Date the expected return shipment is meant to arrive at a warehouse, if applicable.

date_updateddateauto

Date and time the return was last updated.

destinationobject

The intended return destination.

extra_creditcurrency

Arbitrary amount to apply to the order as compensation for their inconvenience.

item_quantity_receivableintauto

Total quantity of line items that can still be received in a return shipment.

item_quantity_receivedintauto

Total quantity of line items that have been received in a return shipment.

item_quantity_restockableintauto

Total quantity of line items that can still be restocked to product inventory.

item_quantity_restockedintauto

Total quantity of line items that have been restocked to product inventory.

notesstring

Internal admin notes, not visible to the customer.

notificationsNotification

Expandable list of notifications sent on behalf of the products returned.

numberstringauto

Unique incremental return number, assigned automatically.

orderOrder

Expandable link to the order.

originobject

The customer's location of origin for the return shipment.

reason_codestring

Code indicating the reason for the return.

receivedbooleanauto

Indicates that all items have been received in a return shipment.

restock_feecurrency

Amount to charge the customer for re-stocking the returned items.

servicestring

ID of a shipping service as configured in shipment settings.

service_namestring

Name of the return shipping service.

shipment_taxcurrencyauto

Amount to apply to the order as a credit as compensation for the original shipping tax.

shipment_totalcurrency

Amount to apply to the order as a credit as compensation for the original shipping price.

tracking_codestring

Tracking code used to identify the return shipment, if applicable.

The return model
{
  "id": "60f199509111e70000000078",
  "items": [
    {
      "id": "5ca537326a0ec32a521139dd",
      "order_item_id": "5a9ea7ba3f95740a914267f2",
      "product_id": "5cad15bc9b14d1990724663b",
      "quantity": 2,
      "quantity_received": 0,
      "quantity_receivable": 2,
      "quantity_restocked": 0,
      "quantity_restockable": 2
    }
  ],
  "order_id": "60f199509111e7000000007a",
  "currency": "USD",
  "date_created": "2021-07-16T14:36:00.399Z",
  "date_updated": "2021-07-16T14:36:00.399Z",
  "origin": {
    "name": "Jon Snow",
    "address1": "1 Main Street",
    "city": "Brooklyn",
    "state": "NY",
    "zip": 11201,
    "country": "US",
    "phone": "(555) 555-5555"
  },
  "received": false,
  "service": "fedex_ground",
  "tracking_code": "T192000000XYZ"
}