{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-response-quotation-schema.json",
  "title": "responseQuotation",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-quotations-api-openapi.yml#/components/schemas/responseQuotation",
  "type": "object",
  "required": [
    "quotationReference",
    "creditParty",
    "debitParty",
    "requestAmount",
    "requestCurrency"
  ],
  "properties": {
    "quotationReference": {
      "$ref": "#/$defs/quotationReference"
    },
    "creditParty": {
      "$ref": "#/$defs/creditPartyArray"
    },
    "debitParty": {
      "$ref": "#/$defs/debitPartyArray"
    },
    "type": {
      "$ref": "#/$defs/type"
    },
    "subType": {
      "$ref": "#/$defs/subType"
    },
    "quotationStatus": {
      "$ref": "#/$defs/quotationStatus"
    },
    "requestAmount": {
      "description": "The requested quotation amount.",
      "allOf": [
        {
          "$ref": "#/$defs/amount"
        }
      ]
    },
    "requestCurrency": {
      "description": "Currency of the requested quotation amount",
      "allOf": [
        {
          "$ref": "#/$defs/currency"
        }
      ]
    },
    "availableDeliveryMethod": {
      "description": "Delivery Method that is possible for the intended recipient.",
      "allOf": [
        {
          "$ref": "#/$defs/deliveryMethod"
        }
      ]
    },
    "chosenDeliveryMethod": {
      "description": "The delivery method chosen by the sending end user as the specific delivery method to be used in the quotes received.",
      "allOf": [
        {
          "$ref": "#/$defs/deliveryMethod"
        }
      ]
    },
    "originCountry": {
      "allOf": [
        {
          "$ref": "#/$defs/nationality"
        }
      ],
      "description": "The originating country of the quotation request, i.e. the country where the request was initiated."
    },
    "receivingCountry": {
      "allOf": [
        {
          "$ref": "#/$defs/nationality"
        }
      ],
      "description": "Destination country of the quotation request, i.e. the country that the sender wishes to send to."
    },
    "quotes": {
      "$ref": "#/$defs/quoteArray"
    },
    "recipientKyc": {
      "$ref": "#/$defs/kyc"
    },
    "senderKyc": {
      "$ref": "#/$defs/kyc"
    },
    "recipientBlockingReason": {
      "$ref": "#/$defs/recipientBlockingReason"
    },
    "senderBlockingReason": {
      "$ref": "#/$defs/senderBlockingReason"
    },
    "requestingOrganisation": {
      "$ref": "#/$defs/requestingOrganisation"
    },
    "sendingServiceProviderCountry": {
      "allOf": [
        {
          "$ref": "#/$defs/nationality"
        }
      ],
      "description": "The country of the sending service provider that holds the account of the sender."
    },
    "creationDate": {
      "$ref": "#/$defs/creationDate"
    },
    "modificationDate": {
      "$ref": "#/$defs/modificationDate"
    },
    "requestDate": {
      "$ref": "#/$defs/requestDate"
    },
    "dateCreated": {
      "$ref": "#/$defs/dateCreated"
    },
    "dateModified": {
      "$ref": "#/$defs/dateModified"
    },
    "customData": {
      "$ref": "#/$defs/customDataArray"
    },
    "metadata": {
      "$ref": "#/$defs/metadataArray"
    }
  },
  "$defs": {
    "amount": {
      "type": "string",
      "minLength": 1,
      "maxLength": 23,
      "pattern": "^([0]|([1-9][0-9]{0,17}))([.][0-9]{0,3}[0-9])?$"
    },
    "contactPhone": {
      "type": "string",
      "description": "Contact phone number (mobile or landline) of the KYC subject.",
      "minLength": 0,
      "maxLength": 256
    },
    "creationDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the object was created by the API Provider."
    },
    "creditPartyArray": {
      "type": "array",
      "description": "A collection of key/value pairs that enable the party to be identified. Keys include MSISDN and Wallet Identifier.",
      "items": {
        "$ref": "#/$defs/party"
      },
      "maxItems": 10,
      "minItems": 1
    },
    "currency": {
      "type": "string",
      "enum": [
        "AED",
        "AFN",
        "ALL",
        "AMD",
        "ANG",
        "AOA",
        "ARS",
        "AUD",
        "AWG",
        "AZN",
        "BAM",
        "BBD",
        "BDT",
        "BGN",
        "BHD",
        "BIF",
        "BMD",
        "BND",
        "BOB",
        "BOV",
        "BRL",
        "BSD",
        "BTN",
        "BWP",
        "BYN",
        "BZD",
        "CAD",
        "CDF",
        "CHE",
        "CHF",
        "CHW",
        "CLF",
        "CLP",
        "CNY",
        "COP",
        "COU",
        "CRC",
        "CUC",
        "CUP",
        "CVE",
        "CZK",
        "DJF",
        "DKK",
        "DOP",
        "DZD",
        "EGP",
        "ERN",
        "ETB",
        "EUR",
        "FJD",
        "FKP",
        "GBP",
        "GEL",
        "GHS",
        "GIP",
        "GMD",
        "GNF",
        "GTQ",
        "GYD",
        "HKD",
        "HNL",
        "HRK",
        "HTG",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "IQD",
        "IRR",
        "ISK",
        "JMD",
        "JOD",
        "JPY",
        "KES",
        "KGS",
        "KHR",
        "KMF",
        "KPW",
        "KRW",
        "KWD",
        "KYD",
        "KZT",
        "LAK",
        "LBP",
        "LKR",
        "LRD",
        "LSL",
        "LYD",
        "MAD",
        "MDL",
        "MGA",
        "MKD",
        "MMK",
        "MNT",
        "MOP",
        "MRO",
        "MUR",
        "MVR",
        "MWK",
        "MXN",
        "MXV",
        "MYR",
        "MZN",
        "NAD",
        "NGN",
        "NIO",
        "NOK",
        "NPR",
        "NZD",
        "OMR",
        "PAB",
        "PEN",
        "PGK",
        "PHP",
        "PKR",
        "PLN",
        "PYG",
        "QAR",
        "RON",
        "RSD",
        "RUB",
        "RWF",
        "SAR",
        "SBD",
        "SCR",
        "SDG",
        "SEK",
        "SGD",
        "SHP",
        "SLL",
        "SOS",
        "SRD",
        "SSP",
        "STD",
        "SVC",
        "SYP",
        "SZL",
        "THB",
        "TJS",
        "TMT",
        "TND",
        "TOP",
        "TRY",
        "TTD",
        "TWD",
        "TZS",
        "UAH",
        "UGX",
        "USD",
        "USN",
        "UYI",
        "UYU",
        "UZS",
        "VEF",
        "VND",
        "VUV",
        "WST",
        "XAF",
        "XAG",
        "XAU",
        "XBA",
        "XBB",
        "XBC",
        "XBD",
        "XCD",
        "XDR",
        "XOF",
        "XPD",
        "XPF",
        "XPT",
        "XSU",
        "XTS",
        "XUA",
        "XXX",
        "YER",
        "ZAR",
        "ZMW",
        "ZWL"
      ]
    },
    "customData": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string",
          "description": "Identifies the type of additional field.",
          "minLength": 1,
          "maxLength": 256
        },
        "value": {
          "type": "string",
          "description": "Identifies the value of the additional field.",
          "minLength": 1,
          "maxLength": 256
        }
      }
    },
    "customDataArray": {
      "type": "array",
      "description": "A collection of key/value pairs. These can be used to populate provider specific fields.",
      "items": {
        "$ref": "#/$defs/customData"
      },
      "maxItems": 20
    },
    "dateCreated": {
      "type": "string",
      "format": "date-time",
      "deprecated": true,
      "description": "Date and time when the object was created by the API Provider."
    },
    "dateModified": {
      "type": "string",
      "format": "date-time",
      "deprecated": true,
      "description": "Date and time when the object was modified by the API Provider."
    },
    "dateOfBirth": {
      "type": "string",
      "format": "date",
      "description": "Birth date of the KYC subject."
    },
    "debitPartyArray": {
      "type": "array",
      "description": "A collection of key/value pairs that enable the party to be identified. Keys include MSISDN and Wallet Identifier.",
      "items": {
        "$ref": "#/$defs/party"
      },
      "maxItems": 10,
      "minItems": 1
    },
    "deliveryMethod": {
      "type": "string",
      "enum": [
        "directtoaccount",
        "agent",
        "personaldelivery"
      ]
    },
    "emailAddress": {
      "type": "string",
      "description": "Email address of the KYC subject.",
      "minLength": 0,
      "maxLength": 256
    },
    "employerName": {
      "type": "string",
      "description": "Employer name of the KYC subject.",
      "minLength": 0,
      "maxLength": 256
    },
    "fees": {
      "type": "object",
      "required": [
        "feeType",
        "feeCurrency",
        "feeAmount"
      ],
      "properties": {
        "feeType": {
          "type": "string",
          "description": "Defines the type of fee.",
          "minLength": 1,
          "maxLength": 256
        },
        "feeAmount": {
          "description": "Defines the amount of the fee.",
          "allOf": [
            {
              "$ref": "#/$defs/amount"
            }
          ]
        },
        "feeCurrency": {
          "description": "Defines the currency for the given fee.",
          "allOf": [
            {
              "$ref": "#/$defs/currency"
            }
          ]
        }
      }
    },
    "feesArray": {
      "type": "array",
      "description": "Returns all fees that are applicable to the object.",
      "items": {
        "$ref": "#/$defs/fees"
      },
      "maxItems": 20,
      "minItems": 1
    },
    "fxRate": {
      "type": "string",
      "description": "The conversion rate applicable between the sending and the receiving currency for the requested transaction.",
      "minLength": 4,
      "maxLength": 256,
      "pattern": "^([0]|([1-9][0-9]{0,17}))([.][0-9]{0,10}[1-9])?$"
    },
    "gender": {
      "type": "string",
      "enum": [
        "m",
        "f",
        "u"
      ],
      "description": "Gender of the KYC subject."
    },
    "idDocument": {
      "type": "object",
      "required": [
        "idType"
      ],
      "properties": {
        "idType": {
          "type": "string",
          "enum": [
            "passport",
            "nationalregistration",
            "otherId",
            "drivinglicence",
            "socialsecurity",
            "alienregistration",
            "nationalidcard",
            "employer",
            "taxid",
            "seniorcitizenscard",
            "marriagecertificate",
            "birthcertificate",
            "healthcard",
            "votersid",
            "villageelderLetter",
            "pancard",
            "officialletter"
          ],
          "description": "Indicates the type of identification for the KYC subject, e.g. passport, driving licence etc."
        },
        "idNumber": {
          "type": "string",
          "description": "Reference pertaining to the type of identification for the KYC subject.",
          "minLength": 0,
          "maxLength": 256
        },
        "issueDate": {
          "type": "string",
          "format": "date",
          "description": "Date of issue for the identification document."
        },
        "expiryDate": {
          "type": "string",
          "format": "date",
          "description": "Date of expiry for the identification document."
        },
        "issuer": {
          "type": "string",
          "description": "Indicates the organisation/government entity that issued the ID document.",
          "minLength": 0,
          "maxLength": 256
        },
        "issuerPlace": {
          "type": "string",
          "description": "Place of issue for the identification type.",
          "minLength": 0,
          "maxLength": 256
        },
        "issuerCountry": {
          "description": "Country where the identification type was issued.",
          "allOf": [
            {
              "$ref": "#/$defs/nationality"
            }
          ]
        },
        "otherIddescription": {
          "type": "string",
          "description": "Where an ID Type of otherid is specified, a description of the type of identification can be provided in this field.",
          "minLength": 0,
          "maxLength": 256
        }
      }
    },
    "idDocumentArray": {
      "type": "array",
      "description": "An array of properties containing the forms of identification that are associated with the subject.",
      "items": {
        "$ref": "#/$defs/idDocument"
      },
      "maxItems": 10,
      "minItems": 0
    },
    "kyc": {
      "type": "object",
      "properties": {
        "birthCountry": {
          "description": "The country of birth of the KYC subject.",
          "allOf": [
            {
              "$ref": "#/$defs/nationality"
            }
          ]
        },
        "contactPhone": {
          "$ref": "#/$defs/contactPhone"
        },
        "dateOfBirth": {
          "$ref": "#/$defs/dateOfBirth"
        },
        "emailAddress": {
          "$ref": "#/$defs/emailAddress"
        },
        "employerName": {
          "$ref": "#/$defs/employerName"
        },
        "gender": {
          "$ref": "#/$defs/gender"
        },
        "idDocument": {
          "$ref": "#/$defs/idDocumentArray"
        },
        "nationality": {
          "description": "Nationality of the KYC subject.",
          "allOf": [
            {
              "$ref": "#/$defs/nationality"
            }
          ]
        },
        "occupation": {
          "$ref": "#/$defs/occupation"
        },
        "postalAddress": {
          "$ref": "#/$defs/postalAddress"
        },
        "subjectName": {
          "$ref": "#/$defs/subjectName"
        }
      }
    },
    "metadata": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string",
          "description": "Identifies the type of additional field.",
          "minLength": 1,
          "maxLength": 256
        },
        "value": {
          "type": "string",
          "description": "Identifies the value of the additional field.",
          "minLength": 1,
          "maxLength": 256
        }
      }
    },
    "metadataArray": {
      "type": "array",
      "description": "A collection of key/value pairs. These can be used to populate additional properties that describe administrative information regarding the resource.",
      "items": {
        "$ref": "#/$defs/metadata"
      },
      "maxItems": 20
    },
    "modificationDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the object was modified by the API Provider."
    },
    "nationality": {
      "type": "string",
      "enum": [
        "AD",
        "AE",
        "AF",
        "AG",
        "AI",
        "AL",
        "AM",
        "AO",
        "AQ",
        "AR",
        "AS",
        "AT",
        "AU",
        "AW",
        "AX",
        "AZ",
        "BA",
        "BB",
        "BD",
        "BE",
        "BF",
        "BG",
        "BH",
        "BI",
        "BJ",
        "BL",
        "BM",
        "BN",
        "BO",
        "BQ",
        "BR",
        "BS",
        "BT",
        "BV",
        "BW",
        "BY",
        "BZ",
        "CA",
        "CC",
        "CD",
        "CF",
        "CG",
        "CH",
        "CI",
        "CK",
        "CL",
        "CM",
        "CN",
        "CO",
        "CR",
        "CU",
        "CV",
        "CW",
        "CX",
        "CY",
        "CZ",
        "DE",
        "DJ",
        "DK",
        "DM",
        "DO",
        "DZ",
        "EC",
        "EE",
        "EG",
        "EH",
        "ER",
        "ES",
        "ET",
        "FI",
        "FJ",
        "FK",
        "FM",
        "FO",
        "FR",
        "GA",
        "GB",
        "GD",
        "GE",
        "GF",
        "GG",
        "GH",
        "GI",
        "GL",
        "GM",
        "GN",
        "GP",
        "GQ",
        "GR",
        "GS",
        "GT",
        "GU",
        "GW",
        "GY",
        "HK",
        "HM",
        "HN",
        "HR",
        "HT",
        "HU",
        "ID",
        "IE",
        "IL",
        "IM",
        "IN",
        "IO",
        "IQ",
        "IR",
        "IS",
        "IT",
        "JE",
        "JM",
        "JO",
        "JP",
        "KE",
        "KG",
        "KH",
        "KI",
        "KM",
        "KN",
        "KP",
        "KR",
        "KW",
        "KY",
        "KZ",
        "LA",
        "LB",
        "LC",
        "LI",
        "LK",
        "LR",
        "LS",
        "LT",
        "LU",
        "LV",
        "LY",
        "MA",
        "MC",
        "MD",
        "ME",
        "MF",
        "MG",
        "MH",
        "MK",
        "ML",
        "MM",
        "MN",
        "MO",
        "MP",
        "MQ",
        "MR",
        "MS",
        "MT",
        "MU",
        "MV",
        "MW",
        "MX",
        "MY",
        "MZ",
        "NA",
        "NC",
        "NE",
        "NF",
        "NG",
        "NI",
        "NL",
        "NO",
        "NP",
        "NR",
        "NU",
        "NZ",
        "OM",
        "PA",
        "PE",
        "PF",
        "PG",
        "PH",
        "PK",
        "PL",
        "PM",
        "PN",
        "PR",
        "PS",
        "PT",
        "PW",
        "PY",
        "QA",
        "RE",
        "RO",
        "RS",
        "RU",
        "RW",
        "SA",
        "SB",
        "SC",
        "SD",
        "SE",
        "SG",
        "SH",
        "SI",
        "SJ",
        "SK",
        "SL",
        "SM",
        "SN",
        "SO",
        "SR",
        "SS",
        "ST",
        "SV",
        "SX",
        "SY",
        "SZ",
        "TC",
        "TD",
        "TF",
        "TG",
        "TH",
        "TJ",
        "TK",
        "TL",
        "TM",
        "TN",
        "TO",
        "TR",
        "TT",
        "TV",
        "TW",
        "TZ",
        "UA",
        "UG",
        "UM",
        "US",
        "UY",
        "UZ",
        "VA",
        "VC",
        "VE",
        "VG",
        "VI",
        "VN",
        "VU",
        "WF",
        "WS",
        "YE",
        "YT",
        "ZA",
        "ZM",
        "ZW"
      ]
    },
    "occupation": {
      "type": "string",
      "description": "Occupation of the KYC subject.",
      "minLength": 0,
      "maxLength": 256
    },
    "party": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string",
          "description": "Provides the account identifier type.",
          "minLength": 1,
          "maxLength": 256
        },
        "value": {
          "type": "string",
          "description": "Provides the account identifier type value.",
          "minLength": 1,
          "maxLength": 256
        }
      }
    },
    "postalAddress": {
      "type": "object",
      "required": [
        "country"
      ],
      "properties": {
        "addressLine1": {
          "type": "string",
          "description": "First line of the address.",
          "minLength": 0,
          "maxLength": 256
        },
        "addressLine2": {
          "type": "string",
          "description": "Second line of the address.",
          "minLength": 0,
          "maxLength": 256
        },
        "addressLine3": {
          "type": "string",
          "description": "Third line of the address.",
          "minLength": 0,
          "maxLength": 256
        },
        "city": {
          "type": "string",
          "description": "City/Town",
          "minLength": 0,
          "maxLength": 256
        },
        "stateProvince": {
          "type": "string",
          "description": "State or Province",
          "minLength": 0,
          "maxLength": 256
        },
        "postalCode": {
          "type": "string",
          "description": "Postal Code",
          "minLength": 0,
          "maxLength": 256
        },
        "country": {
          "description": "Country\"",
          "allOf": [
            {
              "$ref": "#/$defs/nationality"
            }
          ]
        }
      }
    },
    "quotationReference": {
      "type": "string",
      "description": "Reference for the quotation that was provided to the sender.",
      "minLength": 1,
      "maxLength": 256
    },
    "quotationStatus": {
      "description": "Indicates the creation state of the Quotation.",
      "type": "string",
      "enum": [
        "pending",
        "rejected",
        "completed"
      ]
    },
    "quoteArray": {
      "type": "array",
      "description": "A collection of quotes. A quote can be received from a single financial service provider or from multiple providers.",
      "items": {
        "$ref": "#/$defs/quotes"
      },
      "maxItems": 10,
      "minItems": 1
    },
    "quoteExpiryTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the quote will expire."
    },
    "quoteId": {
      "type": "string",
      "description": "The specific quote associated with the quotation.",
      "minLength": 1,
      "maxLength": 256
    },
    "quotes": {
      "type": "object",
      "required": [
        "quoteId",
        "receivingAmount",
        "receivingCurrency",
        "sendingAmount",
        "sendingCurrency"
      ],
      "properties": {
        "quoteId": {
          "$ref": "#/$defs/quoteId"
        },
        "receivingAmount": {
          "description": "The total amount as it will be received by the receiving end-user.",
          "allOf": [
            {
              "$ref": "#/$defs/amount"
            }
          ]
        },
        "receivingCurrency": {
          "description": "The currency of the quote.",
          "allOf": [
            {
              "$ref": "#/$defs/currency"
            }
          ]
        },
        "sendingAmount": {
          "description": "The requested quotation amount as supplied by the sender.",
          "allOf": [
            {
              "$ref": "#/$defs/amount"
            }
          ]
        },
        "sendingCurrency": {
          "description": "Currency of the requested quotation amount.",
          "allOf": [
            {
              "$ref": "#/$defs/currency"
            }
          ]
        },
        "deliveryMethod": {
          "description": "The delivery method that is applicable to the quotation.",
          "allOf": [
            {
              "$ref": "#/$defs/deliveryMethod"
            }
          ]
        },
        "fees": {
          "$ref": "#/$defs/feesArray"
        },
        "fxRate": {
          "$ref": "#/$defs/fxRate"
        },
        "quoteExpiryTime": {
          "$ref": "#/$defs/quoteExpiryTime"
        },
        "receivingServiceProvider": {
          "$ref": "#/$defs/receivingServiceProvider"
        }
      }
    },
    "receivingServiceProvider": {
      "type": "string",
      "description": "The name of the receiving service provider, i.e. the provider that the quote is associated with.",
      "minLength": 0,
      "maxLength": 256
    },
    "recipientBlockingReason": {
      "type": "string",
      "description": "The reason for blocking the quotation, based on AML checks on the recipient.",
      "minLength": 0,
      "maxLength": 256
    },
    "requestDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time of the request as supplied by the client."
    },
    "requestingOrganisation": {
      "type": "object",
      "description": "An object that details the originating organisation of the request.",
      "required": [
        "requestingOrganisationIdentifierType",
        "requestingOrganisationIdentifier"
      ],
      "properties": {
        "requestingOrganisationIdentifierType": {
          "type": "string",
          "description": "Identifies the identifier type of the requesting organisation.",
          "enum": [
            "lei",
            "swiftbic",
            "organisationid"
          ]
        },
        "requestingOrganisationIdentifier": {
          "type": "string",
          "description": "Contains the requesting organisation identifier.",
          "minLength": 1,
          "maxLength": 256
        }
      }
    },
    "senderBlockingReason": {
      "type": "string",
      "description": "The reason for blocking the quotation, based on AML checks on the sender.",
      "minLength": 0,
      "maxLength": 256
    },
    "subType": {
      "type": "string",
      "description": "A non-harmonised sub-classification of the type of transaction. Values are not fixed, and usage will vary according to Provider.",
      "minLength": 0,
      "maxLength": 256
    },
    "subjectName": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "The given title of the KYC subject, e.g. Mr, Mrs, Dr.",
          "minLength": 0,
          "maxLength": 256
        },
        "firstName": {
          "type": "string",
          "description": "First name (also referred to as given name) of the KYC subject.",
          "minLength": 0,
          "maxLength": 256
        },
        "middleName": {
          "type": "string",
          "description": "Middle Name of the KYC subject.",
          "minLength": 0,
          "maxLength": 256
        },
        "lastName": {
          "type": "string",
          "description": "Surname (also referred to as last or family name) of the KYC subject.",
          "minLength": 0,
          "maxLength": 256
        },
        "fullName": {
          "type": "string",
          "description": "The full name of the KYC subject.",
          "minLength": 0,
          "maxLength": 256
        },
        "nativeName": {
          "type": "string",
          "description": "The full name expressed as in the native language.",
          "minLength": 0,
          "maxLength": 256
        }
      }
    },
    "type": {
      "type": "string",
      "description": "The harmonised Transaction Type.",
      "enum": [
        "billpay",
        "deposit",
        "disbursement",
        "transfer",
        "merchantpay",
        "inttransfer",
        "adjustment",
        "reversal",
        "withdrawal"
      ]
    }
  }
}