Consent
Create domestic payment consent
post/api/v1.0/pis/Consent/Create
Request
- Base URL: https://sandbox.tryspare.com
- URL: https://sandbox.tryspare.com/api/v1.0/pis/Consent/Create
- Auth: API key in header Authorization
Headers
x-signaturestring required
Json web signature (JWS: RFC7519) of the payment initiation consent request payload in detached mode. <see href="https://datatracker.ietf.org/doc/html/rfc7519" />
Request body
Example request
{
"connectionId": "00000000-0000-0000-0000-000000000000",
"providerId": "00000000-0000-0000-0000-000000000000",
"currency": "BHD",
"successRedirectUrl": "https://example.com",
"failureRedirectUrl": "https://example.com"
}Response
Example response
{
"data": {
"paymentId": "00000000-0000-0000-0000-000000000000",
"consentId": "00000000-0000-0000-0000-000000000000",
"executionDateTime": "2025-01-01T00:00:00Z",
"amount": {
"currency": {
"id": "00000000-0000-0000-0000-000000000000"
}
},
"createdAt": "2025-01-01T00:00:00Z",
"creditorAccount": {
"id": "00000000-0000-0000-0000-000000000000"
},
"debtorAccount": {
"id": "00000000-0000-0000-0000-000000000000"
},
"connection": {
"provider": {
"id": "00000000-0000-0000-0000-000000000000",
"country": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"currency": {
"id": "00000000-0000-0000-0000-000000000000"
}
},
"logo": "https://example.com"
},
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.