Fulfillment App API (0.1)
Download OpenAPI specification:Download
Implements endpoints used by the app.
Use this resource to manage orders that are currently in the process of being fulfilled by a store or are in transit from or to a store.
Stores the consumer data.
Stores the consumer data.
path Parameters
correlation_id required | string Identifier for the corresponding sales order. |
Request Body schema: application/json
email required | string |
first_name | string |
last_name | string |
phone_number | string |
Responses
Request samples
- Payload
{- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "phone_number": "string"
}
Response samples
- 200
{- "successful": true
}
Get associate
Returns the associate object associated with the token sent with the header.
Responses
Response samples
- 200
{- "associate": {
- "absent_since": "2019-08-24T14:15:22Z",
- "completed_tasks_count": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "email": "string",
- "first_name": "string",
- "id": "string",
- "image_url": "string",
- "is_available": true,
- "last_name": "string",
- "open_tasks_count": 0,
- "revision": 1,
- "status": "can_receive_requests",
- "store_id": "string",
- "telephone_number": "string",
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update associate
Updates the associate object.
Request Body schema: application/json
status required | string Enum: "can_receive_requests" "cannot_receive_requests" "not_available" |
Responses
Request samples
- Payload
{- "status": "can_receive_requests"
}
Response samples
- 200
{- "associate": {
- "absent_since": "2019-08-24T14:15:22Z",
- "completed_tasks_count": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "email": "string",
- "first_name": "string",
- "id": "string",
- "image_url": "string",
- "is_available": true,
- "last_name": "string",
- "open_tasks_count": 0,
- "revision": 1,
- "status": "can_receive_requests",
- "store_id": "string",
- "telephone_number": "string",
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Reassign orders to new associate
Reassign the list of open fulfillment logistic orders to another associate.
Request Body schema: application/json
current_associate_id required | string |
new_associate_id required | string |
Responses
Request samples
- Payload
{- "current_associate_id": "22IB3UROr1S3Je9hDaRh7f",
- "new_associate_id": "33JB3UROr1S3Je9hDaRh7f"
}
Response samples
- 400
- 404
- 500
{- "error": {
- "code": "associates_in_different_stores",
- "description": "Chosen associates are not assigned to the same store, choose another associate.",
- "extended_attributes": { }
}
}
List all logistic orders
Gets a list of all fulfillment logistic orders for the current associate.
query Parameters
offset | integer >= 0 Default: 0 The page offset. |
count | integer >= 1 Default: 10 The number of requested documents. |
q | string A free text search for orders. |
sort | string The field to sort and its sorting order. These 2 values are separated by the pipe character ( |
filter | string The field to filter and its filter value(s); field is specified in subscript notation and its values are comma separated. When the value is expression of a range, the min and max range are separated by the "pipe" (|) character. |
Responses
Initiate return
Initiates the return process for the specified items.
path Parameters
uuid required | string The identifier of the fulfillment logistic order. |
Request Body schema: application/json
required | Array of objects (returnedItem) non-empty A list of objects, containing returned items |
sales_order_uuid required | string = 36 characters |
store_id | string The store where the return is initiated from. |
Responses
Request samples
- Payload
{- "returned_order_items": [
- {
- "order_item_uuid": "stringstringstringstringstringstring",
- "quality_inspection_code": 0,
- "quality_inspection_option": "string",
- "return_code": 0,
- "return_reason": "string",
- "sales_order_item_uuid": "stringstringstringstringstringstring"
}
], - "sales_order_uuid": "stringstringstringstringstringstring",
- "store_id": "string"
}
Response samples
- 200
{- "return_uuid": "stringstringstringstringstringstring"
}
Execute action
Performs a specific action to fulfill an order.
path Parameters
action required | string Enum: "accept" "decline" "mispick" "mispack" "start_packing" "finish_packing" "ready_for_pickup" "confirm_handover" The specific action to perform for the fulfillment logistic order. |
uuid required | string The identifier of the fulfillment logistic order. |
header Parameters
Retry-After required | string The time after the request can be retried. |
Request Body schema: application/json
required | Array of objects A list of boxes for the packing step. Each box can contain multiple items. |
items required | Array of strings[ items = 36 characters ] A list of fulfillment logistic order item UUIDs. This is necessary for request fulfillment documents. |
itn required | string The box's itn, needed for easypost, if order>$2500. It is used in skip_packing action |
required | Array of objects A list of objects, containing mispacked item product_id and mispacked_quantity |
required | Array of objects A list of objects, containing mispicked item product_id and mispicked_quantity |
package_number required | integer Specifies the number of the current package |
required | Array of objects |
Responses
Request samples
- Payload
{- "boxes": [
- {
- "index": 0,
- "items": [
- {
- "external_identifier": {
- "EAN": "string",
- "EPC": "string",
- "SKU": "string"
}, - "order_item_uuid": "stringstringstringstringstringstring"
}
], - "itn": "string",
- "package_option_uuid": "stringstringstringstringstringstring"
}
], - "items": [
- "stringstringstringstringstringstring"
], - "itn": "string",
- "mispacked_items": [
- {
- "mispacked_quantity": 0,
- "product_id": "string"
}
], - "mispicked_items": [
- {
- "mispicked_quantity": 0,
- "product_id": "string"
}
], - "package_number": 0,
- "scanned_order_items": [
- {
- "external_identifier": {
- "EAN": "string",
- "EPC": "string",
- "SKU": "string"
}, - "itn": "string",
- "order_item_uuid": "stringstringstringstringstringstring"
}
]
}
Get product
Returns the product with the given ID.
path Parameters
id required | string The identifier of the product. |
query Parameters
locale | string A locale code. Can be used to fetch product information in different languages. |
catalog | string DEPRECATED. Use |
shop | string The identifier of the shop the product belongs to. |
Responses
Response samples
- 200
{ }
List printer locations.
Returns the list of printer locations set up in the store.
path Parameters
store_id required | string The identifier of the store. |
Responses
Response samples
- 200
{- "printer_locations": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "printers": [
- {
- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "revision": 0,
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
], - "revision": 0,
- "store_id": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
]
}
Create printer location
Creates a new printer location.
path Parameters
store_id required | string The identifier of the store. |
Request Body schema: application/json
name required | string non-empty |
store_id required | string [ 1 .. 256 ] characters |
Responses
Request samples
- Payload
{- "name": "string",
- "store_id": "string"
}
Response samples
- 201
{- "printer_location": {
- "created_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "printers": [
- {
- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "revision": 0,
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
], - "revision": 0,
- "store_id": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
}
Get printer location
Returns the printer location with the given ID.
path Parameters
uuid required | string The identifier of the printer location. |
store_id required | string The identifier of the store. |
Responses
Response samples
- 200
{- "printer_location": {
- "created_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "printers": [
- {
- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "revision": 0,
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
], - "revision": 0,
- "store_id": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
}
Update printer location.
Update existing printer location with the given UUID.
path Parameters
uuid required | string The identifier of the printer location. |
store_id required | string The identifier of the store. |
Request Body schema: */*
name required | string non-empty |
Responses
Response samples
- 200
{- "printer_location": {
- "created_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "printers": [
- {
- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "revision": 0,
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
], - "revision": 0,
- "store_id": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
}
List printers
Returns the list of printers set up in the store.
path Parameters
store_id required | string The identifier of the store. |
Responses
Response samples
- 200
{- "printers": [
- {
- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "revision": 0,
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
]
}
Create printer
Creates a new printer.
path Parameters
store_id required | string The identifier of the store. |
Request Body schema: application/json
ipv4 | string <ipv4> <= 16 characters |
ipv6 | string <ipv6> <= 40 characters |
location | string <= 100 characters |
mac_address | string [ 17 .. 32 ] characters |
manufacturer required | string Enum: "Virtual" "Star" "AirPrint" |
model | string [ 3 .. 64 ] characters |
name required | string [ 3 .. 64 ] characters |
paper_size | string or null <= 32 characters |
printer_location_id | string = 36 characters |
store_id required | string [ 1 .. 256 ] characters |
type required | string Enum: "document_printer" "label_printer" |
url | string <= 256 characters |
Responses
Request samples
- Payload
{- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string"
}
Response samples
- 201
{- "printer": {
- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "revision": 0,
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
}
Get printer
Returns the printer with the given ID.
path Parameters
uuid required | string The identifier of the printer. |
store_id required | string The identifier of the store. |
Responses
Response samples
- 200
{- "printer": {
- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "revision": 0,
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
}
Update printer
Updates existing printer with the given UUID.
path Parameters
uuid required | string The identifier of the printer. |
store_id required | string The identifier of the store. |
Request Body schema: appplication/json
ipv4 | string <ipv4> <= 16 characters |
ipv6 | string <ipv6> <= 40 characters |
location | string <= 100 characters |
mac_address | string [ 17 .. 32 ] characters |
manufacturer required | string Enum: "Virtual" "Star" "AirPrint" |
model | string [ 3 .. 64 ] characters |
name required | string [ 3 .. 64 ] characters |
paper_size | string or null <= 32 characters |
printer_location_id | string = 36 characters |
store_id required | string [ 1 .. 256 ] characters |
type required | string Enum: "document_printer" "label_printer" |
url | string <= 256 characters |
Responses
Request samples
- Payload
{- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string"
}
Response samples
- 200
{- "printer": {
- "ipv4": "192.168.0.1",
- "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "location": "string",
- "mac_address": "stringstringstrin",
- "manufacturer": "Virtual",
- "model": "string",
- "name": "string",
- "paper_size": "string",
- "printer_location_id": "stringstringstringstringstringstring",
- "store_id": "string",
- "type": "document_printer",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "revision": 0,
- "tenant": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "stringstringstringstringstringstring"
}
}
Sends test notification.
Sends a test notification to the user. Use this method to verify the notification setup.
Request Body schema: application/json
message | string The message that will be sent in the notification, a default message is used if none is provided. |
notification_type required | string non-empty |
Responses
Request samples
- Payload
{- "message": "string",
- "notification_type": "string"
}
Response samples
- 202
{- "status": {
- "message": "string",
- "status_identifier": "string"
}
}