Consent
Create short-lived consent
Unique resource name : ais.v1.consent.create_short_lived_consent
Consent lifetime : 1 Day
post/api/v1.0/ais/Consent/CreateShortLivedConsent
Request
- Base URL: https://sandbox.sparefinancial.sa
- URL: https://sandbox.sparefinancial.sa/api/v1.0/ais/Consent/CreateShortLivedConsent
- Auth: API key in header Authorization
Request body
Example request
{
"connectionId": "00000000-0000-0000-0000-000000000000",
"providerId": "00000000-0000-0000-0000-000000000000",
"customerId": "00000000-0000-0000-0000-000000000000",
"transactionsFromDate": "2025-01-01T00:00:00Z",
"transactionsToDate": "2025-01-01T00:00:00Z",
"successRedirectUrl": "https://example.com",
"failureRedirectUrl": "https://example.com"
}Response
Example response
{
"data": {
"expiryDate": "2025-01-01T00:00:00Z",
"transactionsFromDate": "2025-01-01T00:00:00Z",
"transactionsToDate": "2025-01-01T00:00:00Z",
"statusHistory": [
{
"dateTime": "2025-01-01T00:00:00Z"
}
],
"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"
},
"id": "00000000-0000-0000-0000-000000000000",
"customerId": "00000000-0000-0000-0000-000000000000",
"createdAt": "2025-01-01T00:00:00Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.