Skip to content

Get a top-up order by your own externalReference

GET
/api/v1/orders/topup/reference/{externalReference}
curl --request GET \
--url https://api-omni.linra.net/api/v1/orders/topup/reference/example \
--header 'Authorization: Bearer <token>'
externalReference
required
string

The top-up order.

Media typeapplication/json
object
state
required
string
payload
required
details
object
payload
required
object
orderId
string format: uuid
orderGlobalId
string
sagaId
string
partnerId
string format: uuid
partnerGlobalId
string
geoScopeGlobalId
string
externalReference
string
phoneNumber
string
amount
number format: decimal
currency
string
status
string
statusDetail

Product-specific status detail carried on Topup/eSIM order responses.

object
productType
string
statusCode
string
description
string
nullable
vendorOrderId
string
nullable
errorMessage
string
nullable
submittedAt
string format: date-time
completedAt
string format: date-time
nullable
currentRetryCount
integer
nextPollAt
string format: date-time
nullable
displayCurrency
string
nullable
rate
number
nullable
amountDisplay
number
nullable
Example
{
"state": "SUCCESS",
"payload": {
"currency": "SAR",
"statusDetail": {
"productType": "Topup",
"statusCode": "TOPUP_SUCCESS"
}
}
}

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
}
Retry-After
integer

Seconds to wait before retrying.