API documentation
Method list
Test your request
Changelog


getRequestParcelPickupFields
The method allows you to retrieve additional fields for a parcel pickup request.


Input parameters
courier_codevarchar(20)Courier code



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
fieldsarrayAn array with a list of additional fields to request parcel pickup containing the fields listed below.
| - idvarchar(50)The field ID
| - namevarchar(50)The field name
| - typevarchar(10)Field type (available select, checkbox, text, date)
| - desctextAdditional field description
| - optionsarrayList of available options (appears for select, checkbox).
The key to each element is the option id (varchar)
The value is the option name (varchar)
| - valuevarchar(50)Default value for a field



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