createOrderCreditLinesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createOrderCreditLinesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
Examples#
Steps#
Workflow hook
Step conditioned by when
View step details
Input#
id
stringcredit_lines
Omit<CreateOrderCreditLineDTO, "order_id">[]
credit_lines
Omit<CreateOrderCreditLineDTO, "order_id">[]amount
BigNumberInputThe amount of the credit line.
amount
BigNumberInputreference
null | stringThe reference model name that the credit line is generated from
reference
null | stringreference_id
null | stringThe reference model id that the credit line is generated from
reference_id
null | stringmetadata
null | Record<string, unknown>OptionalThe metadata of the order detail
metadata
null | Record<string, unknown>OptionalOutput#
OrderCreditLineDTO[]
OrderCreditLineDTO[]
OrderCreditLineDTO[]
OrderCreditLineDTO[]id
stringThe ID of the order credit line.
id
stringorder_id
stringThe ID of the order that the credit line belongs to.
order_id
stringThe associated order
amount
BigNumberValueThe amount of the credit line.
amount
BigNumberValuereference
null | stringThe reference model name that the credit line is generated from
reference
null | stringreference_id
null | stringThe reference model id that the credit line is generated from
reference_id
null | stringmetadata
null | Record<string, unknown>The metadata of the order detail
metadata
null | Record<string, unknown>created_at
DateThe date when the order credit line was created.
created_at
Dateupdated_at
DateThe date when the order credit line was last updated.
updated_at
DateHooks#
Hooks allow you to inject custom functionalities into the workflow. You'll receive data from the workflow, as well as additional data sent through an HTTP request.
Learn more about Hooks and Additional Data.
creditLinesCreated#
This step is a hook that you can inject custom functionality into.
Example
Input
Handlers consuming this hook accept the following input.
input
objectThe input data for the hook.
Was this page helpful?