Payout

The customer initiates a payout and then just waits for the funds to be credited to their account. The customer themself doesn't participate in the payout processing procedure.

Countries and regions Turkey
Payment currencies TRY
Payment amount limits Contact your key account manager at Flashpay for details. Also you can check the payment amount limits in your project by using Dashboard.
Payment processing time Contact your key account manager at Flashpay for details.
Currency conversion On the Flashpay side
Refund
Onboarding and access fee Contact your key account manager at Flashpay for details.

Operations support

Interfaces
Payment Page Gate Dashboard
Payout

You can check the payment amount limits in your project by using Dashboard. To check your payment amount limits, go to Dashboard, select the Projects section, and then click the Payment methods tab.

The following sections provide more information about the payment processing flow and the analysis of completed payments.

Payout by using Gate

General information

To perform a payout by using Gate with the Payout to bank accounts in Turkey payment method:

  1. Optional: request the current exchange rate and inform the customer of the approximate payout amount.
  2. Send a request with all the required parameters and signature to the Flashpay URL.
  3. Accept the callback with the payout result from the payment platform.

The following picture provides the details of the payout processing flow in the Payout to bank accounts in Turkey payment method.



Figure 1. Payout processing flow when performing a payout by using Gate
Note: Steps 2–5 are optional, you can skip them.
  1. The customer initiates a payout in your system using the Payout to bank accounts in Turkey method.
  2. Your system sends a request to the Flashpay payment platform to obtain the current exchange rate.
  3. The Flashpay payment platform sends you a synchronous response with the current exchange rate information.
  4. Your system displays the approximate payout amount to the customer in their selected currency.
  5. The customer confirms the payout.
  6. Your system sends the payout request to the Flashpay payment platform.
  7. The payment platform sends you a response in which it acknowledges your request and provides the request validation result. (For more information about the response format, see Response format.)
  8. The payment platform processes the request and forwards it to the provider service.
  9. The provider service informs the payment platform about the payout result.
  10. The payment platform sends a callback with the payout result to your system.
  11. Your system sends the payout result to the customer.

Request

This section provides the instructions on how to build the request for payout with the Payout to bank accounts in Turkey payment method.

HTTP request method POST
Request body format JSON
API endpoint/v2/payment/bank-transfer/turkey/payout
Full API endpoint specification /v2/payment/bank-transfer/{payment_method}/payout
Table 1. Basic parameters of a payout request

strictly required—the parameter must be in the initial request.

ObjectParameterDescription

general
object
strictly required

project_id
integer
strictly required

Project ID you obtained from Flashpay when integrating.

Example: 1234

payment_id
string
strictly required

Payment ID unique within your project.

Example: payment_47

signature
string
strictly required

Signature created after you've specified all the request parameters. For more information about signature generation, see Signature generation and verification.

customer
object
strictly required

id
string
strictly required

Unique ID of the customer within your project.

Example: customer_123

ip_address
string
strictly required

IP address of the customer's device.

Example: 198.51.100.47

first_name
string
strictly required

Customer's first name.

Example: John

last_name
string
strictly required

Customer's last name.

Example: Doe

account
object
strictly required

number
string
strictly required

Customer's account number.

Example: TR24...388

sender
object
strictly required

first_name
string
strictly required

Sender's first name.

Example: Jane

last_name
string
strictly required

Sender's last name.

Example: Doe

payment
object
strictly required

currency
string
strictly required

Code of the payment currency in the ISO-4217 alpha-3 format.

Example: RUB

amount
integer
strictly required

Payment amount in minor currency units without any decimal point or comma except for the cases when the currency doesn't have any minor currency units.

If the currency doesn't have any minor units (i.e. the number of digits for minor currency units is zero), set this parameter to the amount in the major currency units. To check whether the currency has any minor units, see Currency units and Currency codes.

Example: 100.00 RUB must be sent as 10000

sender_amount
integer
strictly required

The amount to be debited from the sender's account in minor currency units.

Example: 10000

sender_currency
string
strictly required

