Access Control List (ACL) information.
Security
SecretApiKey or JWT or PublishableApiKey
Default:true
Example:true
Example:"123456"
Example:
{ "documents": [ "identity-proof", "address-proof" ], "redirectUrl": "https://mywebsite.com" }
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/authentication-tokens/{token}/exchange
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/authentication-tokens/{token}/exchange
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/authentication-tokens/{token}/exchange
curl -i -X POST \
'https://www.rebilly.com/_mock/catalog/all/authentication-tokens/{token}/exchange' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"invalidate": true,
"oneTimePassword": "123456",
"acl": [
{
"scope": {
"organizationId": [
"organizationId-id-1"
]
},
"permissions": [
"PostFile",
"StorefrontGetAccount",
"StorefrontGetWebsite",
"StorefrontGetKycDocument",
"StorefrontPostKycDocument"
]
}
],
"customClaims": {
"documents": [
"identity-proof",
"address-proof"
],
"redirectUrl": "https://mywebsite.com"
},
"expiredTime": "2019-08-24T14:15:22Z"
}'Headers
Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.
Example:500
Number of requests still available for this rate limit. For more information, see Rate limits.
Example:499
Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
Example:
{ "documents": [ "identity-proof", "address-proof" ], "redirectUrl": "https://mywebsite.com" }
Date and time when the session expires. The default value is one hour after the createdTime value. The maximum value is 24 hours after the createdTime value, and a later value is set to the maximum.
Response
{ "id": "jwt_0YV7DEJX80CDRAKVTV478ZNJDR", "type": "customer", "token": "string", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "acl": [ { … } ], "customClaims": { "documents": [ … ], "redirectUrl": "https://mywebsite.com" }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }