Create Bulk Payout
POST/payout/bulk
Create Bulk Payout
Request
- application/json
Body
required
Array [
- 1.00 SAR = 100
- 1.00 KWD = 1000
- 1 JPY = 1
- BankDestination
- WalletDestination
]
The payout account's id to be used as the source account
payoutsobject[]required
A 16 digits string reference for the payout. If omitted, Moyasar will generate one for you
A positive integer representing the payout amount in the smallest currency unit.
Examples:
Possible values: [bills_or_rent
, expenses_services
, purchase_assets
, saving_investment
, government_dues
, money_exchange
, credit_card_loan
, gift_or_reward
, personal
, investment_transaction
, family_assistance
, donation
, payroll_benefits
, online_purchase
, hajj_and_umra
, dividend_payment
, government_payment
, investment_house
, payment_to_merchant
, own_account_transfer
]
destinationobjectrequired
Contains the beneficiary's information.
oneOf
Should always be "bank"
The IBAN of the beneficiary
the beneficiary's name
the beneficiary's mobile
the beneficiary's country
the beneficiary's city
Should always be "wallet"
the beneficiary's mobile
The comment you provided when creating the payout
metadataobject
A set of key-value pairs where both key and value are strings. Metadata allows you to add more information to the object that will be returned later on in responses and webhook messages. Metadata is searchable using the Payment List API.
Responses
- 201
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
- 1.00 SAR = 100
- 1.00 KWD = 1000
- 1 JPY = 1
- BankDestination
- WalletDestination
]
payoutsobject[]required
The payout's id
The payout account's id used as the source account
The reference number either created by you or generated by Moyasar
Possible values: [internal
, ips
, sarie
]
The type of the channel which such payout is sent through
Possible values: [queued
, initiated
, paid
, failed
, canceled
, returned
]
A positive integer representing the payout amount in the smallest currency unit.
Examples:
ISO-4217 three-letter currency code.
Possible values: [bills_or_rent
, expenses_services
, purchase_assets
, saving_investment
, government_dues
, money_exchange
, credit_card_loan
, gift_or_reward
, personal
, investment_transaction
, family_assistance
, donation
, payroll_benefits
, online_purchase
, hajj_and_umra
, dividend_payment
, government_payment
, investment_house
, payment_to_merchant
, own_account_transfer
]
The comment you provided when creating the payout
destination
objectrequired
Contains the beneficiary's information.
oneOf
Should always be "bank"
The IBAN of the beneficiary
the beneficiary's name
the beneficiary's mobile
the beneficiary's country
the beneficiary's city
Should always be "wallet"
the beneficiary's mobile
A human readable message to explain the status
A classification of failure if any
metadataobjectrequired
A set of key-value pairs where both key and value are strings. Metadata allows you to add more information to the object that will be returned later on in responses and webhook messages. Metadata is searchable using the Payment List API.
{
"payouts": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81",
"sequence_number": "6244377266243449",
"channel": "internal",
"status": "initiated",
"amount": 100,
"currency": "SAR",
"purpose": "bills_or_rent",
"comment": "my comment",
"destination": {},
"message": "Payment initiated",
"failure_reason": "",
"created_at": "Date and time when the payout was created.",
"updated_at": "Date and time when the payout was last updated.",
"metadata": {
"cart_id": "72e470a5-cbc4-47b3-a52a-e89fda6adb19",
"customer_email": "[email protected]",
"customer_id": "23432"
}
}
]
}
- 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
}