Skip to content

Assign Wallet Tariff

POST/web/v1/wallet-tariffs/command/assign JWT

Assigns a tariff to a wallet by copying values from a template. If the wallet already has a tariff configuration, returns the existing tariff.

Authentication

Requires a valid JWT token and Turnstile verification.

Request Parameters

NameTypeRequiredInDescription
walletIdstringRequiredbodyTarget wallet ID
templateBizIdstringRequiredbodySource template business ID

Success Response

Created 201
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "bizId": "WTF20260321000001",
    "walletId": "WLT-001",
    "workspaceId": "WS-001",
    "sourceTemplate": "TTL20260321000001",
    "tariffModel": "PERCENTAGE",
    "fixedAmount": null,
    "rate": 0.025,
    "floorAmount": 1,
    "ceilingAmount": 100,
    "amountScale": 2,
    "roundingMode": "HALF_UP",
    "bandsConfig": null,
    "enabled": true,
    "createdAt": "2026-03-21T10:00:00Z",
    "updatedAt": "2026-03-21T10:00:00Z"
  }
}

Error Responses

HTTP StatusCodeDescription
4004000Validation error
4014010Unauthorized
4044040Template not found

Notes

  • Tariff values are copied from the template at assignment time. Subsequent template changes do not affect this wallet.
  • If the wallet already has a tariff, the existing tariff is returned (idempotent behavior).

SlaunchX Internal Documentation