Methods
Entity Properties
order_instruction.create
order_instruction.create (string $orderUniqueId, string $note, object|null $options)
Create a new Packing Instruction.
Parameters
Order unique ID
Note
Additional Options (see Packing Instruction)
Return Value
An object with the new Packing Instruction. The “file_content” property is not returned. Use the order_instruction.list method to retrieve it.Example Request
No file to printRequest
Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
100 | Invalid data given. Details in error message. |
102 | Requested order does not exist. |
order_instruction.edit
order_instruction.edit (string $instructionId, string|null $note, object|null $options)
Modify the packing instruction.
Parameters
Instruction ID
Note
Additional Options (see Packing Instruction)
Return Value
An object with the updated Packing Instruction. The “file_content” property is not returned.Example Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
100 | Invalid data given. Details in error message. |
101 | Requested packing instruction does not exist. |
order_instruction.list
order_instruction.list (string $orderUniqueId, array|null $fields = [])
Retrieve list of packing instructions.
Parameters
Order unique ID
Fields
Return Value
An array of objects. Each object will contain Packing Instruction properties. Include “file_content” to the list of the fields to return the “file_content” property.Example Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
100 | Invalid data given. Details in error message. |
102 | Requested order does not exist. |
order_instruction.delete
order_instruction.delete (string $instructionId)
Delete packing instruction.
Parameters
Instruction ID
Return Value
true
if the packing instruction was deleted.
Example Request
Request
Example Response
Response