Exchanges an authentication token for a JWT.
By default, this operation invalidates the exchanged authentication token.
Exchanges an authentication token for a JWT.
By default, this operation invalidates the exchanged authentication token.
{ "invalidate": true, "oneTimePassword": "123456", "acl": [ { "scope": { "organizationId": [ "organizationId-id-1" ] }, "permissions": [ "PostFile", "StorefrontGetAccount", "StorefrontGetWebsite", "StorefrontGetKycDocumentCollection", "StorefrontGetKycDocument", "StorefrontPostKycDocument" ] } ], "customClaims": { "documents": [ "identity-proof", "address-proof" ], "redirectUrl": "https://mywebsite.com" }, "expiredTime": "2019-08-24T14:15:22Z" }
201
Authentication token exchanged for a JWT.
401
Unauthorized access. Invalid credentials used.
403
Access forbidden.
404
Resource not found.
{ "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" ], "redirectUrl": "https://mywebsite.com" }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ { "href": "string", "rel": "customer" } ] }