getConnectContractorCreditHistory
The method allows you to retrieve an information about chosen contractor trade credit history
Input parameters
Output data:
A sample request in PHP:
connect_contractor_id | int | Contractor ID |
Output data
The method returns the data in JSON format.
status | varchar(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_data | array | List of BaseLinker Connect contractor trade credit data.
Each credit entry has fields listed below. |
| - credit_entry_id | int | Entry ID |
| - date_add | int | Entry add date in unix timestamp format |
| - description | string | Entry description |
| - currency | char(3) | Entry currency |
| - type | string | Entry type:
- charge - payment |
| - amount | float | Entry amount |
| - is_accepted | int | Entry status:
- 0 - waiting - 1 - active |
Sample
Input data:Output data:
A sample request in PHP: