{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/azupay/main/json-schema/azupay-payment-agreement-search-obj-schema.json", "title": "PaymentAgreementSearchObj", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/azupay-payment-agreement-api-openapi.yml#/components/schemas/PaymentAgreementSearchObj", "type": "object", "additionalProperties": false, "properties": { "PaymentAgreementSearch": { "type": "object", "description": "Please note `paymentAgreementId`, `contractId` and date fields can't be included in the same request", "additionalProperties": false, "properties": { "fromDate": { "$ref": "#/$defs/fromDateUTC" }, "toDate": { "$ref": "#/$defs/toDateUTC" }, "paymentAgreementId": { "$ref": "#/$defs/paymentAgreementIdForSearch" }, "contractId": { "$ref": "#/$defs/ContractIdObj" } } } }, "$defs": { "ContractIdObj": { "type": "string", "minLength": 1, "maxLength": 50, "description": "Unique Id for the merchant side contract.\nThis field is used to prevent the creation of duplicated payment agreements in CREATED, SUSPENDED, ACTIVE status. \nPayment agreements in statuses such as CANCELLED, FAILED are not considered duplicates.\n" }, "fromDateUTC": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", "description": "The report date in ISO date/time string format in UTC" }, "paymentAgreementIdForSearch": { "type": "string", "minLength": 1, "maxLength": 40, "description": "ID of the payment agreement being searched." }, "toDateUTC": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$", "description": "The report date in ISO date/time string format in UTC" } } }