Zendit · Schema

VoucherPurchaseRequest

Voucher purchase request.

eSIMGift CardsMobile Top-UpPaymentsPrepaid

Properties

Name Type Description
transactionId string
offerId string
sendValue object
recipient object Recipient details.
View JSON Schema on GitHub

JSON Schema

zendit-api-voucher-purchase-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "VoucherPurchaseRequest",
  "description": "Voucher purchase request.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zendit/refs/heads/main/json-schema/zendit-api-voucher-purchase-request-schema.json",
  "type": "object",
  "properties": {
    "transactionId": {
      "type": "string",
      "example": "my-txn-abc123"
    },
    "offerId": {
      "type": "string",
      "example": "voucher-offer-001"
    },
    "sendValue": {
      "$ref": "#/components/schemas/Price"
    },
    "recipient": {
      "type": "object",
      "description": "Recipient details.",
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "example": "[email protected]"
        },
        "firstName": {
          "type": "string",
          "example": "Jane"
        },
        "lastName": {
          "type": "string",
          "example": "Smith"
        }
      },
      "example": {
        "email": "[email protected]",
        "firstName": "Jane",
        "lastName": "Smith"
      }
    }
  },
  "required": [
    "offerId"
  ]
}