- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
addOrderTransactionStep - Medusa Core Workflows Reference
This documentation provides a reference to the addOrderTransactionStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates order transactions.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { addOrderTransactionStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = addOrderTransactionStep({8 "order_id": "{value}",9 "amount": 28,10 "currency_code": "{value}"11 })12 }13)
Input#
CreateOrderTransactionDTO | CreateOrderTransactionDTO[]
CreateOrderTransactionDTO | CreateOrderTransactionDTO[]
CreateOrderTransactionDTO | CreateOrderTransactionDTO[]
CreateOrderTransactionDTO | CreateOrderTransactionDTO[]CreateOrderTransactionDTO | CreateOrderTransactionDTO[]
CreateOrderTransactionDTO | CreateOrderTransactionDTO[]
CreateOrderTransactionDTO | CreateOrderTransactionDTO[]
CreateOrderTransactionDTO | CreateOrderTransactionDTO[]Output#
((OrderTransactionDTO | WorkflowData<OrderTransactionDTO>)[] | { id: string | WorkflowData<string>; ... 9 more ...; updated_at: string | ... 1 more ... | WorkflowData<...>; }) & (OrderTransactionDTO | ... 1 more ... | null)
((OrderTransactionDTO | WorkflowData<OrderTransactionDTO>)[] | { id: string | WorkflowData<string>; ... 9 more ...; updated_at: string | ... 1 more ... | WorkflowData<...>; }) & (OrderTransactionDTO | ... 1 more ... | null)
((OrderTransactionDTO | WorkflowData<OrderTransactionDTO>)[] | { id: string | WorkflowData<string>; ... 9 more ...; updated_at: string | ... 1 more ... | WorkflowData<...>; }) & (OrderTransactionDTO | ... 1 more ... | null)
((OrderTransactionDTO | WorkflowData<OrderTransactionDTO>)[] | { id: string | WorkflowData<string>; ... 9 more ...; updated_at: string | ... 1 more ... | WorkflowData<...>; }) & (OrderTransactionDTO | ... 1 more ... | null)((OrderTransactionDTO | WorkflowData<OrderTransactionDTO>)[] | { id: string | WorkflowData<string>; ... 9 more ...; updated_at: string | ... 1 more ... | WorkflowData<...>; }) & (OrderTransactionDTO | ... 1 more ... | null)
((OrderTransactionDTO | WorkflowData<OrderTransactionDTO>)[] | { id: string | WorkflowData<string>; ... 9 more ...; updated_at: string | ... 1 more ... | WorkflowData<...>; }) & (OrderTransactionDTO | ... 1 more ... | null)
((OrderTransactionDTO | WorkflowData<OrderTransactionDTO>)[] | { id: string | WorkflowData<string>; ... 9 more ...; updated_at: string | ... 1 more ... | WorkflowData<...>; }) & (OrderTransactionDTO | ... 1 more ... | null)
((OrderTransactionDTO | WorkflowData<OrderTransactionDTO>)[] | { id: string | WorkflowData<string>; ... 9 more ...; updated_at: string | ... 1 more ... | WorkflowData<...>; }) & (OrderTransactionDTO | ... 1 more ... | null)Was this page helpful?