curl --request POST \
--url https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"picked_lines": [
{
"line_identifier": "555000111",
"quantity": 2
}
]
}
'import requests
url = "https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack"
payload = { "picked_lines": [
{
"line_identifier": "555000111",
"quantity": 2
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({picked_lines: [{line_identifier: '555000111', quantity: 2}]})
};
fetch('https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'picked_lines' => [
[
'line_identifier' => '555000111',
'quantity' => 2
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack"
payload := strings.NewReader("{\n \"picked_lines\": [\n {\n \"line_identifier\": \"555000111\",\n \"quantity\": 2\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"picked_lines\": [\n {\n \"line_identifier\": \"555000111\",\n \"quantity\": 2\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"picked_lines\": [\n {\n \"line_identifier\": \"555000111\",\n \"quantity\": 2\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The requested resource was not found."
}{
"message": "A request with this Idempotency-Key is still being processed."
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"This field is required."
]
}
}{
"message": "Too Many Attempts."
}{
"message": "Server Error"
}Record picked lines for a fulfillment request
Marks the listed lines as picked for the given fulfillment request. Driver-level invariants (e.g. packing an already-packed fulfillment, picking more than requested) are reported as 4xx errors.
curl --request POST \
--url https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"picked_lines": [
{
"line_identifier": "555000111",
"quantity": 2
}
]
}
'import requests
url = "https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack"
payload = { "picked_lines": [
{
"line_identifier": "555000111",
"quantity": 2
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({picked_lines: [{line_identifier: '555000111', quantity: 2}]})
};
fetch('https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'picked_lines' => [
[
'line_identifier' => '555000111',
'quantity' => 2
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack"
payload := strings.NewReader("{\n \"picked_lines\": [\n {\n \"line_identifier\": \"555000111\",\n \"quantity\": 2\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"picked_lines\": [\n {\n \"line_identifier\": \"555000111\",\n \"quantity\": 2\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartsend.io/v2/teams/{teamUuid}/wms/fulfillments/{fulfillmentIdentifier}/pack")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"picked_lines\": [\n {\n \"line_identifier\": \"555000111\",\n \"quantity\": 2\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The requested resource was not found."
}{
"message": "A request with this Idempotency-Key is still being processed."
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"This field is required."
]
}
}{
"message": "Too Many Attempts."
}{
"message": "Server Error"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional, case-sensitive key for one intended action. Scope: team, HTTP method and canonical path. Retained for at least 24 hours and while processing. Same key and payload reuses the stored outcome without repeating side effects; the resource representation is current. Changed payload: 422 with an Idempotency-Key entry in errors. Concurrent duplicate: 409 with Retry-After and Location when known. Without a key there is no deduplication. Use GET at Location after 202.
16 - 128^[A-Za-z0-9._-]{16,128}$Optional client-supplied request identifier. When provided and matching the validation pattern, the value is echoed back in the Request-ID response header. Otherwise the server generates one. Use this to correlate requests between client and server when reporting issues.
1 - 64^[A-Za-z0-9._-]{1,64}$Path Parameters
Team uuid. All resources are scoped to this team.
Identifier of a fulfillment request as returned by the team's WMS driver.
1"1234567890"
Body
The lines that were actually picked. Each entry references a line of the fulfillment request and the quantity that was packed.
1Show child attributes
Show child attributes
Response
Pack recorded successfully.
Was this page helpful?