Update Currency
The Update Currency API allows you to update an existing currency's details.
API Method
PATCH
Endpoint
https://cebuana-apiuat.veryfyglobal.com/currencies/{currency_id}
Headers
Accept
application/json
Authorization
Bearer <YOUR_TOKEN>
Content-Type
multipart/form-data
Form-Data Parameters
name
string
Yes
The unique name of the currency (ignores current currency if updating).
code
string
Yes
The unique ISO 4217 currency code (3 characters, ignores current code if updating).
image
file
No
Image representing the currency (optional on edit).
buy_rate
number
Yes
The buy rate for the currency (must be a non-negative number).
sell_rate
number
No
Optional sell rate for the currency (must be a non-negative number).
order
integer
No
Optional order value to determine sorting (must be a non-negative integer).
Request Example
Form-Data
name
Euro
code
EUR
image
euro_image.png (file upload)
buy_rate
0.89
sell_rate
0.91
order
2
Response Sample
{
"message": "Ok",
"data": []
}{
"code": "422.000.000",
"message": "The name field is required. (and 3 more errors)",
"errors": {
"name": [
"The name field is required."
],
"code": [
"The code field is required."
],
"buy_rate": [
"The buy rate field is required."
]
}
}Last updated