curl --request GET \
--url https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}', 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/catalog/purchase-deliveries/{purchase_delivery}/items/{item}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"asset_id": "<string>",
"purchase_id": "<string>",
"item_id": "<string>",
"reception_id": "<string>",
"purchase_item": {},
"quantity": 123,
"accepted_quantity": 123,
"damaged_quantity": 123,
"damage_stockable_unit_id": "<string>",
"damage_stockable_unit": {},
"damage_reason": "<string>",
"damage_cost_treatment": "<string>",
"damage_cost_total": 123,
"base_cost_total": 123,
"allocated_purchase_leftover": 123,
"allocated_landed_cost_total": 123,
"cost_total": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}View a delivery item
Shows one product line of a delivery.
curl --request GET \
--url https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}', 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/catalog/purchase-deliveries/{purchase_delivery}/items/{item}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/catalog/purchase-deliveries/{purchase_delivery}/items/{item}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"asset_id": "<string>",
"purchase_id": "<string>",
"item_id": "<string>",
"reception_id": "<string>",
"purchase_item": {},
"quantity": 123,
"accepted_quantity": 123,
"damaged_quantity": 123,
"damage_stockable_unit_id": "<string>",
"damage_stockable_unit": {},
"damage_reason": "<string>",
"damage_cost_treatment": "<string>",
"damage_cost_total": 123,
"base_cost_total": 123,
"allocated_purchase_leftover": 123,
"allocated_landed_cost_total": 123,
"cost_total": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}purchase_reception_items.retrieve
Part of Receive purchased goods.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the purchase delivery (27-character KSUID).
Identifier of the reception line (not the purchase line) of the delivery or pickup named in the path (27-character KSUID). It must belong to that reception.
Query Parameters
Response mode. Default resource; none answers 204 No Content.
resource Comma-separated JSON keys of the root resource (id is always rendered). Available: id, asset_id, purchase_id, item_id, reception_id, quantity, accepted_quantity, damaged_quantity, damage_stockable_unit_id, damage_reason, damage_cost_treatment, damage_cost_total, base_cost_total, allocated_purchase_leftover, allocated_landed_cost_total, cost_total, 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: item, item.stockable, item.stockableUnit, damageStockableUnit, damageStockableUnit.uomUnit, damageStockableUnit.prices, damageStockableUnit.stockable.
Response
Resource.
Identifier of the reception line (27-character KSUID).
Identifier of the location asset (warehouse or shop) where the accepted goods will be added to stock at confirmation.
Identifier of the purchase of the reception.
Identifier of the purchase line being received.
Identifier of the delivery or pickup this line belongs to.
The purchase line, present only when requested with include=item; null otherwise.
Quantity received on this line, in the purchase line's unit, damaged goods included.
Quantity accepted into stock: received quantity minus damaged_quantity, expressed in the damage unit when damage_stockable_unit_id is set, otherwise in the purchase unit. Computed by the server.
Quantity found damaged, in the damage unit (the purchase unit when none is set). 0 when nothing is damaged.
Identifier of the unit in which damaged_quantity is counted, or null for the purchase unit.
The damage unit, present only when requested with include=damageStockableUnit; null otherwise.
Why the goods are damaged: ordinary or exceptional. Null when nothing is damaged.
How the cost of the damaged goods is treated: absorbed_by_remaining_stock (kept in the cost of the accepted stock) or expensed (removed from the stock cost). Null when nothing is damaged.
Cost attributed to the damaged goods, in major units. 0 until the reception is confirmed.
Commercial cost of the received quantity taken from the purchase line (tax included), in major units, before extra costs.
Share of the purchase's rounding leftover given to this line, in major units. 0 until the reception is confirmed.
Share of the reception's extra costs (and delivery fee) given to this line, in major units. 0 until the reception is confirmed.
Total cost of the line, in major units: base cost plus the spread amounts, minus the damage cost when it is expensed. Equals base_cost_total until the reception is confirmed.
Date and time the record was created (ISO 8601, UTC).
Date and time the record was last changed (ISO 8601, UTC).