Payment flows
Direct API requests select a client-facing payment flow in payment_method.type. Each flow has a defined set of accepted string inputs in payment_method.data.
The processing integration behind a flow is configured in Morefin. Select its payment provider account with the top-level payment_provider_account_id field.
Always include payment_provider_account_id at the top level for now to use direct routing. The field remains optional in the API contract, but other routing modes do not yet support canonical inputs.
Choose a direction
| Direction | transaction_type | Available flows |
|---|---|---|
| Pay-In | PURCHASE | BankDeposit, WalletDeposit, PixDeposit, CryptoDeposit, VoucherDeposit, CardDeposit |
| Pay-Out | WITHDRAWAL | BankWithdrawal, WalletWithdrawal, CryptoWithdrawal, CardWithdrawal |
The terminal determines which flows, transaction types, currencies, and limits are available to your integration.
Flow guides
- Pay-In flows — deposits and card payments that move funds into the merchant flow.
- Pay-Out flows — withdrawals that send funds to the customer.
- Card data — card encryption and browser requirements.
Request shape
{
"terminal_id": "your-terminal-id",
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "PURCHASE",
"payment_method": {
"type": "BankDeposit",
"data": {
"id_number": "AB123456",
"id_type": "NATIONAL_ID",
"phone_number": "+359881234567"
}
}
}
Use the exact case shown for the flow name and input keys. Send only the inputs accepted by the selected flow. The fields required for your enabled countries and flows are confirmed during integration setup.
Legacy apm compatibility
apm remains available for existing integrations but is not one of the new provider-neutral flows. Existing apm request shapes remain supported during migration.