Getting Started
Charge
Capabilities
Payout Report
Balance
Create a Customer Payout
Create a Customer Payout to a customer’s bank account for withdrawals or similar purposes.
curl --request POST \
--url https://api.sand.getivy.de/api/service/payout/create \
--header 'Content-Type: application/json' \
--header 'X-Ivy-Api-Key: <api-key>' \
--data '{
"amount": 123,
"currency": "EUR",
"metadata": {},
"destination": {
"orderId": "<string>",
"financialAddress": {
"type": "<string>",
"iban": {
"iban": "<string>",
"bic": "<string>",
"accountHolderName": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"code": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
}
}
},
"paymentReference": "<string>"
}'
{
"id": "<string>",
"destination": {
"type": "<string>",
"iban": {
"iban": "<string>",
"bic": "<string>",
"accountHolderName": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"code": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
}
},
"status": "paid",
"amount": 123,
"currency": "EUR",
"metadata": {},
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
Authorizations
Body
The amount of the customer payout
The currency of the customer payout
EUR
, GBP
, PLN
The destination of the customer payout.
For closed-loop customer payouts. The destination account will be taken from the payer of this order.
Used for open-loop customer payouts. Disabled by default for merchants.
The type of the financial address. The actual destination is determined by this field which can be either "iban", "sortCode", "bankCode", or "bban". The validation will fail if you set e.g. type="iban", but then not fill any values in the "iban" object.
- iban: The IBAN of the account
- sort_code: The sort code of the account
- bank_code: The bank code of the account
- bban: The BBAN of the account
The metadata of the customer payout
The payment reference of the customer payout. The customer will see this reference in their bank statement.
Response
The validation logic is based on the "type" field. For example, if "type" is set to "iban", the "iban" object must be filled out.
The type of the financial address. The actual destination is determined by this field which can be either "iban", "sortCode", "bankCode", or "bban". The validation will fail if you set e.g. type="iban", but then not fill any values in the "iban" object.
- iban: The IBAN of the account
- sort_code: The sort code of the account
- bank_code: The bank code of the account
- bban: The BBAN of the account
paid
, pending
, failed
EUR
, GBP
, PLN
curl --request POST \
--url https://api.sand.getivy.de/api/service/payout/create \
--header 'Content-Type: application/json' \
--header 'X-Ivy-Api-Key: <api-key>' \
--data '{
"amount": 123,
"currency": "EUR",
"metadata": {},
"destination": {
"orderId": "<string>",
"financialAddress": {
"type": "<string>",
"iban": {
"iban": "<string>",
"bic": "<string>",
"accountHolderName": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"code": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
}
}
},
"paymentReference": "<string>"
}'
{
"id": "<string>",
"destination": {
"type": "<string>",
"iban": {
"iban": "<string>",
"bic": "<string>",
"accountHolderName": "<string>"
},
"sortCode": {
"sortCode": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bankCode": {
"code": "<string>",
"accountNumber": "<string>",
"accountHolderName": "<string>"
},
"bban": {
"bban": "<string>",
"accountHolderName": "<string>",
"bic": "<string>"
}
},
"status": "paid",
"amount": 123,
"currency": "EUR",
"metadata": {},
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}