Exchanges an authentication token for a JWT.
By default, this operation invalidates the exchanged authentication token.
Authentication token exchanged for a JWT.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
{- "invalidate": true,
- "oneTimePassword": "123456",
- "acl": [
- {
- "scope": {
- "organizationId": [
- "organizationId-id-1"
]
}, - "permissions": [
- "PostFile",
- "StorefrontGetAccount",
- "StorefrontGetWebsite",
- "StorefrontGetKycDocumentCollection",
- "StorefrontGetKycDocument",
- "StorefrontPostKycDocument"
]
}
], - "customClaims": {
- "documents": [
- "identity-proof",
- "address-proof"
],
}, - "expiredTime": "2019-08-24T14:15:22Z"
}
{- "id": "jwt_0YV7DEJX80CDRAKVTV478ZNJDR",
- "type": "customer",
- "token": "string",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "acl": [
- {
- "scope": {
- "organizationId": [
- "organizationId-id-1"
]
}, - "permissions": [
- "PostFile",
- "StorefrontGetAccount",
- "StorefrontGetWebsite",
- "StorefrontGetKycDocumentCollection",
- "StorefrontGetKycDocument",
- "StorefrontPostKycDocument"
]
}
], - "customClaims": {
- "documents": [
- "identity-proof",
- "address-proof"
],
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "expiredTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "customer"
}
]
}