DORIC Banking API · Accounts
PreviewCreate an account
Creates an active account for an owner in one settlement currency.
/accountsHeaders
AuthorizationstringRequiredOAuth 2.0 client-credentials flow for machine workloads.
X-Request-IduuidOptionalUUID unique to this HTTP request. The gateway echoes a valid caller-supplied value or generates one when the header is omitted. The resulting value is returned in X-Request-Id and structured error responses.
Idempotency-KeystringOptionalUnique key for safely retrying an identical resource-creation request.
Content-TypestringRequiredAlways
application/json.
Request body
currencystringRequiredNo description yet.
- pattern ^[A-Z]{3}$
ownerIdstringRequiredNo description yet.
- minimum length 1
Response
Status 201. Account created successfully.
balanceMinorintegerRequiredAvailable balance expressed as an integer in the currency's minor unit.
currencystringRequiredThree-letter ISO 4217 settlement currency code.
- pattern ^[A-Z]{3}$
iduuidRequiredStable account identifier.
ownerIdstringRequiredCustomer or legal-entity identifier that owns the account.
- minimum length 1
statusenumRequiredCurrent account lifecycle state.
- Allowed values
- pending
- active
- frozen
- closed
Errors
Every error carries an HTTP status. Where it also carries a code, branch on the code, not on the message.
- 400
INVALID_ARGUMENTThe request is malformed. - 401
UNAUTHENTICATEDAuthentication failed. - 403
PERMISSION_DENIEDThe principal is not authorized for this operation. - 409
ALREADY_EXISTSThe resource or idempotency key conflicts with existing state. - 429
RESOURCE_EXHAUSTEDA rate or concurrency limit was exceeded. - 503
UNAVAILABLEThe service is temporarily unavailable.