curl --request POST \
--url https://api.exowpee.com/v1/order/sellers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"user_profile_id": "<string>",
"linear_pos": true
}
'import requests
url = "https://api.exowpee.com/v1/order/sellers"
payload = {
"agent_id": "<string>",
"user_profile_id": "<string>",
"linear_pos": True
}
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({agent_id: '<string>', user_profile_id: '<string>', linear_pos: true})
};
fetch('https://api.exowpee.com/v1/order/sellers', 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.exowpee.com/v1/order/sellers",
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([
'agent_id' => '<string>',
'user_profile_id' => '<string>',
'linear_pos' => true
]),
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.exowpee.com/v1/order/sellers"
payload := strings.NewReader("{\n \"agent_id\": \"<string>\",\n \"user_profile_id\": \"<string>\",\n \"linear_pos\": true\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.exowpee.com/v1/order/sellers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"<string>\",\n \"user_profile_id\": \"<string>\",\n \"linear_pos\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/order/sellers")
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 \"agent_id\": \"<string>\",\n \"user_profile_id\": \"<string>\",\n \"linear_pos\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"sellable_id": "<string>",
"status": "<string>",
"linear_pos": true,
"sellable": {},
"cash_register_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"message": "<string>",
"errors": {}
}Add a seller
Lets a member or agent account sell directly, outside any cash register.
curl --request POST \
--url https://api.exowpee.com/v1/order/sellers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"user_profile_id": "<string>",
"linear_pos": true
}
'import requests
url = "https://api.exowpee.com/v1/order/sellers"
payload = {
"agent_id": "<string>",
"user_profile_id": "<string>",
"linear_pos": True
}
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({agent_id: '<string>', user_profile_id: '<string>', linear_pos: true})
};
fetch('https://api.exowpee.com/v1/order/sellers', 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.exowpee.com/v1/order/sellers",
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([
'agent_id' => '<string>',
'user_profile_id' => '<string>',
'linear_pos' => true
]),
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.exowpee.com/v1/order/sellers"
payload := strings.NewReader("{\n \"agent_id\": \"<string>\",\n \"user_profile_id\": \"<string>\",\n \"linear_pos\": true\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.exowpee.com/v1/order/sellers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"<string>\",\n \"user_profile_id\": \"<string>\",\n \"linear_pos\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/order/sellers")
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 \"agent_id\": \"<string>\",\n \"user_profile_id\": \"<string>\",\n \"linear_pos\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"sellable_id": "<string>",
"status": "<string>",
"linear_pos": true,
"sellable": {},
"cash_register_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"message": "<string>",
"errors": {}
}sellers.create
Conditions
- Exactly one of agent_id or user_profile_id must be sent; the person must belong to the current company.
- The person cannot already be a direct seller (not tied to a register) of the company.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Response mode. Default none; none answers 204 No Content.
none, resource Comma-separated JSON keys of the root resource (id is always rendered). Available: id, sellable_id, status, linear_pos, cash_register_id, created_at, updated_at.
Comma-separated include paths, each optionally followed by its fields in parentheses: units(id,sku),units.uomUnit(id,name). Max depth 6, max 40 paths. Available: sellable.
Body
Identifier of the agent to add as seller. Required when user_profile_id is not sent, and cannot be sent with it. The agent must belong to the company and not already be a direct seller.
27Identifier of the user profile to add as seller. Required when agent_id is not sent. Must belong to the company and not already be a direct seller.
27Whether the seller uses the linear POS layout. Defaults to false.
Response
Resource (only with response=resource).
Identifier of the seller record (27-character KSUID string).
Identifier of the person who is the seller: an agent account or a user profile of the company.
active (can create orders) or inactive.
Whether the seller uses the linear POS layout.
Identity of the person behind the seller (first_name, last_name, username). Only present when requested with include.
Identifier of the register the seller is tied to. Null for a direct seller, outside any register.
Date and time the record was created (ISO 8601, UTC).
Date and time the record was last changed (ISO 8601, UTC).