List payments from supplier invoices

List payments from supplier invoices

GEThttps://apione.zwapgrid.com/accounting/api/v1/consents/{consentId}/supplierinvoices/payments
Path parameters
consentId*string (uuid)

The consent for which you wish to list invoices.

Header parameters
Response

Returns supplier invoices payments related to specific consent.

Body
metaPagedResultMetadataDto (object)
datanullable array of InvoicePaymentDto (object)
Request
const response = await fetch('https://apione.zwapgrid.com/accounting/api/v1/consents/{consentId}/supplierinvoices/payments', {
    method: 'GET',
    headers: {
      "x-correlation-id": "123e4567-e89b-12d3-a456-426614174000"
    },
});
const data = await response.json();
Response
{
  "meta": {},
  "data": [
    {
      "id": "text",
      "paymentId": "text",
      "receivedDate": "text",
      "paidDate": "text",
      "bookedIndicator": false,
      "bookedDate": "text",
      "accountingAccount": {
        "id": "text",
        "accountingAccountId": "text",
        "name": "text",
        "description": {
          "text": "text",
          "languageId": "text"
        }
      },
      "billingReferences": [
        {
          "invoiceDocumentReferences": [
            {
              "id": "text",
              "schemeId": "text"
            }
          ]
        }
      ],
      "creditAmount": {
        "amount": 0,
        "currencyId": "text"
      },
      "debitAmount": {
        "amount": 0,
        "currencyId": "text"
      }
    }
  ]
}

Last updated