Skip to content

Update Tariff Template

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

Updates an existing transfer tariff template. Only the provided fields are updated; omitted fields remain unchanged.

Authentication

Requires a valid JWT token and Turnstile verification.

Request Parameters

NameTypeRequiredInDescription
bizIdstringRequiredbodyTemplate business ID
templateNamestringOptionalbodyTemplate display name max 128 characters
descriptionstringOptionalbodyTemplate description max 512 characters
tariffModelstringOptionalbodyFee calculation model (FIXED, PERCENTAGE, TIERED)
fixedAmountnumberOptionalbodyFixed fee amount
ratenumberOptionalbodyFee rate as decimal
floorAmountnumberOptionalbodyMinimum fee amount
ceilingAmountnumberOptionalbodyMaximum fee amount
amountScaleintegerOptionalbodyDecimal precision for amounts
roundingModestringOptionalbodyRounding mode
bandsConfigstringOptionalbodyTiered band configuration as JSON string
isDefaultbooleanOptionalbodyWhether this is the default template
enabledbooleanOptionalbodyWhether the template is enabled

Success Response

Success 200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "bizId": "TTL20260321000001",
    "templateCode": "STANDARD_FEE",
    "templateName": "Updated Fee",
    "description": "Updated description",
    "tariffModel": "PERCENTAGE",
    "fixedAmount": null,
    "rate": 0.03,
    "floorAmount": 1,
    "ceilingAmount": 150,
    "amountScale": 2,
    "roundingMode": "HALF_UP",
    "bandsConfig": null,
    "isDefault": true,
    "enabled": true,
    "createdAt": "2026-03-21T10:00:00Z",
    "updatedAt": "2026-03-21T12:00:00Z"
  }
}

Error Responses

HTTP StatusCodeDescription
4004000Validation error
4014010Unauthorized
4044040Template not found

Notes

  • Partial updates are supported. Only include the fields you want to change.
  • Changes to a template do not retroactively affect wallets that have already been assigned tariffs from this template.

SlaunchX Internal Documentation