API documentation
Method list
Test your request
Changelog


getConnectContractorCreditHistory
The method allows you to retrieve an information about chosen contractor trade credit history


Input parameters
connect_contractor_idintContractor ID



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
credit_dataarrayList of BaseLinker Connect contractor trade credit data.
Each credit entry has fields listed below.
| - credit_entry_idintEntry ID
| - date_addintEntry add date in unix timestamp format
| - descriptionstringEntry description
| - currencychar(3)Entry currency
| - typestringEntry type:
- charge
- payment
| - amountfloatEntry amount
| - is_acceptedintEntry status:
- 0 - waiting
- 1 - active



Sample
Input data:
Output data:
A sample request in PHP: