Request
Create account information access request for long-lived consent
Unique resource name : ais.v1.request.create_long_lived_request
Consent lifetime : consent expiry date input
post/api/v1.0/ais/Request/CreateLongLivedRequest
Request
- Base URL: https://sandbox.sparefinancial.sa
- URL: https://sandbox.sparefinancial.sa/api/v1.0/ais/Request/CreateLongLivedRequest
- Auth: API key in header Authorization
Request body
Example request
{
"consentExpiryDate": "2025-01-01T00:00:00Z",
"customerId": "00000000-0000-0000-0000-000000000000",
"consentTransactionsFromDate": "2025-01-01T00:00:00Z",
"consentTransactionsToDate": "2025-01-01T00:00:00Z",
"countryCode": "SA",
"successRedirectUrl": "https://example.com",
"failureRedirectUrl": "https://example.com"
}Response
Example response
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"consentExpiryDate": "2025-01-01T00:00:00Z",
"consent": {
"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"
},
"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"
}
},
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"customerId": "00000000-0000-0000-0000-000000000000",
"consentTransactionsFromDate": "2025-01-01T00:00:00Z",
"consentTransactionsToDate": "2025-01-01T00:00:00Z",
"countryCode": "SA",
"successRedirectUrl": "https://example.com",
"failureRedirectUrl": "https://example.com"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.