AddressPendingPayments

This method returns the detail of all open documents for a given address for a specific delay interval.

BODY - RAW

{

"Method": "AddressPendingPayments",

"Parameters": [

<nAddressId>,
<nFirstIntervalLimit>,
[<nSecondIntervalLimit>

]

}

PARAMETERS

Parameters Description
nAddressID

Id of the address.

nFirstIntervalLimit

First limit to set up the delay interval. The method returns all open documents with a delay up to this interval limit.

nSecondIntervalLimit

(Optional) Second limit to set up the delay interval. The method returns all open documents with a delay greater than this interval limit. If nFirstIntervalLimit is set, the delay interval will be all open documents between the second and the first limit.

EXAMPLE

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

{

"Method": "AddressPendingPayments",
"Parameters": [

1234,
30

]

}

*/ Return all pending payments for the intervals > 30 days

{

"Method": "AddressPendingPayments",
"Parameters": [

1234,
0,
30

]

}

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

{

"Method": "AddressPendingPayments",
"Parameters": [

1234,
60,
30

]

}

CLASS RETURNED

Property Description
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
DocumentId

Id of the document

DocumentNumber

Number of the document.

DocumentDate

Date of the document

AddressId Id of the address
Address Company name, last name, first name, zip code and city of the address
LocalOpenAmount Open amount in local currency
LocalPaidAmount Paid amount in local currency
LocalTotalAmount Total amount in local currency
ForeignOpenAmount Open amount in foreign currency
ForeignPaidAmount Paid amount in foreign currency
ForeignTotalAmount Total amount in foreign currency
DueDate Due date
Delay Interval of the delay
DocumentCategory Id of the document category

 

Was this article helpful?
0 out of 0 found this helpful