Create Gift Card
To create a gift card, you need to send a POST
request to the /api/gifts/gift
endpoint. The request body should contain the following parameters:
orderId
: The order ID of for your own reference. This is a required field of typestring
.senderEmail
: The email address of the sender. This is a required field of typestring
.sender
: The name of the sender. This is an optional field of typestring
.amount
: The amount of the gift card. This is a required field of typenumber
.currency
: The 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
Example
Here is an example of how you can create a gift card using Roamify Gift Card API.
curl --request POST \
--url 'https://api-dev.getroamify.com/api/gifts/gift' \
--header 'Authorization: Bearer AssessToken' \
--header 'Content-Type: application/json' \
--data '{
"orderId": "your-order-id",
"amount": 100,
"currency": "USD",
"senderEmail": "test@mail.com",
"sender": ""
}'