Packages
Get package history
Retrieves a paginated list of all packages for a specific eSIM, including expired and removed packages. Includes usage data for each package. Results are sorted by creation date (newest first).
/profiles/{profileReference}/esims/{esimReference}/packages/historyAuthorization
Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works
Path parameters
profileReferencestringrequiredThe eSIM's profile reference (16-digit numeric string)
esimReferencestringrequiredeSIM reference identifier (18-digit opaque token)
Query parameters
limitintegerMaximum number of items to return (1-100)
20cursorstringOpaque cursor token for fetching the next page. Pass the nextCursor value from a previous response.
Responses
200Package historyapplication/jsonShow response bodyHide response body
dataarray of PackageHistoryItemoptionalShow propertiesHide properties
packageReferencestringPackage reference identifier (23-character opaque token)
externalTransactionIdstring | nullThe client's external transaction ID if provided
planReferencestringPlan reference identifier (14-character opaque token)
typestringExtensible enum. Package type: data for mobile data, sms for text messaging, voice for calls.
datasmsvoicecountryCodestringstatusstringPending means the order is accepted but not yet fully confirmed. Active means all required addons are confirmed. Legacy compatibility can represent pending packages as active and include them in active-filter results; webhook milestones remain the same.
pendingactivethrottledexhaustedexpiredremovedrecurringbooleanWhether this package was set to auto-renew
usedAmountnumberAmount of data used in MB.
remainingAmountnumber | nullAmount of data remaining in MB. Null when not determinable.
usageUpdatedAtstring | null · date-timeWhen usage was last updated
activatedAtstring | null · date-timeexpiresAtstring | null · date-timecreatedAtstring · date-timepaginationobjectoptionalShow propertiesHide properties
limitintegerMaximum items per page
hasMorebooleanWhether there are more items after this page
nextCursorstring | nullOpaque cursor token for the next page. Null when there are no more results.
400Bad request - invalid parameters401Unauthorized - missing or invalid API key403Forbidden - client does not have access to this resource404Resource not found429Rate limit exceeded. A `429` can also arrive without these headers or this body; handle it by its status code.500Internal server error