{
    "source_system": "E2E Test ERP",
    "source_tenant_domain": "e2e-full-test.mazenofficial.net",
    "document_type": "credit_note",
    "use_case_code": "12",
    "use_case_name": "Standard tax credit note",
    "invoice": {
        "id": "CN-TERM-20260620051825",
        "invoice_number": "CN-TERM-20260620051825",
        "document_type": "credit_note",
        "invoice_type_code": "381",
        "issue_date": "2026-06-20",
        "due_date": "2026-07-20",
        "subtotal": 100,
        "tax_total": 5,
        "grand_total": 105,
        "original_invoice_number": "INV-ORIG-20260620051825",
        "original_invoice_issue_date": "2026-06-20",
        "credit_note_reason_code": "RETURN",
        "credit_note_reason_text": "Returned service adjustment",
        "type_code": "381",
        "lines": [
            {
                "line_id": "1",
                "id": "1",
                "quantity": 1,
                "unit_code": "EA",
                "line_net_amount": 100,
                "line_extension_amount": 100,
                "unit_price": 100,
                "price_base_quantity": 1,
                "name": "Consulting Service Credit",
                "description": "Credit for consulting service",
                "item_type": "Services",
                "tax_category_code": "Standard rate",
                "tax_category_rate": 5,
                "tax_rate": 5,
                "vat_line_amount": 5,
                "tax_amount": 5,
                "service_accounting_code": "SAC001",
                "service_accounting_scheme": "SAC",
                "base_quantity": 1,
                "net_amount": 100
            }
        ]
    },
    "credit_note": {
        "original_invoice_number": "E2E-C01-20260620114214-8478",
        "original_invoice_issue_date": "2026-06-13",
        "reason_code": "RETURN",
        "reason": "Returned service adjustment",
        "id": "E2E-C12-20260620114303-2267",
        "credit_note_number": "E2E-C12-20260620114303-2267",
        "invoice_number": "E2E-C12-20260620114303-2267",
        "issue_date": "2026-06-20",
        "reason_text": "E2E credit note test adjustment."
    },
    "pint_ae": {
        "document_type": "credit_note",
        "invoice_type_code": "381",
        "invoice_transaction_type_code": "00000000",
        "invoice_currency_code": "AED",
        "tax_accounting_currency": "AED",
        "business_process_type": "urn:peppol:bis:billing",
        "specification_identifier": "urn:peppol:pint:billing-1@ae-1",
        "payment_due_date": "2026-07-20",
        "payment_means_type_code": "30",
        "payment_account_identifier": "AE000000000000000000000",
        "original_invoice_number": "INV-ORIG-20260620051825",
        "original_invoice_issue_date": "2026-06-20",
        "credit_note_reason_code": "RETURN",
        "credit_note_reason_text": "Returned service adjustment",
        "seller": {
            "name": "Test Seller LLC",
            "tax_identifier": "100000000000003",
            "tax_scheme_code": "VAT",
            "legal_registration_identifier": "100000000000003",
            "electronic_address": "100000000000003",
            "electronic_address_scheme": "0235",
            "address_line_1": "Business Bay",
            "city": "Dubai",
            "country_subdivision": "DXB",
            "country_code": "AE",
            "legal_registration_identifier_type": "Commercial/Trade license",
            "authority_name": "Dubai Economy",
            "address": {
                "address_line_1": "Business Bay",
                "line1": "Business Bay",
                "city": "Dubai",
                "country_subdivision": "DXB",
                "emirate": "DXB",
                "country_code": "AE"
            }
        },
        "buyer": {
            "name": "Test Buyer LLC",
            "tax_identifier": "100000000000003",
            "tax_scheme_code": "VAT",
            "legal_registration_identifier": "100000000000003",
            "electronic_address": "100000000000003",
            "electronic_address_scheme": "0235",
            "address_line_1": "Corniche Road",
            "city": "Abu Dhabi",
            "country_subdivision": "AUH",
            "country_code": "AE",
            "legal_registration_identifier_type": "Commercial/Trade license",
            "authority_name": "Abu Dhabi Department of Economic Development",
            "address": {
                "address_line_1": "Corniche Road",
                "line1": "Corniche Road",
                "city": "Abu Dhabi",
                "country_subdivision": "AUH",
                "emirate": "AUH",
                "country_code": "AE"
            }
        },
        "items": [
            {
                "line_id": "1",
                "id": "1",
                "quantity": 1,
                "unit_code": "EA",
                "line_net_amount": 100,
                "line_extension_amount": 100,
                "unit_price": 100,
                "price_base_quantity": 1,
                "name": "Consulting Service Credit",
                "description": "Credit for consulting service",
                "item_type": "Services",
                "tax_category_code": "Standard rate",
                "tax_category_rate": 5,
                "tax_rate": 5,
                "vat_line_amount": 5,
                "tax_amount": 5,
                "service_accounting_code": "SAC001",
                "service_accounting_scheme": "SAC"
            }
        ],
        "tax_breakdown": [
            {
                "taxable_amount": 100,
                "tax_amount": 5,
                "tax_category_code": "Standard rate",
                "tax_category_rate": 5
            }
        ],
        "totals": {
            "invoice_total_without_tax": 100,
            "invoice_total_tax_amount": 5,
            "invoice_total_with_tax": 105,
            "amount_due_for_payment": 105
        },
        "preceding_invoice_reference": "E2E-C01-20260620114214-8478",
        "preceding_invoice_issue_date": "2026-06-13"
    },
    "invoice_lines": [
        {
            "line_id": "1",
            "id": "1",
            "quantity": 1,
            "unit_code": "EA",
            "line_net_amount": 100,
            "line_extension_amount": 100,
            "unit_price": 100,
            "price_base_quantity": 1,
            "name": "Consulting Service Credit",
            "description": "Credit for consulting service",
            "item_type": "Services",
            "tax_category_code": "Standard rate",
            "tax_category_rate": 5,
            "tax_rate": 5,
            "vat_line_amount": 5,
            "tax_amount": 5,
            "service_accounting_code": "SAC001",
            "service_accounting_scheme": "SAC",
            "base_quantity": 1,
            "net_amount": 100
        }
    ],
    "lines": [
        {
            "line_id": "1",
            "id": "1",
            "quantity": 1,
            "unit_code": "EA",
            "line_net_amount": 100,
            "line_extension_amount": 100,
            "unit_price": 100,
            "price_base_quantity": 1,
            "name": "Consulting Service Credit",
            "description": "Credit for consulting service",
            "item_type": "Services",
            "tax_category_code": "Standard rate",
            "tax_category_rate": 5,
            "tax_rate": 5,
            "vat_line_amount": 5,
            "tax_amount": 5,
            "service_accounting_code": "SAC001",
            "service_accounting_scheme": "SAC",
            "base_quantity": 1,
            "net_amount": 100
        }
    ],
    "items": [
        {
            "line_id": "1",
            "id": "1",
            "quantity": 1,
            "unit_code": "EA",
            "line_net_amount": 100,
            "line_extension_amount": 100,
            "unit_price": 100,
            "price_base_quantity": 1,
            "name": "Consulting Service Credit",
            "description": "Credit for consulting service",
            "item_type": "Services",
            "tax_category_code": "Standard rate",
            "tax_category_rate": 5,
            "tax_rate": 5,
            "vat_line_amount": 5,
            "tax_amount": 5,
            "service_accounting_code": "SAC001",
            "service_accounting_scheme": "SAC",
            "base_quantity": 1,
            "net_amount": 100
        }
    ],
    "tax_breakdown": [
        {
            "taxable_amount": 100,
            "tax_amount": 5,
            "tax_category_code": "Standard rate",
            "tax_category_rate": 5
        }
    ],
    "totals": {
        "invoice_total_without_tax": 100,
        "invoice_total_tax_amount": 5,
        "invoice_total_with_tax": 105,
        "amount_due_for_payment": 105
    },
    "sample_name": "UAE PINT AE Use Case 12 - Standard Tax Credit Note",
    "sample_note": "Demo payload for Al Yamamah ASP Core. Do not include API keys inside payload files.",
    "invoice_number": "CN-TERM-20260620051825",
    "issue_date": "2026-06-20",
    "invoice_type_code": "381",
    "seller": {
        "name": "Test Seller LLC",
        "tax_identifier": "100000000000003",
        "tax_scheme_code": "VAT",
        "legal_registration_identifier": "100000000000003",
        "electronic_address": "100000000000003",
        "electronic_address_scheme": "0235",
        "address_line_1": "Business Bay",
        "city": "Dubai",
        "country_subdivision": "DXB",
        "country_code": "AE",
        "legal_registration_identifier_type": "Commercial/Trade license",
        "authority_name": "Dubai Economy",
        "address": {
            "address_line_1": "Business Bay",
            "line1": "Business Bay",
            "city": "Dubai",
            "country_subdivision": "DXB",
            "emirate": "DXB",
            "country_code": "AE"
        }
    },
    "supplier": {
        "name": "Test Seller LLC",
        "tax_identifier": "100000000000003",
        "tax_scheme_code": "VAT",
        "legal_registration_identifier": "100000000000003",
        "electronic_address": "100000000000003",
        "electronic_address_scheme": "0235",
        "address_line_1": "Business Bay",
        "city": "Dubai",
        "country_subdivision": "DXB",
        "country_code": "AE",
        "legal_registration_identifier_type": "Commercial/Trade license",
        "authority_name": "Dubai Economy",
        "address": {
            "address_line_1": "Business Bay",
            "line1": "Business Bay",
            "city": "Dubai",
            "country_subdivision": "DXB",
            "emirate": "DXB",
            "country_code": "AE"
        },
        "emirate": "DXB",
        "country": "AE"
    },
    "seller_party": {
        "name": "Test Seller LLC",
        "tax_identifier": "100000000000003",
        "tax_scheme_code": "VAT",
        "legal_registration_identifier": "100000000000003",
        "electronic_address": "100000000000003",
        "electronic_address_scheme": "0235",
        "address_line_1": "Business Bay",
        "city": "Dubai",
        "country_subdivision": "DXB",
        "country_code": "AE",
        "legal_registration_identifier_type": "Commercial/Trade license",
        "authority_name": "Dubai Economy",
        "address": {
            "address_line_1": "Business Bay",
            "line1": "Business Bay",
            "city": "Dubai",
            "country_subdivision": "DXB",
            "emirate": "DXB",
            "country_code": "AE"
        },
        "emirate": "DXB",
        "country": "AE"
    },
    "accounting_supplier_party": {
        "name": "Test Seller LLC",
        "tax_identifier": "100000000000003",
        "tax_scheme_code": "VAT",
        "legal_registration_identifier": "100000000000003",
        "electronic_address": "100000000000003",
        "electronic_address_scheme": "0235",
        "address_line_1": "Business Bay",
        "city": "Dubai",
        "country_subdivision": "DXB",
        "country_code": "AE",
        "legal_registration_identifier_type": "Commercial/Trade license",
        "authority_name": "Dubai Economy",
        "address": {
            "address_line_1": "Business Bay",
            "line1": "Business Bay",
            "city": "Dubai",
            "country_subdivision": "DXB",
            "emirate": "DXB",
            "country_code": "AE"
        },
        "emirate": "DXB",
        "country": "AE"
    },
    "buyer": {
        "name": "Test Buyer LLC",
        "tax_identifier": "100000000000003",
        "tax_scheme_code": "VAT",
        "legal_registration_identifier": "100000000000003",
        "electronic_address": "100000000000003",
        "electronic_address_scheme": "0235",
        "address_line_1": "Corniche Road",
        "city": "Abu Dhabi",
        "country_subdivision": "AUH",
        "country_code": "AE",
        "legal_registration_identifier_type": "Commercial/Trade license",
        "authority_name": "Abu Dhabi Department of Economic Development",
        "address": {
            "address_line_1": "Corniche Road",
            "line1": "Corniche Road",
            "city": "Abu Dhabi",
            "country_subdivision": "AUH",
            "emirate": "AUH",
            "country_code": "AE"
        }
    },
    "customer": {
        "name": "Test Buyer LLC",
        "tax_identifier": "100000000000003",
        "tax_scheme_code": "VAT",
        "legal_registration_identifier": "100000000000003",
        "electronic_address": "100000000000003",
        "electronic_address_scheme": "0235",
        "address_line_1": "Corniche Road",
        "city": "Abu Dhabi",
        "country_subdivision": "AUH",
        "country_code": "AE",
        "legal_registration_identifier_type": "Commercial/Trade license",
        "authority_name": "Abu Dhabi Department of Economic Development",
        "address": {
            "address_line_1": "Corniche Road",
            "line1": "Corniche Road",
            "city": "Abu Dhabi",
            "country_subdivision": "AUH",
            "emirate": "AUH",
            "country_code": "AE"
        },
        "emirate": "AUH",
        "country": "AE"
    },
    "buyer_party": {
        "name": "Test Buyer LLC",
        "tax_identifier": "100000000000003",
        "tax_scheme_code": "VAT",
        "legal_registration_identifier": "100000000000003",
        "electronic_address": "100000000000003",
        "electronic_address_scheme": "0235",
        "address_line_1": "Corniche Road",
        "city": "Abu Dhabi",
        "country_subdivision": "AUH",
        "country_code": "AE",
        "legal_registration_identifier_type": "Commercial/Trade license",
        "authority_name": "Abu Dhabi Department of Economic Development",
        "address": {
            "address_line_1": "Corniche Road",
            "line1": "Corniche Road",
            "city": "Abu Dhabi",
            "country_subdivision": "AUH",
            "emirate": "AUH",
            "country_code": "AE"
        },
        "emirate": "AUH",
        "country": "AE"
    },
    "accounting_customer_party": {
        "name": "Test Buyer LLC",
        "tax_identifier": "100000000000003",
        "tax_scheme_code": "VAT",
        "legal_registration_identifier": "100000000000003",
        "electronic_address": "100000000000003",
        "electronic_address_scheme": "0235",
        "address_line_1": "Corniche Road",
        "city": "Abu Dhabi",
        "country_subdivision": "AUH",
        "country_code": "AE",
        "legal_registration_identifier_type": "Commercial/Trade license",
        "authority_name": "Abu Dhabi Department of Economic Development",
        "address": {
            "address_line_1": "Corniche Road",
            "line1": "Corniche Road",
            "city": "Abu Dhabi",
            "country_subdivision": "AUH",
            "emirate": "AUH",
            "country_code": "AE"
        },
        "emirate": "AUH",
        "country": "AE"
    },
    "payment": [],
    "tax_breakdowns": [
        {
            "taxable_amount": 100,
            "tax_amount": 5,
            "tax_category_code": "Standard rate",
            "tax_category_rate": 5
        }
    ],
    "vat_breakdown": [
        {
            "taxable_amount": 100,
            "tax_amount": 5,
            "tax_category_code": "Standard rate",
            "tax_category_rate": 5
        }
    ],
    "original_invoice_number": "INV-ORIG-20260620051825",
    "original_invoice_issue_date": "2026-06-20",
    "credit_note_reason_code": "RETURN",
    "credit_note_reason_text": "Returned service adjustment"
}