addInventoryPayer
The method allows you to add a new payer or update an existing one in BaseLinker storage.
Input parameters
Output data:
A sample request in PHP:
payer_id | int | (optional) Payer identifier. If provided, the existing payer will be updated. |
name | varchar(100) | Payer name |
address | varchar(100) | (optional) Payer address |
postcode | varchar(20) | (optional) Payer postal code |
city | varchar(50) | (optional) Payer city |
tax_no | varchar(20) | (optional) Payer tax identification number |
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 |
payer_id | int | Created or updated payer identifier |
Sample
Input data:Output data:
A sample request in PHP: