{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-billing-and-cost-management/json-schema/amazon-billing-and-cost-management-create-invoice-unit-request-schema.json",
  "title": "CreateInvoiceUnitRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-billing-and-cost-management-invoice-unit-api-openapi.yml#/components/schemas/CreateInvoiceUnitRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The unique name of the invoice unit that is shown on the generated invoice. This can't be changed once it is set. To change this name, you must delete the invoice unit recreate."
    },
    "InvoiceReceiver": {
      "type": "string",
      "description": "The Amazon Web Services account ID chosen to be the receiver of an invoice unit. All invoices generated for that invoice unit will be sent to this account ID."
    },
    "Description": {
      "type": "string",
      "description": "The invoice unit's description. This can be changed at a later time."
    },
    "TaxInheritanceDisabled": {
      "type": "boolean",
      "description": "Whether the invoice unit based tax inheritance is/ should be enabled or disabled."
    },
    "Rule": {
      "$ref": "#/$defs/InvoiceUnitRule"
    },
    "ResourceTags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InvoicingResourceTag"
      },
      "description": "The tag structure that contains a tag key and value."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure idempotency of the request."
    }
  },
  "required": [
    "Name",
    "InvoiceReceiver",
    "Rule"
  ],
  "$defs": {
    "InvoiceUnitRule": {
      "type": "object",
      "properties": {
        "LinkedAccounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of LINKED_ACCOUNT IDs where charges are included within the invoice unit."
        },
        "BillSourceAccounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of Amazon Web Services account IDs that have delegated their billing responsibility to the receiver account through transfer billing. Unlike linked accounts, these bill source accounts can be payer accounts from other organizations that have authorized billing transfer to this account."
        }
      }
    },
    "InvoicingResourceTag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The object key of your of your resource tag."
        },
        "Value": {
          "type": "string",
          "description": "The specific value of the resource tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}