Create Payout Account
POST/payout_accounts
Create Payout Account
Request
- application/json
Body
required
Possible values: [bank
, wallet
]
Indicates the payout account type.
Contains the public information relevant to the payout account. For example, the IBAN of the bank account. Every service provider can provide a different set of properties.
Contains the secret information relevant to the payout account. For example, the private key configured for this account. Every service provider can provide a different set of credentials.
Responses
- 201
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
The ID of the payout account.
Possible values: [bank
, wallet
]
Indicates the payout account type.
ISO-4217 three-letter currency code.
Contains the public information relevant to the payout account. For example, the IBAN of the bank account. Every service provider can provide a different set of properties.
Date and time when the payout account was created.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"account_type": "bank",
"currency": "SAR",
"properties": {
"iban": "SA8430400108057386290038"
},
"created_at": "Date and time when the payout account was created."
}
- application/json
- Schema
- Example (from schema)
Schema
Contains the error type
Human readable error message for the error
Contains string-array pair representing a field and list of validation errors.
{
"type": "invalid_request",
"message": null,
"errors": {
"foo": "this is returned for validation errors only"
}
}
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [authentication_error
]
Possible values: [Invalid authorization credentials
]
{
"type": "authentication_error",
"message": "Invalid authorization credentials",
"errors": null
}
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [api_error
]
Possible values: [User not authorized
]
{
"type": "api_error",
"message": "User not authorized",
"errors": null
}