Return invoice details.
/cnbs/v1/invoices/id
GET | POST
JSON Payload:
{
"document_detail": {
"billing_document_number": "90038990",
"document_type": "01",
"customer_number": "3000"
}
}
cURL:
curl -X POST "https://<<your.server.here>>/cnbs/v1/invoices/id?sap-client=800&sap-language=EN&apiid=CNBSMV01P" -H "accept: application/json" -H "content-type: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -d "{ \"document_detail\": { \"billing_document_number\": \"90038990\", \"document_type\": \"01\" }}"
cURL:
curl -X GET "https://<<your.server.here>>/cnbs/v1/invoices/id?sap-client=800&sap-language=EN&apiid=CNBSMV01R&billing_document_number=90038990&document_type=01" -H "accept: application/json" -H "content-type: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI="
JSON:
{
"detail": {
"header_data": {
"billing_document_number": "0090038990",
"billing_document_type": "F2",
"soldto_number": "0000003000",
"sales_organization": "3000",
"distribution_channel": "10",
"division": "00",
"company_code": "3000",
"currency_key": "USD",
"document_date": "07-12-2016",
"total_amount": 10,
"document_status": "01",
"debit_credit_flag": "D"
},
"item_data": [
{
"item_number": 10,
"material_number": "100-300",
"description": "Hollow shaft",
"billed_quantity": 1,
"sales_unit": "ST",
"base_unit": "ST",
"pricing_unit": "ST",
"currency_key": "USD",
"total_amount": 10
}
],
"partner_data": [
{
"partner_function": "AG",
"partner_number": "0000003000",
"address_data": {
"name": "Thomas Bush Inc.",
"city": "MAYWOOD",
"district": "COOK",
"street": "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": "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"
}
}