Latest Subscription's consumption report

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://bump.sh/zim/doc/esim-api/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "eSIM API MCP server": {
    "url": "https://bump.sh/zim/doc/esim-api/mcp"
  }
}

Close
GET /subscriptions/:subscriptionID/activity/latest

Retrieve the latest consumption report for a Subscription

  • Note: Consumption reports are updated automatically every hour.

Query parameters

  • subscriptionID string

    ID of the Subscription

Responses

  • 200 application/json

    Consumption report fetched successfully

    Hide response attributes Show response attributes object
    • currentBalanceBytes number

      The current balance in bytes for the Subscription

    • spentBalanceBytes number

      The spent balance in bytes for the Subscription

    • initialBalanceBytes number

      The initial balance in bytes for the Subscription

    • lastUpdatedAt number

      The report's last update Unix epoch timestamp

GET /subscriptions/:subscriptionID/activity/latest
curl \
 --request GET 'https://zim.api.zimconnections.com/subscriptions/:subscriptionID/activity/latest' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "X-App-Identifier: $API_KEY"
Response examples (200)
[
  {
    "currentBalanceBytes": 94371840,
    "initialBalanceBytes": 104857600,
    "spentBalanceBytes": 10485760,
    "lastUpdatedAt": 1757510292
  }
]