Update Currency

The Update Currency API allows you to update an existing currency's details.

It requires the unique name, code, and buy rate, while the image and other rates are optional. The name and code fields ignore the current currency ID when checking for uniqueness.

API Method

PATCH

Endpoint

https://cebuana-apiuat.veryfyglobal.com/currencies/{currency_id}

Headers

Key
Value

Accept

application/json

Authorization

Bearer <YOUR_TOKEN>

Content-Type

multipart/form-data

Form-Data Parameters

Parameter
Type
Required
Description

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

Key
Value

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": []
}

Last updated