Skip to content

Create Tariff Template

POST/web/v1/transfer-tariff-templates/command/create JWT

Creates a new transfer tariff template for the tenant. Templates define fee calculation rules that can be assigned to wallets.

Authentication

Requires a valid JWT token and Turnstile verification.

Request Parameters

NameTypeRequiredInDescription
templateCodestringRequiredbodyUnique template code max 64 characters
templateNamestringRequiredbodyTemplate display name max 128 characters
descriptionstringOptionalbodyTemplate description max 512 characters
tariffModelstringRequiredbodyFee calculation model
fixedAmountnumberOptionalbodyFixed fee amount (for FIXED model)
ratenumberOptionalbodyFee rate as decimal (for PERCENTAGE model, e.g. 0.025 = 2.5%)
floorAmountnumberOptionalbodyMinimum fee amount
ceilingAmountnumberOptionalbodyMaximum fee amount
amountScaleintegerOptionalbodyDecimal precision for amounts. Default: 2
roundingModestringOptionalbodyRounding mode. Default: "HALF_UP"
bandsConfigstringOptionalbodyTiered band configuration as JSON string
isDefaultbooleanRequiredbodyWhether this is the default template for the tenant

Success Response

Created 201
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "bizId": "TTL20260321000001",
    "templateCode": "STANDARD_FEE",
    "templateName": "Standard Fee",
    "description": "Default transfer fee template",
    "tariffModel": "PERCENTAGE",
    "fixedAmount": null,
    "rate": 0.025,
    "floorAmount": 1,
    "ceilingAmount": 100,
    "amountScale": 2,
    "roundingMode": "HALF_UP",
    "bandsConfig": null,
    "isDefault": true,
    "enabled": true,
    "createdAt": "2026-03-21T10:00:00Z",
    "updatedAt": "2026-03-21T10:00:00Z"
  }
}

Error Responses

HTTP StatusCodeDescription
4004000Validation error
4014010Unauthorized
4094090Template code already exists

Notes

  • Only one default template can exist per tenant. Setting isDefault: true may unset the previous default.

SlaunchX Internal Documentation