frequently asked questions

All your questions in one place.

AddressesPendingPayments

This method returns the number of the open (unpaid) documents along with the open (unpaid) amount in the local currency. The results are grouped by address of the document, document type and payment delay.

BODY - RAW

{

"Method": "AddressesPendingPayments",

"Parameters": [

<nDelayTo>,
[<nDelayFrom>]

]

}

Parameters

ParametersDescription
nDelayTo

Mandatory

This parameter allows to specify the maximal delay of the payments included in the results. The delay is calculated from the due date. If documents with multiple due dates exist, each due date is taken into consideration.

nDelayFrom

Optional

This parameter allows to specify the minimal delay of the payments included in the results. 

If the parameter is omitted, all the documents with a delay smaller than the one specified in nDelayTo will be included.

 

EXAMPLE

*/ Return all pending payments for the intervals [0-30 days]
{

"Method": "AddressesPendingPayments",
"Parameters": [

30

]

}

*/ Return all pending payments for the interval > 30 days
{

"Method": "AddressesPendingPayments",
"Parameters": [

0,
30

]

}

*/ Return all pending payments for the interval [31-60 days]
{

"Method": "AddressesPendingPayments",
"Parameters": [

60,
31

]

}

 

CLASS RETURNED

PropertyDescription
DocumentType

Type of the document.

The type can be :
- 17 : Debtor starting balance
- 20 : Debtor invoice
- 22 : Credit note
- 43 : Creditor starting balance
- 44 : Creditor invoice
- 47 : Creditor credit note

AddressIdId of the address
AddressCompany name, last name, first name, zip code and city of the address.
DelayInterval of te delay
OpenDocumentsCount of the open documents for each AddressId, DocumentType and Delay
LocalOpenAmountSum of the open amounts for each AddressId, DocumentType and Delay

Did you find this article useful?

0 out of 0 found this helpful