Skip to main content
POST
/
accounts
/
{accountId}
/
organizations
Create organization
curl --request POST \
  --url https://api.opencard.io/api/v1/application/accounts/{accountId}/organizations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reference_id": "client_acme_001",
  "tpa_id": 42,
  "name": "Acme AB"
}
'
{
  "id": 3,
  "reference_id": "client_acme_001",
  "tpa_id": 42,
  "account_id": 1,
  "name": "Acme AB"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

accountId
integer
required

Your account ID

Body

application/json
reference_id
string
required
tpa_id
integer
required
name
string

Response

201 - application/json

Organization created