Create new default rates
Changed onCreate new default rates
Request
- Base URLhttps://core.quidkey.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
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 fromstringto no type for status - warning
removed the optional property
/from the response with the status - warning
added the new
conversion_percent_feeenum value to the///response property for the response status - warning
added the new
refund_conversion_percent_feeenum value to the///response property for the response status - warning
added the new
refund_domestic_percent_feeenum value to the///response property for the response status - warning
added the new
refund_fixed_transaction_feeenum value to the///response property for the response status - info
added the new optional request property
// - info
added the new
conversion_percent_feeenum value to the request property// - info
added the new
refund_conversion_percent_feeenum value to the request property// - info
added the new
refund_domestic_percent_feeenum value to the request property// - info
added the new
refund_fixed_transaction_feeenum 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 #1subschema #2to the/response propertyallOflist for the response status
- breaking
- info
endpoint added
- info