Return
A Return holds information about Line Items that a Customer wishes to send back, along with how the items will be returned. Returns can also be used as part of a Swap or a Claim.
Constructors
constructor
**new Return**()
A Return holds information about Line Items that a Customer wishes to send back, along with how the items will be returned. Returns can also be used as part of a Swap or a Claim.
Properties
The details of the claim that the return may belong to.
claim_order_idnull | stringRequiredThe ID of the claim that the return may belong to.
created_atDateRequiredThe date with timezone at which the resource was created.
idstringRequiredThe return's ID
idempotency_keynull | stringRequiredRandomly generated key used to continue the completion of the return in case of failure.
The details of the items that the customer is returning.
location_idnull | stringRequiredThe ID of the stock location the return will be added back.
metadatanull | Record<string, unknown>RequiredAn optional key-value map with additional details
no_notificationnull | booleanRequiredWhen set to true, no notification will be sent related to this return.
The details of the order that the return was created for.
order_idnull | stringRequiredThe ID of the order that the return was created for.
received_atDateRequiredThe date with timezone at which the return was received.
refund_amountnumberRequiredThe amount that should be refunded as a result of the return.
shipping_dataRecord<string, unknown>RequiredData about the return shipment as provided by the Fulfilment Provider that handles the return shipment.
The details of the Shipping Method that will be used to send the Return back. Can be null if the Customer will handle the return shipment themselves.
Status of the Return.
Default: requested
The details of the swap that the return may belong to.
swap_idnull | stringRequiredThe ID of the swap that the return may belong to.
updated_atDateRequiredThe date with timezone at which the resource was updated.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?