Get an eSIM order by your own externalReference
GET
/api/v1/orders/esim/reference/{externalReference}
const url = 'https://api-omni.linra.net/api/v1/orders/esim/reference/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-omni.linra.net/api/v1/orders/esim/reference/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”externalReference
required
string
Responses
Section titled “Responses”The eSIM order.
Media typeapplication/json
object
state
required
string
payload
required
details
object
payload
required
object
orderId
string format: uuid
orderGlobalId
string
partnerId
string format: uuid
partnerGlobalId
string
geoScopeGlobalId
string
externalReference
string
status
string
statusDetail
Product-specific status detail carried on Topup/eSIM order responses.
object
productType
string
statusCode
string
description
string
productSku
string
email
string
dataAllowance
number format: decimal
validityDays
integer
amount
number format: decimal
currency
string
submittedAt
string format: date-time
completedAt
string format: date-time
esimIccid
Populated once provisioning succeeds.
string
esimQrCode
Populated once provisioning succeeds.
string
esimActivationCode
Populated once provisioning succeeds.
string
esimPlanDetails
Populated once provisioning succeeds.
string
errorMessage
string
displayCurrency
string
rate
number
amountDisplay
number
Example
{ "state": "SUCCESS", "payload": { "statusDetail": { "productType": "Topup", "statusCode": "TOPUP_SUCCESS" }, "currency": "SAR" }}Unknown reference.
Media typeapplication/json
The envelope every /api/v1 ERROR response uses. state carries the machine-readable error code (see the Errors guide).
object
state
required
string
payload
required
Always null on an error response.
object
details
object
Example
{ "state": "NOT_FOUND_ORDER", "payload": null}Too many requests — see the Rate limits guide. Retry after the Retry-After header (seconds).
Media typeapplication/json
The envelope every /api/v1 ERROR response uses. state carries the machine-readable error code (see the Errors guide).
object
state
required
string
payload
required
Always null on an error response.
object
details
object
Example
{ "state": "NOT_FOUND_ORDER", "payload": null}Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before retrying.