API documentation
Method list
Test your request

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

Input parameters
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.
| - idintEntry ID
| - token_idstringBaseLinker Connect integration 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

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