split-payments
Initiate split payment
Changed onpost/v2/split-payments
Request
- Base URLhttps://api.sandbox.pawapay.io
- URLhttps://api.sandbox.pawapay.io/v2/split-payments
- AuthHTTP bearer
Headers
Content-Digeststring string
SHA-256 or SHA-512 hash of the request body.
Signaturestring string
Signature of the request according to RFC-9421.
Signature-Inputstring string
Signature input according to RFC-9421.
Accept-Signaturestring string
Expected signature algorithm of the response according to RFC-9421.
Accept-Digeststring string
Expected digest algorithm of the response according to RFC-9421.
Request body
Example request
{
"splitPaymentId": "f4401bd2-1568-4140-bf2d-eb77d2b2b639",
"payer": {
"type": "MMO",
"accountDetails": {
"phoneNumber": "260763456789",
"provider": "MTN_MOMO_ZMB"
}
},
"clientReferenceId": "INV-123456",
"customerMessage": "Note of 4 to 22 chars",
"splits": [
{
"amount": "15",
"recipient": {
"type": "MMO",
"accountDetails": {
"phoneNumber": "260763456789",
"provider": "MTN_MOMO_ZMB"
}
},
"customerMessage": "Note of 4 to 22 chars"
}
],
"amount": "15",
"currency": "ZMW",
"metadata": [
{
"orderId": "ORD-123456789"
},
{
"customerId": "customer@email.com",
"isPII": true
}
]
}Response
Request has valid payload. See status to confirm if the split payment was accepted for processing.
Example response
{
"splitPaymentId": "f4401bd2-1568-4140-bf2d-eb77d2b2b639",
"created": "2020-02-21T17:32:29Z",
"failureReason": {
"failureCode": "PAYOUT_EXCEEDS_DEPOSIT",
"failureMessage": "The total split payout amount is greater than the deposit amount."
}
}Changes
- info
endpoint added
- info