Roamify eSIM APIs
HomeRoamify Docs
HomeRoamify Docs
  1. Orders
  • 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. Orders

Create eSIM Order

Production
https://api.getroamify.com
Production
https://api.getroamify.com
POST
https://api.getroamify.com
/api/esim/order
Last modified:2025-01-06 23:19:20
Maintainer:Not configured
To create an eSIM order, you need to send a POST request to the /api/esim/order endpoint.
You are required to provide the following parameters in the request body:
items: An array of eSIM items you want to order. Each item should contain the following details:
packageId: The ID of the eSIM package you want to order. This is a required field of type string.
quantity: The quantity of the eSIM package you want to order. This is a required field of type number.

Request

Header Params
Content-Type
string 
required
Example:
application/json
User-Agent
string 
required
Example:
insomnia/10.1.1
Authorization
string 
required
Example:
{{token}}
Body Params application/json
items
array [object {2}] 
required
packageId
string 
optional
quantity
integer 
optional
Example
{
	"items": [
		{
			"packageId": "esim-cambodia-7days-1gb-all",
			"quantity": 1
		}
	]
}

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 POST 'https://api.getroamify.com/api/esim/order' \
--header 'User-Agent: insomnia/10.1.1' \
--header 'Authorization: token' \
--header 'Content-Type: application/json' \
--data-raw '{
	"items": [
		{
			"packageId": "esim-cambodia-7days-1gb-all",
			"quantity": 1
		}
	]
}'

Responses

🟢200successfully / 200
text/plain
Body
object {0}
Example
application/json; charset=utf-8 content type is not supported in the response body
Next
Create eSIM Top-Up Order
Built with