Create Currency
The Create Currency API allows you to add a new currency to the system. This endpoint requires a valid bearer token for authentication.
API Method
POST
Endpoint
https://cebuana-apiuat.veryfyglobal.com/currencies
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.
code
string
Yes
The unique ISO 4217 code for the currency (3 characters max).
image
file
Yes
Image representing the currency (must be a valid image file).
buy_rate
number
No
Optional 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
United States Dollar
code
USD
image
usd_image.png (file upload)
buy_rate
1.12
sell_rate
1.10
order
1
Response Sample
{
"message": "Ok",
"data": []
}{
"code": "422.000.000",
"message": "The name field is required. (and 2 more errors)",
"errors": {
"name": [
"The name field is required."
],
"code": [
"The code field is required."
],
"image": [
"The image field is required."
]
}
}{
"code": "422.000.000",
"message": "The name has already been taken. (and 1 more error)",
"errors": {
"name": [
"The name has already been taken."
],
"code": [
"The code has already been taken."
]
}
}Last updated