{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-response-account-schema.json",
  "title": "responseAccount",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-accounts-api-openapi.yml#/components/schemas/responseAccount",
  "type": "object",
  "required": [
    "accountIdentifiers",
    "identity",
    "accountStatus"
  ],
  "properties": {
    "accountIdentifiers": {
      "$ref": "#/$defs/accountIdentifiersArray"
    },
    "identity": {
      "$ref": "#/$defs/identityResponseArray"
    },
    "accountType": {
      "$ref": "#/$defs/accountType"
    },
    "accountStatus": {
      "$ref": "#/$defs/accountStatus"
    },
    "accountSubStatus": {
      "$ref": "#/$defs/accountSubStatus"
    },
    "currentBalance": {
      "$ref": "#/$defs/currentBalance"
    },
    "availableBalance": {
      "$ref": "#/$defs/availableBalance"
    },
    "reservedBalance": {
      "$ref": "#/$defs/reservedBalance"
    },
    "unclearedBalance": {
      "$ref": "#/$defs/unclearedBalance"
    },
    "currency": {
      "description": "Currency of the account.",
      "allOf": [
        {
          "$ref": "#/$defs/currency"
        }
      ]
    },
    "fees": {
      "$ref": "#/$defs/feesArray"
    },
    "commissionEarned": {
      "$ref": "#/$defs/commissionEarnedArray"
    },
    "registeringEntity": {
      "$ref": "#/$defs/registeringEntity"
    },
    "creationDate": {
      "$ref": "#/$defs/creationDate"
    },
    "modificationDate": {
      "$ref": "#/$defs/modificationDate"
    },
    "requestDate": {
      "$ref": "#/$defs/requestDate"
    },
    "customData": {
      "$ref": "#/$defs/customDataArray"
    }
  },
  "$defs": {
    "accountIdentifiersArray": {
      "type": "array",
      "description": "A collection of key/value pairs that enable the account to be identified. Keys include MSISDN and Wallet Identifier.",
      "items": {
        "$ref": "#/$defs/party"
      },
      "maxItems": 10,
      "minItems": 1
    },
    "accountRelationship": {
      "type": "string",
      "enum": [
        "accountholder"
      ],
      "description": "Describes the relationship that the identity holds with the account."
    },
    "accountStatus": {
      "type": "string",
      "enum": [
        "available",
        "unavailable",
        "unregistered"
      ],
      "description": "Indicates a harmonised representation of the account status. This will be shown as available, unavailable or unregistered.",
      "minLength": 1,
      "maxLength": 256
    },
    "accountSubStatus": {
      "type": "string",
      "description": "Field can be used to return a provider-specific status for the account.",
      "minLength": 0,
      "maxLength": 256
    },
    "accountType": {
      "type": "string",
      "description": "A non-harmonised field that indicates the type of the account.",
      "minLength": 0,
      "maxLength": 256
    },
    "amount": {
      "type": "string",
      "minLength": 1,
      "maxLength": 23,
      "pattern": "^([0]|([1-9][0-9]{0,17}))([.][0-9]{0,3}[0-9])?$"
    },
    "availableBalance": {
      "description": "Indicates the balance that is able to be debited for an account. This balance is only provided on some API provider systems.",
      "allOf": [
        {
          "$ref": "#/$defs/amount"
        }
      ]
    },
    "commissionEarned": {
      "type": "object",
      "required": [
        "commissionType",
        "commissionCurrency",
        "commissionAmount"
      ],
      "properties": {
        "commissionType": {
          "type": "string",
          "description": "Defines the type of commission.",
          "minLength": 1,
          "maxLength": 256
        },
        "commissionAmount": {
          "description": "Defines the amount of the commission.",
          "allOf": [
            {
              "$ref": "#/$defs/amount"
            }
          ]
        },
        "commissionCurrency": {
          "description": "Defines the currency for the given commission.",
          "allOf": [
            {
              "$ref": "#/$defs/currency"
            }
          ]
        }
      }
    },
    "commissionEarnedArray": {
      "type": "array",
      "description": "Returns all commission earned by the registering entity for the creation of the account.",
      "items": {
        "$ref": "#/$defs/commissionEarned"
      },
      "maxItems": 20,
      "minItems": 1
    },
    "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."
    },
    "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"
      ]
    },
    "currentBalance": {
      "description": "Current outstanding balance on the account.",
      "allOf": [
        {
          "$ref": "#/$defs/amount"
        }
      ]
    },
    "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
    },
    "dateOfBirth": {
      "type": "string",
      "format": "date",
      "description": "Birth date of the KYC subject."
    },
    "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
    },
    "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
    },
    "identityId": {
      "type": "string",
      "description": "A unique id for the identity as assigned by the API Provider.",
      "minLength": 1,
      "maxLength": 256
    },
    "identityResponse": {
      "type": "object",
      "required": [
        "identityId",
        "identityType",
        "identityKyc",
        "accountRelationship"
      ],
      "properties": {
        "identityId": {
          "$ref": "#/$defs/identityId"
        },
        "identityType": {
          "$ref": "#/$defs/identityType"
        },
        "identityStatus": {
          "$ref": "#/$defs/identityStatus"
        },
        "identityKyc": {
          "$ref": "#/$defs/kyc"
        },
        "accountRelationship": {
          "$ref": "#/$defs/accountRelationship"
        },
        "kycVerificationStatus": {
          "$ref": "#/$defs/kycVerificationStatus"
        },
        "kycVerificationEntity": {
          "$ref": "#/$defs/kycVerificationEntity"
        },
        "kycLevel": {
          "$ref": "#/$defs/kycLevel"
        },
        "customData": {
          "$ref": "#/$defs/customDataArray"
        }
      }
    },
    "identityResponseArray": {
      "type": "array",
      "description": "An array containing the details of each identity associated with an account.",
      "items": {
        "$ref": "#/$defs/identityResponse"
      },
      "maxItems": 20,
      "minItems": 1
    },
    "identityStatus": {
      "type": "string",
      "description": "A unique id for the identity as assigned by the API Provider.",
      "minLength": 0,
      "maxLength": 256
    },
    "identityType": {
      "type": "string",
      "enum": [
        "individual"
      ],
      "description": "Indicates the type of the identity. Currently, only ‘individual’ is supported."
    },
    "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"
        }
      }
    },
    "kycLevel": {
      "type": "integer",
      "format": "int32",
      "description": "Indicates the KYC level that the identity is associated with."
    },
    "kycVerificationEntity": {
      "type": "string",
      "description": "Indicates the entity (e.g. mobile money agent) that has verified the KYC of the identity.",
      "minLength": 0,
      "maxLength": 256
    },
    "kycVerificationStatus": {
      "type": "string",
      "enum": [
        "verified",
        "unverified",
        "rejected"
      ],
      "description": "Indicates the status of the identity’s KYC verification."
    },
    "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"
            }
          ]
        }
      }
    },
    "registeringEntity": {
      "type": "string",
      "description": "The entity that registered the account, for example, a mobile money agent.",
      "minLength": 0,
      "maxLength": 256
    },
    "requestDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time of the request as supplied by the client."
    },
    "reservedBalance": {
      "description": "Indicates the portion of the balance that is reserved, i.e. intended to be debited. This balance is only provided on some API provider systems.",
      "allOf": [
        {
          "$ref": "#/$defs/amount"
        }
      ]
    },
    "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
        }
      }
    },
    "unclearedBalance": {
      "description": "Indicates the sum of uncleared funds in an account, i.e. the funds that are awaiting a credit confirmation.",
      "allOf": [
        {
          "$ref": "#/$defs/amount"
        }
      ]
    }
  }
}