Apply a validated import
curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"matched_items": {
"1042": 15,
"1043": 0
}
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts"
payload = { "matched_items": {
"1042": 15,
"1043": 0
} }
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({matched_items: {'1042': 15, '1043': 0}})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts', 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://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts",
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([
'matched_items' => [
'1042' => 15,
'1043' => 0
]
]),
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://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts"
payload := strings.NewReader("{\n \"matched_items\": {\n \"1042\": 15,\n \"1043\": 0\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://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"matched_items\": {\n \"1042\": 15,\n \"1043\": 0\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts")
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 \"matched_items\": {\n \"1042\": 15,\n \"1043\": 0\n }\n}"
response = http.request(request)
puts response.read_body{
"updated": 123,
"session": {
"id": 123,
"uuid": "<string>",
"batchId": 123,
"warehouseId": 123,
"skuCount": 123,
"countedSkuCount": 123,
"theoreticalValue": 123,
"totalVarianceQty": 123,
"totalVarianceValue": 123,
"accuracyPercentage": 123,
"adjustmentId": 123,
"startedBy": 123,
"startedAt": "2023-11-07T05:31:56Z",
"postedBy": 123,
"postedAt": "2023-11-07T05:31:56Z",
"cancelledBy": 123,
"cancelledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "Unauthorized",
"message": "Authentication credentials are missing or invalid",
"status_code": 401
}{
"error": "Forbidden",
"message": "You do not have permission to access this resource",
"status_code": 403
}{
"error": "Not Found",
"message": "The requested resource could not be found",
"status_code": 404
}{
"message": "<string>",
"errors": {}
}Cycle Counts
Apply a validated import
Step 2 of the two-step CSV import flow. matched_items is the matchedItems object returned by validate-import, round-tripped back as-is (item_id => counted_qty). The session must be in_progress.
POST
/
pickflow
/
cycle-counts
/
{sessionId}
/
import-counts
Apply a validated import
curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"matched_items": {
"1042": 15,
"1043": 0
}
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts"
payload = { "matched_items": {
"1042": 15,
"1043": 0
} }
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({matched_items: {'1042': 15, '1043': 0}})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts', 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://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts",
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([
'matched_items' => [
'1042' => 15,
'1043' => 0
]
]),
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://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts"
payload := strings.NewReader("{\n \"matched_items\": {\n \"1042\": 15,\n \"1043\": 0\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://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"matched_items\": {\n \"1042\": 15,\n \"1043\": 0\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/pickflow/cycle-counts/{sessionId}/import-counts")
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 \"matched_items\": {\n \"1042\": 15,\n \"1043\": 0\n }\n}"
response = http.request(request)
puts response.read_body{
"updated": 123,
"session": {
"id": 123,
"uuid": "<string>",
"batchId": 123,
"warehouseId": 123,
"skuCount": 123,
"countedSkuCount": 123,
"theoreticalValue": 123,
"totalVarianceQty": 123,
"totalVarianceValue": 123,
"accuracyPercentage": 123,
"adjustmentId": 123,
"startedBy": 123,
"startedAt": "2023-11-07T05:31:56Z",
"postedBy": 123,
"postedAt": "2023-11-07T05:31:56Z",
"cancelledBy": 123,
"cancelledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "Unauthorized",
"message": "Authentication credentials are missing or invalid",
"status_code": 401
}{
"error": "Forbidden",
"message": "You do not have permission to access this resource",
"status_code": 403
}{
"error": "Not Found",
"message": "The requested resource could not be found",
"status_code": 404
}{
"message": "<string>",
"errors": {}
}Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Path Parameters
Body
application/json
Show child attributes
Show child attributes
Example:
{ "1042": 15, "1043": 0 }
Response
The number of items updated and the refreshed session.
A per-warehouse cycle count session. Every batch produces one session per warehouse in scope. This is the CS-8871 response shape returned by the lifecycle endpoints (start, submit-review, reopen, post, cancel, reset-counts) and by the batch endpoints where sessions are nested.
Show child attributes
Show child attributes
⌘I