Zendit · Schema

Purchase

Purchase transaction.

eSIMGift CardsMobile Top-UpPaymentsPrepaid

Properties

Name Type Description
transactionId string
offerId string
status string
type string
createdAt string
send object
receive object
details object Product-specific details (top-up subscriber, voucher recipient, eSIM activation code, etc).
View JSON Schema on GitHub

JSON Schema

zendit-api-purchase-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Purchase",
  "description": "Purchase transaction.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zendit/refs/heads/main/json-schema/zendit-api-purchase-schema.json",
  "type": "object",
  "properties": {
    "transactionId": {
      "type": "string",
      "example": "txn-abc123"
    },
    "offerId": {
      "type": "string",
      "example": "offer-12345"
    },
    "status": {
      "type": "string",
      "enum": [
        "DONE",
        "FAILED",
        "PENDING",
        "ACCEPTED",
        "AUTHORIZED",
        "IN_PROGRESS"
      ],
      "example": "DONE"
    },
    "type": {
      "type": "string",
      "example": "TOPUP"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "example": "2026-05-01T12:00:00Z"
    },
    "send": {
      "$ref": "#/components/schemas/Price"
    },
    "receive": {
      "$ref": "#/components/schemas/Price"
    },
    "details": {
      "type": "object",
      "additionalProperties": true,
      "description": "Product-specific details (top-up subscriber, voucher recipient, eSIM activation code, etc).",
      "example": {}
    }
  }
}