Create Account Credential

​

Create a new account credential. If no data is provided, a random code and PIN will be generated.

  • If account_id is provided in request body, creates credentials for that account
  • If no account_id is provided, creates credentials for the authenticated account

Authorization rules:

  • PSP accounts can create credentials for their merchant children
  • Merchant accounts can only create credentials for themselves

NOTE: The PIN will only be returned once during creation.

Headers

  • Response format. Must be application/json.

  • Request payload format. Must be application/json when a body is sent.

Body·

required
application/json

Extended model with account_id for creating credentials

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/v1/accounts/credentials
curl https://api.uat.koard.com/v1/accounts/credentials \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'x-koard-apikey: YOUR_SECRET_TOKEN' \
  --data '{
  "account_id": null,
  "code": null,
  "pin": null
}'
{
  "account_id": "string",
  "code": "string",
  "created_at": "2026-11-11T21:22:41.794Z",
  "id": "string",
  "is_active": true,
  "pin": "string"
}