createReturnsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createReturnsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates returns.
Input#
CreateOrderReturnDTO[]
CreateOrderReturnDTO[]
CreateOrderReturnDTO[]
CreateOrderReturnDTO[]order_id
stringThe associated order's ID.
order_id
stringreturn_id
stringOptionalThe associated return's ID.
return_id
stringOptionaldescription
stringOptionalThe description of the action.
description
stringOptionalinternal_note
stringOptionalThe internal note of the action.
internal_note
stringOptionalreference
stringOptionalThe name of the data model the action
references. For example, return
.
reference
stringOptionalreturn
.reference_id
stringOptionalThe ID of the record of the data model
specified in reference.
For example, if reference
is return
, the
value is return_123
.
reference_id
stringOptionalreference
is return
, the
value is return_123
.metadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>Optionallocation_id
stringOptionalThe ID of the location to return the items to.
location_id
stringOptionalitems
object[]OptionalThe items of the return.
items
object[]OptionalThe shipping method of the return.
The refund amount of the return.
no_notification
booleanOptionalWhether the customer should receive notifications related to
updates on the return.
no_notification
booleanOptionalclaim_id
stringOptionalThe associated claim's ID.
claim_id
stringOptionalexchange_id
stringOptionalThe associated exchange's ID.
exchange_id
stringOptionalcreated_by
null | stringOptionalThe id of the user that creates the fulfillment
created_by
null | stringOptionalOutput#
ReturnDTO[]
ReturnDTO[]
ReturnDTO[]
ReturnDTO[]id
stringThe ID of the return.
id
stringstatus
ReturnStatusThe status of the return.
status
ReturnStatusorder_id
stringThe associated order's ID.
order_id
stringitems
OrderReturnItemDTO[]The items of the return
items
OrderReturnItemDTO[]display_id
numberThe return's display ID.
display_id
numbermetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>The refund amount of the return.
The raw refund amount of the return.
The associated order.
exchange_id
stringOptionalThe associated exchange's ID.
exchange_id
stringOptionalThe associated exchange.
claim_id
stringOptionalThe associated claim's ID.
claim_id
stringOptionalThe associated claim.
location_id
stringOptionalThe ID of the location to return the items to.
location_id
stringOptionalno_notification
booleanOptionalWhether the customer should receive notifications related
to updates on the return.
no_notification
booleanOptionalcreated_by
null | stringOptionalThe id of the user that created the return
created_by
null | stringOptionalThe shipping methods used to receive the returned items.
The return's transactions if refund is required.
created_at
string | DateOptionalThe creation date of the return.
created_at
string | DateOptionalupdated_at
string | DateOptionalThe update date of the return.
updated_at
string | DateOptionaldeleted_at
string | DateOptionalThe deletion date of the return.
deleted_at
string | DateOptionalcanceled_at
string | DateOptionalThe cancelation date of the return.
canceled_at
string | DateOptionalrequested_at
string | DateOptionalThe request date of the return.
requested_at
string | DateOptionalreceived_at
string | DateOptionalThe receival date of the return.
received_at
string | DateOptionalWas this page helpful?