Returns a list of payments.
/cnbs/v1/invoices/payments
GET
cURL:
curl -X GET "https://deveselling.cnbssoftware.com/cnbs/v1/invoices/payments?sap-client=800&sap-language=EN&apiid=CNBSMV01R&payer_number=3050&company_code=3000&document_type=02&date_from=12-18-2023&date_to=12-31-2099" -H "accept: application/json" -H "cnbssysid: W1B//vRKywJ2sPUVQG4CQ16Sf9XSN+N4Fkc6Bfmky3k="
The response consists of a payment list table (payment_list) and a status (status).
The payment list table contains a sub table returning the related sales invoices (sd_invoices).
Hint: The sd_invoices will only be filled, if the payment is related to an SD invoice. e.g. a deposit payment will not have any related SD invoices!
JSON:
{ "payment_list": [ { "document_number_finance": "1400004810", "finance_document_type": "DZ", "reference_number": "CNBS WEBAR REF", "fiscal_year_of_the_relevant_invoice": 2024, "payer_number": "0000003050", "posting_date": "11-15-2024", "document_date": "11-15-2024", "currency_key": "USD", "paid_amount": 1, "item_text": "Partial payment", "authorization_number": "XI00", "authorization_reference_code": "348214615", "authorization_amount": 1, "payment_method": "CC", "payment_card_type": "VISA", "payment_card_token": "-E803-0002-PH3AE4RZAK831S", "payment_card_name": "Test CK", "valid_to": "12-31-2024", "sd_invoices": [ { "billing_document_number": "0090040840", "billing_document_type": "L2", "sales_organization": "3000", "distribution_channel": "10", "division": "00", "currency_key": "USD", "soldto_number": "0000003000", "document_date": "04-05-2022", "total_amount": 1660, "current_paid_amount": 1 } ] }, { "document_number_finance": "1400004769", "finance_document_type": "DZ", "clearing_document_number_finance": "1400004769", "reference_number": "CNBS WEBAR REF", "fiscal_year_of_the_relevant_invoice": 2024, "payer_number": "0000003050", "posting_date": "10-17-2024", "document_date": "10-17-2024", "currency_key": "USD", "paid_amount": 165, "item_text": "CNBS WEBAR CLR", "authorization_number": "XI00", "authorization_reference_code": "346460691", "authorization_amount": 165, "payment_method": "CC", "payment_card_type": "VISA", "payment_card_token": "-E803-0002-PH3AE4RZAK831S", "payment_card_name": "John Doe", "valid_to": "03-31-2027", "sd_invoices": [ { "billing_document_number": "0090040944", "billing_document_type": "F2", "sales_organization": "3000", "distribution_channel": "10", "division": "00", "currency_key": "USD", "soldto_number": "0000003000", "document_date": "10-17-2024", "total_amount": 165, "current_paid_amount": 165 } ] } ], "status": { "message_type": "S", "message_identification": "/CNBS/X_API", "message_number": 10, "message_line_string": "Request successfully processed 97" } }