- Upsert a credential
Retrieve authentication options
Change authentication options
Retrieve authentication tokens
Login a customer
Verify an authentication token
Logout a customer
Exchange an authentication token
Retrieve credentials
Create a credential
Retrieve a credential
Delete a credential
Retrieve tokens
Create a reset password token
Retrieve a reset password token
Delete a reset password token
Upsert a credential
Creates or updates (upserts) an authentication credential with a specified ID.
Security
SecretApiKey or JWT
Credential resource.
ID of the customer resource.
Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/credentials/{id}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/credentials/{id}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/credentials/{id}
- SecretApiKey
- JWT
curl -i -X PUT \
'https://www.rebilly.com/_mock/catalog/all/credentials/{id}' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"username": "string",
"password": "pa$$word",
"customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
"expiredTime": "2019-08-24T14:15:22Z"
}'Credential updated.
Headers
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Example:3600
ID of the credential.
Example:"cus_crd_0YV9Y706QGCB39FQD380G1ZHZH"
ID of the customer resource.
Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
Response
{ "id": "cus_crd_0YV9Y706QGCB39FQD380G1ZHZH", "username": "string", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }