Pay-In flows
Pay-In moves funds into the merchant flow. Send the request to the standard Direct API endpoint:
POST /api/transactions/authorize
Authorization: Bearer <access_token>
Content-Type: application/json
Use transaction_type: PURCHASE for a Pay-In.
Request structure
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.
Replace your-payment-provider-account-id with an active account connected to your terminal that supports the selected flow and transaction type. Do not place this field inside payment_method.data.
Every Pay-In request uses the common transaction envelope. Select the flow with payment_method.type and send its accepted inputs in payment_method.data.
{
"terminal_id": "your-terminal-id",
"payment_provider_account_id": "your-payment-provider-account-id",
"reference": "pay-in-10001",
"description": "Customer payment",
"currency": "EUR",
"amount": 1050,
"transaction_type": "PURCHASE",
"payment_method": {
"type": "<Pay-In flow>",
"data": {}
},
"customer": {
"id": "customer-123",
"first_name": "Jane",
"last_name": "Doe",
"dob": "YYYY-MM-DD",
"email": "jane@example.com",
"phone": "+359881234567",
"country": "BG",
"customer_ip": "203.0.113.10"
},
"return_url": "https://merchant.example/payments/return",
"error_url": "https://merchant.example/payments/error",
"cancel_url": "https://merchant.example/payments/cancel"
}
amount is an integer in the currency’s minor unit. For example, 1050 represents EUR 10.50.
Supported Pay-In flows
| Flow | Accepted payment_method.data inputs |
|---|---|
BankDeposit | id_number, id_type, phone_number |
WalletDeposit | wallet_account, id_number, id_type, phone_number, bank_code, pix_key_type, pix_key, voucher_number |
PixDeposit | pix_key_type, pix_key, id_number |
CryptoDeposit | crypto_currency, network |
VoucherDeposit | voucher_number |
CardDeposit | encrypted_card_number, encrypted_cvv, encrypted_expiration_month, encrypted_expiration_year, cardholder_name |
The table lists accepted inputs, not a universal required set. Required fields can vary by enabled country and flow configuration.
BankDeposit
Use BankDeposit for a Pay-In through the customer’s bank.
{
"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"
}
}
}
WalletDeposit
Use WalletDeposit for a Pay-In from a customer wallet. Send only the identifiers relevant to the wallet flow enabled for your terminal.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "PURCHASE",
"payment_method": {
"type": "WalletDeposit",
"data": {
"wallet_account": "jane@example.com",
"id_number": "AB123456",
"id_type": "NATIONAL_ID",
"phone_number": "+359881234567",
"bank_code": "BANK001",
"pix_key_type": "EMAIL",
"pix_key": "jane@example.com",
"voucher_number": "VOUCHER-10001"
}
}
}
PixDeposit
Use PixDeposit for a Pay-In identified by a Pix key.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "PURCHASE",
"payment_method": {
"type": "PixDeposit",
"data": {
"pix_key_type": "CPF",
"pix_key": "12345678909",
"id_number": "12345678909"
}
}
}
CryptoDeposit
Use CryptoDeposit for a digital-asset Pay-In. crypto_currency identifies the asset and network identifies the blockchain network.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "PURCHASE",
"payment_method": {
"type": "CryptoDeposit",
"data": {
"crypto_currency": "USDT",
"network": "TRON"
}
}
}
VoucherDeposit
Use VoucherDeposit for a Pay-In made with a voucher.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "PURCHASE",
"payment_method": {
"type": "VoucherDeposit",
"data": {
"voucher_number": "VOUCHER-10001"
}
}
}
CardDeposit
Use CardDeposit for a card Pay-In. Encrypt each sensitive card value separately before building the request.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "PURCHASE",
"payment_method": {
"type": "CardDeposit",
"data": {
"encrypted_card_number": "<encrypted-value>",
"encrypted_cvv": "<encrypted-value>",
"encrypted_expiration_month": "<encrypted-value>",
"encrypted_expiration_year": "<encrypted-value>",
"cardholder_name": "Jane Doe"
}
}
}
Send cardholder_name as plain text. See Card data for encryption and browser requirements.
Next step
The response can contain result, redirect, form_submit, or action. See Purchase for the response contract and Webhooks for asynchronous updates.