Preview: SendMock has no stable release yet. These docs follow develop.

CLI reference

Payment flows commands

sendmock payments flows create

Add a flow.

sendmock payments flows create [flags]
FlagTypeDescription
--key <key>requiredstring
The flow's key; fixed after creation.Example: wallet_otp
--name <name>requiredstring
The flow's name.Example: Wallet with OTP
--picker-tab <picker-tab>requiredstring
The checkout picker tab its methods show under, e.g. "Mobile banking".Example: Mobile banking
--steps <steps>requiredPaymentFlowStep[] (JSON)
The steps in order.Example: [{"type":"otp","title":"Enter the code sent to your phone","field_label":"Verification code","hint":"We sent a 6 digit code to your {method} number.","button_label":"Verify"}]

Example

sendmock payments flows create --key wallet_otp --name 'Wallet with OTP' --picker-tab 'Mobile banking' --steps '[{"type":"otp","title":"Enter the code sent to your phone","field_label":"Verification code","hint":"We sent a 6 digit code to your {method} number.","button_label":"Verify"}]'

Output with --json: PaymentFlowDefinition. Exit codes: 0, 1, 2.

API
POST/api/v1/payments/flows
MCP tool
sendmock_payment_flow_create
In the app
Payments > Flows > Add flow

sendmock payments flows delete

Delete a custom flow; 409 while a method uses it.

sendmock payments flows delete <flowKey> [flags]
ArgumentTypeDescription
<flowKey>requiredstring
The payment flow's key, e.g. card or wallet.Example: card
FlagTypeDescription
--yesboolean
Confirms a destructive command; without it the command stops.

Example

sendmock payments flows delete card --yes

Output with --json: nothing. Exit codes: 0, 1, 2, 3.

API
DELETE/api/v1/payments/flows/{flowKey}
MCP tool
sendmock_payment_flow_delete
In the app
Payments > Flows > flow > Delete

sendmock payments flows reset

Put a built-in flow back as shipped.

sendmock payments flows reset <flowKey>
ArgumentTypeDescription
<flowKey>requiredstring
The payment flow's key, e.g. card or wallet.Example: card

Example

sendmock payments flows reset card

Output with --json: PaymentFlowDefinition. Exit codes: 0, 1, 2, 3.

API
POST/api/v1/payments/flows/{flowKey}/reset
MCP tool
sendmock_payment_flow_reset
In the app
Payments > Flows > flow > Reset to default

sendmock payments flows show

One payment flow with its steps.

sendmock payments flows show <flowKey>
ArgumentTypeDescription
<flowKey>requiredstring
The payment flow's key, e.g. card or wallet.Example: card

Example

sendmock payments flows show card

Output with --json: PaymentFlowDefinition. Exit codes: 0, 1, 2, 3.

API
GET/api/v1/payments/flows/{flowKey}
MCP tool
sendmock_payment_flow_get
In the app
Payments > Flows > Edit

sendmock payments flows steps add

Add a step to a flow.

sendmock payments flows steps add <flowKey> [flags]
ArgumentTypeDescription
<flowKey>requiredstring
The payment flow's key, e.g. card or wallet.Example: card
FlagTypeDescription
--step <step>requiredPaymentFlowStep (JSON)
The step to add.
--position <position>number
Zero-based; the end of the flow when left out.Example: 1

Example

sendmock payments flows steps add card --step '{"type":"otp","title":"Enter the code sent to your phone","field_label":"Verification code","hint":"We sent a 6 digit code to your {method} number.","button_label":"Verify"}' --position 1

Output with --json: PaymentFlowDefinition. Exit codes: 0, 1, 2, 3.

API
POST/api/v1/payments/flows/{flowKey}/steps
MCP tool
sendmock_payment_flow_step_add
In the app
Payments > Flows > flow > Add step

sendmock payments flows steps remove

Remove one step of a flow.

sendmock payments flows steps remove <flowKey> <stepIndex> [flags]
ArgumentTypeDescription
<flowKey>requiredstring
The payment flow's key, e.g. card or wallet.Example: card
<stepIndex>requiredinteger
Position of the step in the flow, starting at 0.Example: 0
FlagTypeDescription
--yesboolean
Confirms a destructive command; without it the command stops.

Example

sendmock payments flows steps remove card 0 --yes

Output with --json: PaymentFlowDefinition. Exit codes: 0, 1, 2, 3.

API
DELETE/api/v1/payments/flows/{flowKey}/steps/{stepIndex}
MCP tool
sendmock_payment_flow_step_remove
In the app
Payments > Flows > flow > Remove step

sendmock payments flows steps update

Change one step of a flow.

sendmock payments flows steps update <flowKey> <stepIndex> [flags]

Also runs as sendmock payments flows steps move <flowKey> <stepIndex>.

ArgumentTypeDescription
<flowKey>requiredstring
The payment flow's key, e.g. card or wallet.Example: card
<stepIndex>requiredinteger
Position of the step in the flow, starting at 0.Example: 0
FlagTypeDescription
--position <position>number
Moves the step to this zero-based position.Example: 0
--title <title>string
Shown above the step; may be empty.Example: Enter the code sent to your phone
--field-label <field-label>string
The input's label; empty for steps without a field.Example: Verification code
--hint <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 <button-label>string
The button's text.Example: Verify

Example

sendmock payments flows steps update card 0 --position 0 --title 'Enter the code sent to your phone'

Output with --json: PaymentFlowDefinition. Exit codes: 0, 1, 2, 3.

API
PATCH/api/v1/payments/flows/{flowKey}/steps/{stepIndex}
MCP tool
sendmock_payment_flow_step_update
In the app
Payments > Flows > flow > step labels, Move up, Move down

sendmock payments flows update

Change a flow.

sendmock payments flows update <flowKey> [flags]
ArgumentTypeDescription
<flowKey>requiredstring
The payment flow's key, e.g. card or wallet.Example: card
FlagTypeDescription
--key <key>requiredstring
The flow's key; fixed after creation.Example: wallet_otp
--name <name>requiredstring
The flow's name.Example: Wallet with OTP
--picker-tab <picker-tab>requiredstring
The checkout picker tab its methods show under, e.g. "Mobile banking".Example: Mobile banking
--steps <steps>requiredPaymentFlowStep[] (JSON)
The steps in order.Example: [{"type":"otp","title":"Enter the code sent to your phone","field_label":"Verification code","hint":"We sent a 6 digit code to your {method} number.","button_label":"Verify"}]

Example

sendmock payments flows update card --key wallet_otp --name 'Wallet with OTP' --picker-tab 'Mobile banking' --steps '[{"type":"otp","title":"Enter the code sent to your phone","field_label":"Verification code","hint":"We sent a 6 digit code to your {method} number.","button_label":"Verify"}]'

Output with --json: PaymentFlowDefinition. Exit codes: 0, 1, 2, 3.

API
PATCH/api/v1/payments/flows/{flowKey}
MCP tool
sendmock_payment_flow_update
In the app
Payments > Flows > flow > Save flow