Skip to content

Publish exchange rates

POST
/api/app/service-provider/currency-rates
curl --request POST \
--url https://test.unipay.co.zw/api/app/service-provider/currency-rates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "rates": [ { "currencyCode": "example", "baseCurrency": "example", "rate": 1, "effectiveDate": "2026-04-15T12:00:00Z" } ] }'
Media typeapplication/json
object
rates
required
Array<object>
>= 1 items <= 1000 items
object
currencyCode
string
nullable
baseCurrency
string
nullable
rate
number format: double
effectiveDate
string format: date-time
Examplegenerated
{
"rates": [
{
"currencyCode": "example",
"baseCurrency": "example",
"rate": 1,
"effectiveDate": "2026-04-15T12:00:00Z"
}
]
}

OK

Media typeapplication/json
integer format: int32
Examplegenerated
1

Bad Request

Media typeapplication/json
object
error
object
code
string
nullable
message
string
nullable
details
string
nullable
data
object
key
additional properties
validationErrors
Array<object>
nullable
object
message
string
nullable
members
Array<string>
nullable
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"data": {
"additionalProperty": "example"
},
"validationErrors": [
{
"message": "example",
"members": [
"example"
]
}
]
}
}

Unauthorized: token missing, invalid or expired. Empty body.

Forbidden: the token lacks the scope this call needs. Empty body. (Refusals specific to your organisation use the error object.)

Not found: wrong path. Empty body.

Internal Server Error

Media typeapplication/json
object
error
object
code
string
nullable
message
string
nullable
details
string
nullable
data
object
key
additional properties
validationErrors
Array<object>
nullable
object
message
string
nullable
members
Array<string>
nullable
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"data": {
"additionalProperty": "example"
},
"validationErrors": [
{
"message": "example",
"members": [
"example"
]
}
]
}
}

UniPay API v1 · build e1eb5c49 · Powered by Axis Solutions