paymentRequests
Payment Requests Create
post/payment-requests
Request
- Base URL: https://api.sandbox.tryspare.ae
- URL: https://api.sandbox.tryspare.ae/payment-requests
- Auth: HTTP bearer
Headers
x-signaturestring required
ES256 request signature. Required on signed-write endpoints, see request signing.
x-customer-idstring
Optional merchant-supplied customer UUID for debtor account tagging. Must be a valid UUID.
x-tenantstring required
Example:UAE
Regulatory jurisdiction the request routes to (e.g. UAE, KSA, MAIN). Match it to the market you're integrating.
Request body
Example request
{
"instructions": {
"amount": {
"currency": "AED"
},
"currencyRequest": {
"exchangeRateInformation": {
"unitCurrency": "AED"
}
},
"maxCumulativeAmount": {
"currency": "AED"
},
"paymentSchedule": [
{
"amount": {
"currency": "AED"
},
"maxAmount": {
"currency": "AED"
},
"paymentExecutionDate": "2025-01-01T00:00:00Z"
}
],
"periodicSchedule": {
"amount": {
"currency": "AED"
},
"controls": {
"maxCumulativeAmountPerPeriod": {
"currency": "AED"
}
},
"endDate": "2025-01-01T00:00:00Z",
"maxAmount": {
"currency": "AED"
},
"startDate": "2025-01-01T00:00:00Z"
}
},
"providerId": "00000000-0000-0000-0000-000000000000",
"risks": {
"debtorIndicators": {
"deviceInformation": {
"deviceLocalDateTime": "2025-01-01T00:00:00Z",
"lastBindingDateTime": "2025-01-01T00:00:00Z"
}
},
"DeliveryAddress": {
"Country": "AE"
}
}
}Response
Success response
Example response
{
"data": {
"createdAt": "2025-01-01T00:00:00Z",
"currency": "AED",
"instructions": {
"amount": {
"currency": "AED"
},
"currencyRequest": {
"exchangeRateInformation": {
"unitCurrency": "AED"
}
},
"maxCumulativeAmount": {
"currency": "AED"
},
"paymentSchedule": [
{
"amount": {
"currency": "AED"
},
"maxAmount": {
"currency": "AED"
},
"paymentExecutionDate": "2025-01-01T00:00:00Z"
}
],
"periodicSchedule": {
"amount": {
"currency": "AED"
},
"controls": {
"maxCumulativeAmountPerPeriod": {
"currency": "AED"
}
},
"endDate": "2025-01-01T00:00:00Z",
"maxAmount": {
"currency": "AED"
},
"startDate": "2025-01-01T00:00:00Z"
}
},
"risks": {
"debtorIndicators": {
"deviceInformation": {
"deviceLocalDateTime": "2025-01-01T00:00:00Z",
"lastBindingDateTime": "2025-01-01T00:00:00Z"
}
},
"DeliveryAddress": {
"Country": "AE"
}
},
"updatedAt": "2025-01-01T00:00:00Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.