Skip to content
Wallets

Create Walletexperimental

POST/api/wallets

This endpoint allows you to create a Wallet.

Request body

  • accountIdrequired string
    The account that owns the wallet.
  • assetTypesrequired array of objects
    A list of asset types supported by the Wallet. Each item must include an id, and a collectionId if the asset type is centrapay.token or centrapay.ledger.
    • collectionIdoptional string
      Identifier of a Collection that is supported by the wallet. Only valid if the Asset Type is a centrapay.token or centrapay.ledger.
    • idrequired string
      The unique identifier of the Asset Type.
  • connectUrloptional string
    The URL to redirect to for the Connect flow.
  • idrequired string
    A unique and human readable identifier of the Wallet.
  • logoMediaUploadIdoptional string
    The ID of the Media Upload image for the Wallet.
  • namerequired string
    The displayable name of the Wallet.
  • payUrloptional string
    The URL to redirect to for payments.
  • primaryColorHexoptional string
    A hex color code (e.g., #FF5733) used to visually represent the wallet or brand in the UI.

Responses

Request
curl -X POST https://service.centrapay.com/api/wallets \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"accountId": "abc123",
"assetTypes": [
{
"id": "quartz.nzd"
},
{
"collectionId": "98h1d312",
"id": "centrapay.token"
},
{
"collectionId": "ca9h0221sacw",
"id": "centrapay.token"
}
],
"connectUrl": "https://app.payap.com/join",
"id": "payap",
"logoMediaUploadId": "abcd",
"name": "Payap",
"payUrl": "https://app.payap.com/pay",
"primaryColorHex": "#abc123"
}'