{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-response-batch-transaction-completion-schema.json",
  "title": "responseBatchTransactionCompletion",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-transactions-api-openapi.yml#/components/schemas/responseBatchTransactionCompletion",
  "type": "object",
  "required": [
    "transactionReference",
    "creditParty",
    "debitParty",
    "completionDate",
    "link"
  ],
  "properties": {
    "transactionReference": {
      "$ref": "#/$defs/transactionReference"
    },
    "requestingOrganisationTransactionReference": {
      "$ref": "#/$defs/requestingOrganisationTransactionReference"
    },
    "creditParty": {
      "$ref": "#/$defs/creditPartyArray"
    },
    "debitParty": {
      "$ref": "#/$defs/debitPartyArray"
    },
    "completionDate": {
      "$ref": "#/$defs/transactionCompletionDate"
    },
    "link": {
      "$ref": "#/$defs/link"
    },
    "customData": {
      "$ref": "#/$defs/customDataArray"
    },
    "completedDate": {
      "$ref": "#/$defs/transactionCompletedDate"
    }
  },
  "$defs": {
    "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
    },
    "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
    },
    "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
    },
    "link": {
      "type": "string",
      "description": "Provides a URL to the resource.",
      "minLength": 1,
      "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
        }
      }
    },
    "requestingOrganisationTransactionReference": {
      "type": "string",
      "description": "A reference provided by the requesting organisation that is to be associated with the transaction.",
      "minLength": 0,
      "maxLength": 256
    },
    "transactionCompletedDate": {
      "type": "string",
      "format": "date-time",
      "deprecated": true,
      "description": "Date and time indicating when the transaction was completed."
    },
    "transactionCompletionDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time indicating when the transaction was completed."
    },
    "transactionReference": {
      "type": "string",
      "description": "Unique reference for the transaction. This is returned in the response by API provider.",
      "minLength": 1,
      "maxLength": 256
    }
  }
}