Create a Payout Request
Changed onCreates a Payout Request. The Payout Request can have multiple recipients, each of which can be a fiat or blockchain payout. Developer fees can only be applied on behalf of a child organization, so a payout carrying a developer fee must be created using the on-behalf-of header.
Request
- Base URLhttps://api.muralpay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Organization ID to act on behalf of
Optional UUID to safely retry requests without creating duplicate operations. Subsequent requests with the same key and identical body return the original cached response with an idempotency-replayed: true response header. Keys expire after 24 hours.
Request body
Example request
{
"payouts": [
{
"amount": {
"tokenSymbol": "USDC"
},
"amountV2": {
"sourceCurrency": {
"fiatCurrencyCode": "USD"
},
"value": "10050"
},
"payoutDetails": {
"fiatAndRailDetails": {
"documentNumber": "20-12345678-9"
}
},
"supportingDetails": {
"supportingDocument": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAA..."
}
}
]
}Response
The successfully created Payout Request
Example response
{
"payouts": [
{
"amount": {
"tokenSymbol": "USDC"
},
"details": {
"feeTotal": {
"tokenSymbol": "USDC"
},
"fiatAmount": {
"fiatCurrencyCode": "USD"
},
"transactionFee": {
"tokenSymbol": "USDC"
}
},
"recipientInfo": {
"details": {
"details": {
"truncatedBankAccountNumber": "****1234"
}
}
}
}
]
}Changes
- breaking
removed the enum value
SOLANAof the request property///// - breaking
added to the response body
oneOflist for the response status - breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
the
/////////request property's max was set to100.00 - warning
the
/////////request property's max was set to100.00 - warning
the
/////////request property's min was set to0.00 - warning
the
/////////request property's min was set to0.00 - warning
removed the request property
////// - warning
added the new
AdditionalRecipientInformationRequiredenum value to the/response property for the response status - warning
added the new
PayoutComplianceValidationFailedErrorenum value to theresponse property for the response status - warning
added the new
PayoutMethodErrorenum value to theresponse property for the response status - warning
added the new
PayoutMinimumNotMetErrorenum value to the/response property for the response status - warning
added the new
TRONenum value to the////response property for the response status - warning
added the new
TRONenum value to the//////response property for the response status - warning
added the new
mxn-debit-cardenum value to the////response property for the response status - warning
added the new
usd-el-salvadorenum value to the////response property for the response status - info
added the new optional request property
// - info
added the new optional request property
///// - info
the request property
//became optional - info
request property
//deprecated - info
added the new
TRONenum value to the request property///// - info
added to the
////request propertyoneOflist - info
added response discriminator for the response status
- info
added response discriminator for the response status
- info
added the non-success response with the status
- info
removed the
SOLANAenum value from the////response property for the response status - info
removed the
SOLANAenum value from the//////response property for the response status - info
added the required property
////to the response with the status - info
added the required property
////to the response with the status
- breaking