Retrieve a credential

Request

Retrieves a credential with a specified ID.
Security
SecretApiKey or JWT
Path
idstring, <= 50 characters^[@~\-\.\w]+$required
ID of the resource.
curl -i -X GET \
  'https://www.rebilly.com/_mock/catalog/all/credentials/{id}' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE'

Responses

Credential retrieved.
Bodyapplication/json
idstring, <= 50 charactersread-only
ID of the credential.
Example:"cus_crd_0YV9Y706QGCB39FQD380G1ZHZH"
usernamestringrequired
Username associated with the credential.
customerIdstring, <= 50 characters(CustomerId)required
ID of the customer resource.
Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
expiredTimestring or null, (date-time)
Date and time when the credential expires.
Response
{ "id": "cus_crd_0YV9Y706QGCB39FQD380G1ZHZH", "username": "string", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }