Create account

POST {{baseUrl}}/accounts

Creates a new account

Following account types are supported: customer, market-maker & internal. Per default - when no type is provided, a customer account will be created. Every account of type customer must be linked to a customer stored in Tangany Customers API through the owners property.

Example http-client POST https://api.tangany.com/settlement/accounts { "id": "795ea856-a6a1-496f-86e1-f1376efec2c2", "label": "Max Müller Account", "type": "customer", "customerId": "customerIdFromCustomersApi", "additionalAttributes": { "customSecondaryID": "627ce4b1-3c4b-4723-84ce-646aedc3d166" } }

The additionalAttributes property can be used to include additional metadata about an account. This feature should be used only if it is fundamentally necessary.

Allowed roles: EDITOR

Request Body

{"id"=>"{{$guid}}", "label"=>"Max Müller Account", "type"=>"customer", "customerId"=>"max-mueller", "blockchain"=>{"addresses"=>["ex irure", "aliquip et sed"], "synchronization"=>"full"}}

HEADERS

KeyDatatypeRequiredDescription
tangany-versionnumber(Required) API version
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"795ea856-a6a1-496f-86e1-f1376efec2c2","label":"Max Müller Account","type":"customer","customerId":"max-mueller","blockchain":{"addresses":["ex irure","aliquip et sed"],"synchronization":"full"},"additionalAttributes":{}}