Default Rates
Admin

Create new default rates

Changed on

Create new default rates

post/api/v1/admin/default-rates

Request

Request body

Example request

{
  "rates": [
    {
      "type": "domestic_percent_fee",
      "value": 1,
      "unit": "%",
      "base": "gross_amount",
      "notes": "Standard domestic percentage fee"
    },
    {
      "type": "fixed_transaction_fee",
      "value": 0.2,
      "unit": "currency",
      "base": "gbp",
      "notes": "Standard fixed GBP fee"
    },
    {
      "type": "fixed_transaction_fee",
      "value": 0.27,
      "unit": "currency",
      "base": "eur",
      "notes": "Standard fixed EUR fee"
    }
  ]
}

Response

Created

successboolean required

Indicates if the request was successful

Example response

{
  "success": true,
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174001",
    "version": "v1-2024-01-13T15:00:00Z",
    "is_active": true,
    "created_by": "system_seed",
    "created_at": "2024-03-19T12:00:00Z",
    "updated_at": "2024-03-19T12:00:00Z",
    "rates": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174001",
        "defaultRatesId": "123e4567-e89b-12d3-a456-426614174001",
        "merchantRatesId": "123e4567-e89b-12d3-a456-426614174001",
        "type": "domestic_percent_fee",
        "value": 1,
        "unit": "%",
        "base": "gross_amount",
        "conversion_currencies": {
          "source": "EUR",
          "destination": "GBP"
        },
        "notes": "Standard domestic fee"
      }
    ]
  }
}

Changes

    • breaking

      the / response's property type changed from string to no type for status

    • warning

      removed the optional property / from the response with the status

    • warning

      added the new conversion_percent_fee enum value to the /// response property for the response status

    • warning

      added the new refund_conversion_percent_fee enum value to the /// response property for the response status

    • warning

      added the new refund_domestic_percent_fee enum value to the /// response property for the response status

    • warning

      added the new refund_fixed_transaction_fee enum value to the /// response property for the response status

    • info

      added the new optional request property //

    • info

      added the new conversion_percent_fee enum value to the request property //

    • info

      added the new refund_conversion_percent_fee enum value to the request property //

    • info

      added the new refund_domestic_percent_fee enum value to the request property //

    • info

      added the new refund_fixed_transaction_fee enum value to the request property //

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added subschema #1 subschema #2 to the / response property allOf list for the response status

    • info

      endpoint added