Create a credential

Creates an authentication credential.

SecurityAPI Key: SecretApiKey or HTTP: JWT
Request
Request Body schema: application/json

Credential resource.

username
required
string

Username associated with the credential.

password
required
string <password>

Password associated with the credential.

customerId
required
string (CustomerId) <= 50 characters

ID of the customer resource.

expiredTime
string or null <date-time>

Date and time when the credential expires.

post
/credentials
Request samples
application/json
{ "username": "string", "password": "pa$$word", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "expiredTime": "2019-08-24T14:15:22Z" }
Responses

201

Credential created.

401

Unauthorized access. Invalid credentials used.

403

Access forbidden.

422

Invalid data sent.

Response samples
application/json
{ "id": "cus_crd_0YV9Y706QGCB39FQD380G1ZHZH", "username": "string", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ ] }