{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/akahu/main/json-schema/akahu-one-off-payment-request-response-schema.json",
  "title": "OneOffPaymentRequestResponse",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akahu-one-off-payments-api-openapi.yml#/components/schemas/OneOffPaymentRequestResponse",
  "type": "object",
  "properties": {
    "_id": {
      "$ref": "#/$defs/OneOffPaymentId"
    },
    "authorisation_url": {
      "type": "string",
      "format": "uri",
      "description": "The URL the user should be redirected to in order to approve the payment"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "The payment will be cancelled at this time, unless it has been authorised"
    }
  },
  "required": [
    "_id",
    "authorisation_url"
  ],
  "$defs": {
    "OneOffPaymentId": {
      "type": "string",
      "pattern": "^one_off_payment_[a-z0-9]{25,27}$"
    }
  }
}