Assign tote to active cart
curl --request POST \
--url http://localhost:3000/v1/rfc-picks/{id}/assign-tote \
--header 'Content-Type: application/json' \
--data '
{
"tote_id": "011000000100001000"
}
'import requests
url = "http://localhost:3000/v1/rfc-picks/{id}/assign-tote"
payload = { "tote_id": "011000000100001000" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({tote_id: '011000000100001000'})
};
fetch('http://localhost:3000/v1/rfc-picks/{id}/assign-tote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/rfc-picks/{id}/assign-tote",
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([
'tote_id' => '011000000100001000'
]),
CURLOPT_HTTPHEADER => [
"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 := "http://localhost:3000/v1/rfc-picks/{id}/assign-tote"
payload := strings.NewReader("{\n \"tote_id\": \"011000000100001000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://localhost:3000/v1/rfc-picks/{id}/assign-tote")
.header("Content-Type", "application/json")
.body("{\n \"tote_id\": \"011000000100001000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v1/rfc-picks/{id}/assign-tote")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"tote_id\": \"011000000100001000\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"tote": null,
"cart": null,
"message": "<string>",
"error": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}RFC Picks
Assign tote to active cart
Assigns a tote to the active cart. The cart can have up to 3 totes. First tote becomes the active tote.
POST
/
v1
/
rfc-picks
/
{id}
/
assign-tote
Assign tote to active cart
curl --request POST \
--url http://localhost:3000/v1/rfc-picks/{id}/assign-tote \
--header 'Content-Type: application/json' \
--data '
{
"tote_id": "011000000100001000"
}
'import requests
url = "http://localhost:3000/v1/rfc-picks/{id}/assign-tote"
payload = { "tote_id": "011000000100001000" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({tote_id: '011000000100001000'})
};
fetch('http://localhost:3000/v1/rfc-picks/{id}/assign-tote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/rfc-picks/{id}/assign-tote",
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([
'tote_id' => '011000000100001000'
]),
CURLOPT_HTTPHEADER => [
"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 := "http://localhost:3000/v1/rfc-picks/{id}/assign-tote"
payload := strings.NewReader("{\n \"tote_id\": \"011000000100001000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://localhost:3000/v1/rfc-picks/{id}/assign-tote")
.header("Content-Type", "application/json")
.body("{\n \"tote_id\": \"011000000100001000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v1/rfc-picks/{id}/assign-tote")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"tote_id\": \"011000000100001000\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"tote": null,
"cart": null,
"message": "<string>",
"error": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Path Parameters
Pick list ID
Body
application/json
Tote ID (taxonomy ID) to assign to the active cart
Minimum string length:
1Example:
"011000000100001000"
⌘I