Table of Contents
Update Gift Card
To update a gift card, you need to send a PUT
request to the /api/gifts/gift
endpoint.
The request body should contain the following parameters:
orderId
: The order ID of the gift card. This is a required field of typestring
.senderEmail
: The new email address of the sender. This is a required field of typestring
.amount
: The new amount of the gift card. This is a required field of typenumber
.currency
: The new currency of the gift card. This is a required field of typestring
. The currency should be in ISO 4217  format. Currently supported currencies are:USD
: United States DollarCAD
: Canadian DollarEUR
: EuroGBP
: British PoundAUD
: Australian DollarCNY
: Chinese YuanHKD
: Hong Kong DollarJPY
: Japanese YenSGD
: Singapore DollarTWD
: New Taiwan DollarKRW
: South Korean WonAED
: United Arab Emirates DirhamMXN
: Mexican PesoSAR
: Saudi RiyalEGP
: Egyptian PoundRUB
: Russian RubleQAR
: Qatari RiyalINR
: Indian RupeeTHB
: Thai BahtBGN
: Bulgarian LevBRL
: Brazilian RealCHF
: Swiss FrancCZK
: Czech KorunaDKK
: Danish KroneHUF
: Hungarian ForintMYR
: Malaysian RinggitNOK
: Norwegian KroneNZD
: New Zealand DollarPLN
: Polish ZlotyRON
: Romanian LeuSEK
: Swedish Krona
Usage - update a gift card
Here is an example of how you can update a gift card using Roamify Gift Card API.
curl
curl --request PUT \
--url 'https://api-dev.getroamify.com/api/gifts/gift' \
--header 'Authorization: Bearer Access Token' \
--header 'Content-Type: application/json' \
--data '{
"orderId": "your-order-id",
"senderEmail": "test@mail.com",
"amount": 100,
"currency": "USD"
}'
Last updated on