Skip to main content
POST
/
api
/
payments
/
accounts
Create an account
curl --request POST \
  --url http://localhost/api/payments/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reference": "<string>",
  "connectorID": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "type": "UNKNOWN",
  "defaultAsset": "<string>",
  "accountName": "<string>",
  "metadata": {}
}'
{
  "data": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "reference": "<string>",
    "connectorID": "<string>",
    "provider": "<string>",
    "defaultCurrency": "<string>",
    "defaultAsset": "<string>",
    "accountName": "<string>",
    "type": "UNKNOWN",
    "pools": [
      "<string>"
    ],
    "metadata": {},
    "raw": {}
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
reference
string
required
connectorID
string
required
createdAt
string<date-time>
required
type
enum<string>
required
Available options:
UNKNOWN,
INTERNAL,
EXTERNAL
defaultAsset
string
accountName
string
metadata
object | null

Response

OK

data
object
required
I