The currency code for the debited amount in ISO-4217 alpha-3.

Example: RUB

You can also add any other optional parameters to the payout request, if necessary. For the list of all the parameters available in Gate, see API Reference.

Here is an example of the data from a request to initiate a payout with the Payout to bank accounts in Turkey payment method:

Figure 2. Example of the payout request body
{
    "general": {
        "project_id": 1234,
        "payment_id": "payment_47",
        "signature": "kUi2x9dKHAVNU0FYldJrxh4yo+52Kt8KU+Y19vySO/RLUkDJrOcZzUCwX6R/ekpZhkIQg=="
    },
    "customer": {
        "id": "customer_123",
        "ip_address": "198.51.100.47",
        "first_name": "John",
        "last_name": "Doe"
    },
    "account": {
        "number": "TR24...388"
    },
    "sender": {
        "first_name": "Jane",
        "last_name": "Doe"
    },
    "payment": {
        "currency": "RUB",
        "amount": 10000,
        "sender_amount": 10000,
        "sender_currency": "RUB"
    }
}

Callback

In the Payout to bank accounts in Turkey payment method, the payment platform returns the payout result in a callback. For the information about the callback structure, see Callbacks.

The following is an example of a callback body with the information about a successfully completed payout.

Figure 3. Example of the data from a successful payout callback
{
    "project_id": 1234,
    "payment": {
        "id": "payment_47",
        "type": "payout",
        "status": "success",
        "date": "2024-12-07T19:08:45+0000",
        "method": "Bank transfer Turkey",
        "sum": {
            "amount": 10000,
            "currency": "RUB"
        },
        "description": ""
    },
    "customer": {
        "id": "customer_123"
    },
    "operation": {
        "id": 47,
        "type": "payout",
        "status": "success",
        "date": "2024-12-07T19:08:45+0000",
        "created_date": "2024-12-07T19:08:05+0000",
        "request_id": "1a23456bc7890de",
        "sum_initial": {
            "amount": 10000,
            "currency": "RUB"
        },
        "sum_converted": {
            "amount": 10000,
            "currency": "RUB"
        },
        "code": "0",
        "message": "Success",
        "provider": {
            "id": 12345,
            "payment_id": "123abc123-123",
            "auth_code": ""
        }
    },
    "account": {
        "number": "TR24...388"
    },
    "signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}

The following is an example of a callback for a declined payout.

Figure 4. Example of the data from a declined payout callback
{
    "project_id": 1234,
    "payment": {
        "id": "payment_47",
        "type": "payout",
        "status": "decline",
        "date": "2024-12-07T19:08:45+0000",
        "method": "Bank transfer Turkey",
        "sum": {
            "amount": 10000,
            "currency": "RUB"
        },
        "description": ""
    },
    "customer": {
        "id": "customer_123"
    },
    "operation": {
        "id": 47,
        "type": "payout",
        "status": "decline",
        "date": "2024-12-07T19:08:45+0000",
        "created_date": "2024-12-07T19:08:05+0000",
        "request_id": "1a23456bc7890de",
        "sum_initial": {
            "amount": 10000,
            "currency": "RUB"
        },
        "sum_converted": {
            "amount": 10000,
            "currency": "RUB"
        },
        "code": "20000",
        "message": "General decline",
        "provider": {
            "id": 12345,
            "payment_id": "123abc123-123",
            "auth_code": ""
        }
    },
    "account": {
        "number": "TR24...388"
    },
    "signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}

Payouts by using Dashboard

When working with Dashboard, you can process single and mass payouts by using the Payout to bank accounts in Turkey method.

  • To process a single payout, open the payout form, specify all required parameters (including the payment method), send a request and verify that the payout has been processed.
  • To process a mass payout, prepare and upload a file with information about all target payouts, send a batch request, and verify that the payouts have been processed.

    Use a CSV file structured according to the requirements presented in the Mass payments data section. The payout parameters must comply with the requirements (you do not have to generate a signature because it is specified by Dashboard).

More information about processing payouts by using Dashboard is presented in a separate section.