Skip to main content
POST
Set a currency as the tenant's default
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /currencies/tenant//default The currency must already be enabled for the tenant. A model hook automatically clears isDefault on any other currency for the tenant, so exactly one default currency is enforced. Authorization:
  • Required role: owner only

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

code
string
required

Response

Default currency set

success
boolean
Example:

true

message
string