Table of Contents

Get payment list

Returns a list of payments.

URL

/cnbs/v1/invoices/payments

Method(s)

GET

Parameters

Required

Optional

Example 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="

Response

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!

Example Response

JSON:

{
  "payment_list": [
    {
      "document_number_finance": "1400004405",
      "finance_document_type": "DZ",
      "clearing_document_number_finance": "1400004405",
      "reference_number": "CNBS WEBAR REF",
      "fiscal_year_of_the_relevant_invoice": 2023,
      "payer_number": "0000003050",
      "posting_date": "12-18-2023",
      "document_date": "12-18-2023",
      "currency_key": "USD",
      "paid_amount": -787.99,
      "item_text": "CNBS WEBAR CLR",
      "authorization_number": "XI00",
      "authorization_reference_code": "300903317",
      "authorization_amount": 787.99,
      "payment_method": "CC",
      "payment_card_type": "VISA",
      "payment_card_token": "-E803-0002-PH3AE4RZAK831S",
      "payment_card_name": "Test",
      "valid_to": "07-31-2025",
      "sd_invoices": [
        {
          "billing_document_number": "0090040888",
          "billing_document_type": "F2",
          "sales_organization": "3000",
          "distribution_channel": "10",
          "division": "00",
          "reference_number": "0090040888",
          "currency_key": "USD",
          "posting_date": "05-05-2022",
          "document_date": "05-05-2022",
          "due_date": "06-04-2022",
          "clearing_date": "12-18-2023",
          "days_in_arrears": 563,
          "total_amount": 117.99,
          "paid_amount": 117.99,
          "pdf_document_available": "X"
        },
        {
          "billing_document_number": "0090040879",
          "billing_document_type": "L2",
          "sales_organization": "3000",
          "distribution_channel": "10",
          "division": "00",
          "reference_number": "0090040879",
          "currency_key": "USD",
          "posting_date": "06-01-2022",
          "document_date": "06-01-2022",
          "due_date": "07-01-2022",
          "clearing_date": "12-18-2023",
          "days_in_arrears": 536,
          "total_amount": 670,
          "paid_amount": 670,
          "pdf_document_available": "X"
        }
      ]
    }
  ],
  "status": {
    "message_type": "S",
    "message_identification": "/CNBS/X_API",
    "message_number": 10,
    "message_line_string": "Request successfully processed 1"
  }
}