GET/api/v1/payments/flows
Flows: the steps a checkout page runs for a method.
- CLI
sendmock payments flows list- MCP tool
sendmock_payment_flow_list- In the app
- Payments > Flows
Answer
200 PaymentFlowDefinition[]
/api/v1/payments/flowsFlows: the steps a checkout page runs for a method.
sendmock payments flows listsendmock_payment_flow_list200 PaymentFlowDefinition[]
/api/v1/payments/flowsAdd a flow.
sendmock payments flows createsendmock_payment_flow_createPaymentFlowInput : Body of POST and PATCH /api/v1/payments/flows; the key is fixed after creation.
| Field | Type | Description |
|---|---|---|
| key | string | The flow's key; fixed after creation.Example: wallet_otp |
| name | string | The flow's name.Example: Wallet with OTP |
| picker_tab | string | The checkout picker tab its methods show under, e.g. "Mobile banking".Example: Mobile banking |
| steps | PaymentFlowStep[] | The steps in order. |
201 PaymentFlowDefinition
Errors: 400, as { error: { code, message } }
/api/v1/payments/flows/{flowKey}One payment flow with its steps.
sendmock payments flows show <flowKey>sendmock_payment_flow_get200 PaymentFlowDefinition
Errors: 404, as { error: { code, message } }
/api/v1/payments/flows/{flowKey}Change a flow.
sendmock payments flows update <flowKey>sendmock_payment_flow_updatePaymentFlowInput : Body of POST and PATCH /api/v1/payments/flows; the key is fixed after creation.
| Field | Type | Description |
|---|---|---|
| key | string | The flow's key; fixed after creation.Example: wallet_otp |
| name | string | The flow's name.Example: Wallet with OTP |
| picker_tab | string | The checkout picker tab its methods show under, e.g. "Mobile banking".Example: Mobile banking |
| steps | PaymentFlowStep[] | The steps in order. |
200 PaymentFlowDefinition
Errors: 400, 404, as { error: { code, message } }
/api/v1/payments/flows/{flowKey}Delete a custom flow; 409 while a method uses it.
sendmock payments flows delete <flowKey>sendmock_payment_flow_delete204 No content
Errors: 404, 409, as { error: { code, message } }
/api/v1/payments/flows/{flowKey}/resetPut a built-in flow back as shipped.
sendmock payments flows reset <flowKey>sendmock_payment_flow_reset200 PaymentFlowDefinition
Errors: 404, 409, as { error: { code, message } }
/api/v1/payments/flows/{flowKey}/stepsAdd a step to a flow.
sendmock payments flows steps add <flowKey>sendmock_payment_flow_step_addPaymentFlowStepAddRequest : Body of POST /api/v1/payments/flows/{flowKey}/steps: one step, appended unless a position is given.
| Field | Type | Description |
|---|---|---|
| step | PaymentFlowStep | The step to add. |
| position? | number | Zero-based; the end of the flow when left out.Example: 1 |
200 PaymentFlowDefinition
Errors: 400, 404, as { error: { code, message } }
/api/v1/payments/flows/{flowKey}/steps/{stepIndex}Change one step of a flow.
sendmock payments flows steps update <flowKey> <stepIndex>sendmock_payment_flow_step_updatePaymentFlowStepUpdateRequest : Body of PATCH /api/v1/payments/flows/{flowKey}/steps/{stepIndex}.
| Field | Type | Description |
|---|---|---|
| position? | number | Moves the step to this zero-based position.Example: 0 |
| title? | string | Shown above the step; may be empty.Example: Enter the code sent to your phone |
| field_label? | string | The input's label; empty for steps without a field.Example: Verification code |
| hint? | string | Small text under the input; {method} and {amount} are replaced.Example: We sent a 6 digit code to your {method} number. |
| button_label? | string | The button's text.Example: Verify |
200 PaymentFlowDefinition
Errors: 400, 404, as { error: { code, message } }
/api/v1/payments/flows/{flowKey}/steps/{stepIndex}Remove one step of a flow.
sendmock payments flows steps remove <flowKey> <stepIndex>sendmock_payment_flow_step_remove200 PaymentFlowDefinition
Errors: 400, 404, as { error: { code, message } }
/api/v1/payments/step-typesThe step types a flow can use, with their fields.
sendmock payments flows step-typessendmock_payment_step_type_list200 PaymentStepTypeInfo[]
/api/v1/payments/flow-variablesThe variables a step label can use.
sendmock payments flows variablessendmock_payment_flow_variable_list200 PaymentFlowVariable[]