{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nmi/json-schema/nmi-payment-request-cancellation-response-schema.json",
  "title": "Payment Request Cancellation Response",
  "description": "Response returned when canceling an in-flight payment request on a cloud device.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nmi-devices-api-openapi.yml#/components/schemas/PaymentRequestCancellationResponse",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "payment-request-cancellation"
      ],
      "description": "Resource type identifier"
    },
    "success": {
      "type": "boolean",
      "description": "Whether the cancellation request was accepted"
    },
    "message": {
      "type": "string",
      "description": "Human-readable result message from the cancellation request"
    },
    "response_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Processor/gateway response code for the cancellation request"
    }
  },
  "required": [
    "object",
    "success",
    "message"
  ]
}