Zendit · Schema

Transaction

Transaction with history log.

eSIMGift CardsMobile Top-UpPaymentsPrepaid

Properties

Name Type Description
transactionId string
type string
status string
createdAt string
history array Transaction status history.
View JSON Schema on GitHub

JSON Schema

zendit-api-transaction-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Transaction",
  "description": "Transaction with history log.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zendit/refs/heads/main/json-schema/zendit-api-transaction-schema.json",
  "type": "object",
  "properties": {
    "transactionId": {
      "type": "string",
      "example": "txn-abc123"
    },
    "type": {
      "type": "string",
      "example": "TOPUP"
    },
    "status": {
      "type": "string",
      "example": "DONE"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "example": "2026-05-01T12:00:00Z"
    },
    "history": {
      "type": "array",
      "description": "Transaction status history.",
      "items": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "PENDING"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2026-05-01T12:00:00Z"
          }
        }
      },
      "example": [
        {
          "status": "PENDING",
          "timestamp": "2026-05-01T12:00:00Z"
        }
      ]
    }
  }
}