APIs to onboard and manage company.
curl -i -X GET \
  https://apis.spotnana.com/v2/license/company/f49d00fe-1eda-4304-ba79-a980f565281d/service-charge/per-trip \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "config": { "charges": [ … ], "defaultCurrencyCode": "GBP", "tierCharges": [ … ] }, "enabled": true, "enableDisableOpSupported": true }
Fixed charge configuration for service charge
Amount in specified currency
The numeric value for the amount of money.
The 3-letter currency code for the money amount (defined using ISO 4217 standard).
The converted currency and amount that has been converted (if a currency conversion has been requested). For example, if the call requests that money be sent in a specified currency (because the frontend requested the backend to send money in the user's preferred currency).
The 3-letter currency code for the converted currency (defined using ISO 4217 standard).
curl -i -X POST \
  https://apis.spotnana.com/v2/license/company/f49d00fe-1eda-4304-ba79-a980f565281d/service-charge/per-trip \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "config": {
      "charges": [
        {
          "amount": 510,
          "currencyCode": "GBP",
          "convertedAmount": 715.42,
          "convertedCurrency": "USD",
          "otherCoinage": [
            {
              "coinageCode": "BREX_POINTS",
              "amount": 1000,
              "conversionRate": 0.01,
              "preferredCurrencyConversionRate": 0.01
            }
          ]
        }
      ],
      "defaultCurrencyCode": "GBP",
      "tierCharges": [
        {
          "tier": "SEAT1A",
          "charges": [
            {
              "amount": 510,
              "currencyCode": "GBP",
              "convertedAmount": 715.42,
              "convertedCurrency": "USD",
              "otherCoinage": [
                {}
              ]
            }
          ]
        }
      ]
    }
  }'