SpareSpare Docs
GuidesAPI Reference

Payment Requests

Create, list, retrieve, and cancel payment requests.

GET
/payment-requests
Authorization
Header

Regulatory jurisdiction the request routes to (e.g. `UAE`, `KSA`, `MAIN`). Match it to the market you're integrating.

Query

1-based page number for paginated results. Defaults to the first page.

Number of items to return per page. Defaults to the API's page size.

Filter results by the merchant reference you set when the resource was created.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/payment-requests" \  -H "x-tenant: KSA"
{  "data": [    {      "amount": "string",      "createdAt": "string",      "creditorAccount": {        "identification": "string",        "name": "string",        "schemeName": "IBAN"      },      "creditorReference": "string",      "creditorType": "string",      "currency": "string",      "debtorReference": "string",      "failureRedirectUrl": "string",      "id": "string",      "instructions": {        "amount": {          "amount": "string",          "currency": "string"        },        "currencyRequest": {          "chargeBearer": "BorneByCreditor",          "currencyOfTransfer": "string",          "destinationCountryCode": "string",          "exchangeRateInformation": {            "contractIdentification": "string",            "exchangeRate": 0,            "rateType": "Actual",            "unitCurrency": "string"          },          "fxQuoteId": "string",          "priority": "Normal",          "purpose": "string"        },        "isInternationalPayment": true,        "maxCumulativeAmount": {          "amount": "string",          "currency": "string"        },        "maxCumulativeNumberOfPayments": 0,        "paymentSchedule": [          {            "amount": {              "amount": "string",              "currency": "string"            },            "maxAmount": {              "amount": "string",              "currency": "string"            },            "paymentExecutionDate": "string"          }        ],        "periodicSchedule": {          "amount": {            "amount": "string",            "currency": "string"          },          "controls": {            "maxCumulativeAmountPerPeriod": {              "amount": "string",              "currency": "string"            },            "maxCumulativeNumberOfPaymentsPerPeriod": 0          },          "endDate": "string",          "frequency": "Day",          "maxAmount": {            "amount": "string",            "currency": "string"          },          "startDate": "string"        },        "permissions": {          "confirmPayee": true,          "readAccountsBasic": true,          "readAccountsDetail": true,          "readBalances": true,          "readRefundAccount": true        }      },      "internalReference": "string",      "isCopVerified": true,      "merchantId": "string",      "merchantReference": "string",      "purpose": "string",      "redirectUrl": "string",      "risks": {        "BeneficiaryAccountType": "string",        "DeliveryAddress": {          "AddressLine": [            "string"          ],          "BuildingNumber": "string",          "Country": "string",          "CountrySubDivision": [            "string"          ],          "PostCode": "string",          "StreetName": "string",          "TownName": "string"        },        "MerchantCategoryCode": "string",        "MerchantCustomerIdentification": "string",        "PaymentContextCode": "string"      },      "status": "New",      "successRedirectUrl": "string",      "type": "SingleInstantPayment",      "updatedAt": "string"    }  ],  "error": "string",  "errorDescription": {    "property1": [      "string"    ],    "property2": [      "string"    ]  },  "meta": {    "currentPageNumber": 0,    "pageSize": 0,    "totalNumberOfPages": 0  }}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "not_found",  "details": {},  "message": "string"}
POST
/payment-requests
Authorization
Header

HMAC signature of the request payload, required on endpoints that mandate request signing.

Regulatory jurisdiction the request routes to (e.g. `UAE`, `KSA`, `MAIN`). Match it to the market you're integrating.

Body
*object
array<string>
object
object
object
object

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/payment-requests" \  -H "x-signature: string" \  -H "x-tenant: KSA" \  -H "Content-Type: application/json" \  -d '{    "amount": "125.50",    "beneficiaryIban": "AE070331234567890123456",    "beneficiaryName": "Acme Supplier LLC",    "currency": "AED",    "reference": "INV-10042"  }'
{  "data": {    "amount": "125.50",    "currency": "AED",    "internalReferenceId": "req_01hqnx2w",    "status": "New"  }}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "not_found",  "details": {},  "message": "string"}
GET
/payment-requests/{paymentRequestId}
Authorization
Path

UUID of the payment request.

Header

Regulatory jurisdiction the request routes to (e.g. `UAE`, `KSA`, `MAIN`). Match it to the market you're integrating.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/payment-requests/string" \  -H "x-tenant: KSA"
{  "data": {    "amount": "string",    "createdAt": "string",    "creditorAccount": {      "identification": "string",      "name": "string",      "schemeName": "IBAN"    },    "creditorReference": "string",    "creditorType": "string",    "currency": "string",    "debtorReference": "string",    "failureRedirectUrl": "string",    "id": "string",    "instructions": {      "amount": {        "amount": "string",        "currency": "string"      },      "currencyRequest": {        "chargeBearer": "BorneByCreditor",        "currencyOfTransfer": "string",        "destinationCountryCode": "string",        "exchangeRateInformation": {          "contractIdentification": "string",          "exchangeRate": 0,          "rateType": "Actual",          "unitCurrency": "string"        },        "fxQuoteId": "string",        "priority": "Normal",        "purpose": "string"      },      "isInternationalPayment": true,      "maxCumulativeAmount": {        "amount": "string",        "currency": "string"      },      "maxCumulativeNumberOfPayments": 0,      "paymentSchedule": [        {          "amount": {            "amount": "string",            "currency": "string"          },          "maxAmount": {            "amount": "string",            "currency": "string"          },          "paymentExecutionDate": "string"        }      ],      "periodicSchedule": {        "amount": {          "amount": "string",          "currency": "string"        },        "controls": {          "maxCumulativeAmountPerPeriod": {            "amount": "string",            "currency": "string"          },          "maxCumulativeNumberOfPaymentsPerPeriod": 0        },        "endDate": "string",        "frequency": "Day",        "maxAmount": {          "amount": "string",          "currency": "string"        },        "startDate": "string"      },      "permissions": {        "confirmPayee": true,        "readAccountsBasic": true,        "readAccountsDetail": true,        "readBalances": true,        "readRefundAccount": true      }    },    "internalReference": "string",    "isCopVerified": true,    "merchantId": "string",    "merchantReference": "string",    "purpose": "string",    "redirectUrl": "string",    "risks": {      "BeneficiaryAccountType": "string",      "DeliveryAddress": {        "AddressLine": [          "string"        ],        "BuildingNumber": "string",        "Country": "string",        "CountrySubDivision": [          "string"        ],        "PostCode": "string",        "StreetName": "string",        "TownName": "string"      },      "MerchantCategoryCode": "string",      "MerchantCustomerIdentification": "string",      "PaymentContextCode": "string"    },    "status": "New",    "successRedirectUrl": "string",    "type": "SingleInstantPayment",    "updatedAt": "string"  },  "error": "string",  "errorDescription": {    "property1": [      "string"    ],    "property2": [      "string"    ]  }}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "not_found",  "details": {},  "message": "string"}
DELETE
/payment-requests/{paymentRequestId}
Authorization
Path

UUID of the payment request.

Header

Regulatory jurisdiction the request routes to (e.g. `UAE`, `KSA`, `MAIN`). Match it to the market you're integrating.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/payment-requests/string" \  -H "x-tenant: KSA"
Empty
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "string",  "details": {},  "message": "string"}
{  "code": "not_found",  "details": {},  "message": "string"}