Table of Contents

Get invoice detail

Return invoice details.

URL

/cnbs/v1/invoices/id

Method

GET

Parameters

Required

Example

curl -X GET "https://<<your.server.here>>/cnbs/v1/invoices/id?sap-client=800&sap-language=EN&apiid=CNBSMV01R&billing_document_number=90041011&document_type=01" -H  "accept: application/json" -H  "content-type: application/json" -H  "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI="

Response

Example Response

JSON:

{
    "detail": {
        "header_data": {
            "billing_document_number": "0090041011",
            "billing_document_type": "F2",
            "soldto_number": "0000003000",
            "sales_organization": "3000",
            "distribution_channel": "10",
            "division": "00",
            "company_code": "3000",
            "currency_key": "USD",
            "document_date": "04-04-2026",
            "due_date": "05-04-2026",
            "total_amount": 90.000,
            "open_amount": 90.000,
            "document_status": "01",
            "debit_credit_flag": "D"
        },
        "item_data": [
            {
                "item_number": 10,
                "material_number": "A10007",
                "description": "Apple AirPods",
                "billed_quantity": 1.000,
                "sales_unit": "ST",
                "base_unit": "EA",
                "pricing_unit": "ST",
                "currency_key": "USD",
                "total_amount": 90.000
            }
        ],
        "partner_data": [
            {
                "partner_function": "AG",
                "partner_number": "0000003000",
                "address_data": {
                    "name": "Smith Inc. LLC",
                    "name_2": "Test",
                    "city": "MAYWOOD",
                    "district": "COOK",
                    "street": "1 2800 South 25th Ave",
                    "postal_code_city": "60153",
                    "region": "IL",
                    "country": "US"
                }
            },
            {
                "partner_function": "WE",
                "partner_number": "0000003000",
                "address_data": {
                    "name": "Smith Inc. LLC",
                    "name_2": "Test",
                    "city": "MAYWOOD",
                    "district": "COOK",
                    "street": "1 2800 South 25th Ave",
                    "postal_code_city": "60153",
                    "region": "IL",
                    "country": "US"
                }
            },
            {
                "partner_function": "RG",
                "partner_number": "0000003050",
                "address_data": {
                    "name": "Bush Holdings, Inc.",
                    "city": "CHICAGO",
                    "district": "COOK",
                    "street": "1 408 Michigan Avenue",
                    "postal_code_city": "60611",
                    "region": "IL",
                    "country": "US"
                }
            }
        ]
    },
    "status": {
        "message_type": "S",
        "message_identification": "/CNBS/X_API",
        "message_number": 10,
        "message_line_string": "Request successfully processed"
    }
}