Roamify eSIM APIs
HomeRoamify Docs
HomeRoamify Docs
  1. Gift Cards
  • Orders
    • Create eSIM Order
      POST
    • Create eSIM Top-Up Order
      POST
    • Get all eSIM Orders
      GET
    • Get Order
      GET
  • eSIMs
    • Get eSIM Usage Details
      GET
    • Get eSIM Compatible TopUp Packages
      GET
    • Get eSIM Usage
      GET
    • Get eSIM Packages History
      GET
    • Get eSIMs
      GET
    • Get eSIM
      GET
    • Generate eSIM Profile
      POST
  • Compatible Devices
    • Get eSIM Compatible Devices
      GET
  • eSIM Packages
    • Get eSIM Packages
      GET
  • eSIM Country
    • Get eSIM Supported Country
      GET
  • Account Balance
    • Get Account Balance
      GET
  • Gift Cards
    • Update Gift Card
      PUT
    • Revoke Gift Card
      PUT
    • Create Gift Card
      POST
    • Get all Gifts
      GET
    • Get Gift
      GET
  • Health Check
    • API Health
      GET
  1. Gift Cards

Revoke Gift Card

Production
https://api.getroamify.com
Production
https://api.getroamify.com
PUT
https://api.getroamify.com
/api/gifts/gift/revoke
Last modified:2025-01-06 23:19:20
Maintainer:Not configured
To revoke a gift card, you need to send a POST request to the /api/gifts/revoke endpoint.
The request body should contain the following:
orderId: The order ID of the gift card. This is a required field of type string.

Request

Header Params
User-Agent
string 
required
Example:
insomnia/10.1.0
Authorization
string 
required
Example:
{{token}}
Body Params application/json
orderId
string 
required
Example
{
    "orderId": "test-order-id" 
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.getroamify.com/api/gifts/gift/revoke' \
--header 'User-Agent: insomnia/10.1.0' \
--header 'Authorization: token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "orderId": "test-order-id" 
}'

Responses

🟢200no response code found
text/plain
Body
object {0}
Modified at 2025-01-06 23:19:20
Previous
Update Gift Card
Next
Create Gift Card
Built with