Methods
Entity Properties
import.search
import.search(null|object $filters, array $options = [])
Retrieve list of imports. Filtration could be applied.
Parameters
null
- Retrieve list of all imports.object
- Retrieve list of imports using specified Search Filters.
null
- No options will be applied.object
- Apply specified Search Options.
Return Value
An array of objects. Each object will contain Import Properties.Example Request
Get import details for one import id:Request
Example Response
Response
Error Codes
code | message |
---|---|
101 | Invalid filters given. Details in error message. |
import.info
import.info (string $taskId, null|object $fields = [])
Retrieve full order information.
Parameters
Import unique ID.
null
- Retrieve basic import properties.array
- Defined list of properties to retrieve. “records” will add records information which is excluded by default.
Return Value
Object which contains the specified (or default if no fields parameter was given) Import Properties.Example Request
Get order information for the specified order:Request
Example Response
Response
Error Codes
code | message |
---|---|
100 | Requested import does not exist. |
import.create
import.create (string $data, string $entityType, null|object $options)
Import data.
Parameters
base64 encoded string.
Entity type. Allowed: “product”, “order”, “delivery”, “bom”.
Apply specified Import Options.
Return Value
The internal import id.Example Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
101 | Invalid filters given. Details in error message. |
103 | Invalid file type given. |
104 | Invalid file data given. |
105 | Internal error occurred. |
106 | Internal error occurred while converting the import file to CSV format. |
107 | Internal error occurred while scheduling import job. |