{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-payment-remaining-amount-schema.json",
  "title": "PaymentRemainingAmount",
  "description": "Remaining Amount of a given payment not refunded yet.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-refund-api-openapi.yml#/components/schemas/PaymentRemainingAmount",
  "type": "object",
  "required": [
    "amount",
    "currency"
  ],
  "properties": {
    "amount": {
      "type": "number",
      "format": "float",
      "multipleOf": 0.001,
      "minimum": 0,
      "description": "Specific amount not yet refunded for the payment. When takes value `0` it means whole payment has been refunded."
    },
    "currency": {
      "type": "string",
      "description": "Currency code in which amount is expressed as defined in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html)."
    },
    "description": {
      "type": "string",
      "description": "Description text (human readable) to contextualize this amount. Optionally indicated by Telco Operator."
    },
    "isTaxIncluded": {
      "type": "boolean",
      "default": false,
      "description": "If true, the `amount` is tax included, if false the `amount` is provided without tax. In both cases, `taxAmount` could be indicated to provide tax amount."
    },
    "taxAmount": {
      "type": "number",
      "format": "float",
      "multipleOf": 0.001,
      "minimum": 0,
      "description": "The tax amount refunded by the merchant. Indicated when the merchant is the one applying taxes. This field also provides an indicator to the downstream billing system.\n"
    }
  }
}