{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/woolworths-group/main/json-schema/woolworths-group-order-processing-response-schema.json",
  "title": "OrderProcessingResponse",
  "description": "Order Status Response",
  "x-generated": "2026-10-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woolworths-group-wpay-gift-card-partner-openapi.yml#/components/schemas/OrderProcessingResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "This indicates the current order status. The value will be 'PROCESSING' in a batch order."
    },
    "orderId": {
      "type": "string",
      "description": "Wpay order identifier (ID). This order ID is used at the end the batch order process when retrievig the ativated cards."
    },
    "refno": {
      "type": "string",
      "description": "Your unique order reference identifier that was supplied in the request. This identifier is used to retrieve the order status."
    },
    "cancel": {
      "$ref": "#/$defs/cancelObject"
    },
    "currency": {
      "$ref": "#/$defs/currencyObject"
    },
    "payments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          }
        }
      }
    }
  },
  "$defs": {
    "cancelObject": {
      "type": "object",
      "description": "This field is unused.",
      "properties": {
        "allowed": {
          "type": "boolean"
        },
        "allowedWithIn": {
          "type": "number"
        }
      }
    },
    "currencyObject": {
      "type": "object",
      "description": "Contains details about the gift card currency.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Currency code"
        },
        "numericCode": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "description": "Currency numeric code as per https://en.wikipedia.org/wiki/ISO_4217"
        },
        "symbol": {
          "type": "string",
          "description": "Currency symbol"
        }
      }
    }
  }
}