Ecommerce Objects
- Products
- Orders
- Fulfillments
- Customers
List Orders
import { Panora } from "@panora/sdk";
const panora = new Panora({
apiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await panora.ecommerce.orders.list({
xConnectionToken: "<value>",
remoteData: true,
limit: 10,
cursor: "1b8b05bb-5273-4012-b520-8657b0b90874",
});
for await (const page of result) {
// Handle the page
console.log(page);
}
}
run();
{
"prev_cursor": "<string>",
"next_cursor": "<string>",
"data": [
{
"order_status": "UNSHIPPED",
"order_number": 19823838833,
"payment_status": "SUCCESS",
"currency": "AUD",
"total_price": 300,
"total_discount": 10,
"total_shipping": 120,
"total_tax": 120,
"fulfillment_status": "PENDING",
"customer_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"items": [
{
"remote_id": "12345",
"product_id": "prod_001",
"variant_id": "var_001",
"sku": "SKU123",
"title": "Sample Product",
"quantity": 2,
"price": "19.99",
"total": "39.98",
"fulfillment_status": "PENDING",
"requires_shipping": true,
"taxable": true,
"weight": 1.5,
"variant_title": "Size M",
"vendor": "Sample Vendor",
"properties": [
{
"name": "Color",
"value": "Red"
}
],
"tax_lines": [
{
"title": "Sales Tax",
"price": "3.00",
"rate": 0.075
}
],
"discount_allocations": [
{
"amount": "5.00",
"discount_application_index": 0
}
]
}
],
"field_mappings": {
"fav_dish": "broccoli",
"fav_color": "red"
},
"id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"remote_id": "id_1",
"remote_data": {
"fav_dish": "broccoli",
"fav_color": "red"
},
"created_at": "2024-10-01T12:00:00Z",
"modified_at": "2024-10-01T12:00:00Z"
}
]
}
Authorizations
Headers
The connection token
Query Parameters
Set to true to include data from the original software.
Set to get the number of records.
Set to get the number of records after this cursor.
Response
The status of the order
"UNSHIPPED"
The number of the order
19823838833
The payment status of the order
"SUCCESS"
The currency of the order. Authorized value must be of type CurrencyCode (ISO 4217)
"AUD"
The total price of the order
300
The total discount on the order
10
The total shipping cost of the order
120
The total tax on the order
120
The fulfillment status of the order
"PENDING"
The UUID of the customer associated with the order
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
The items in the order
The name of the report item
"Net Income"
The value of the report item
100000
The type of the report item
"Operating Activities"
The UUID of the parent item
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
The remote ID of the report item
"report_item_1234"
The date when the report item was generated in the remote system
"2024-07-01T12:00:00Z"
The UUID of the associated company info object
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
The created date of the report item
"2024-06-15T12:00:00Z"
The last modified date of the report item
"2024-06-15T12:00:00Z"
[
{
"remote_id": "12345",
"product_id": "prod_001",
"variant_id": "var_001",
"sku": "SKU123",
"title": "Sample Product",
"quantity": 2,
"price": "19.99",
"total": "39.98",
"fulfillment_status": "PENDING",
"requires_shipping": true,
"taxable": true,
"weight": 1.5,
"variant_title": "Size M",
"vendor": "Sample Vendor",
"properties": [{ "name": "Color", "value": "Red" }],
"tax_lines": [
{
"title": "Sales Tax",
"price": "3.00",
"rate": 0.075
}
],
"discount_allocations": [
{
"amount": "5.00",
"discount_application_index": 0
}
]
}
]
The custom field mappings of the object between the remote 3rd party & Panora
{
"fav_dish": "broccoli",
"fav_color": "red"
}
The UUID of the order
"801f9ede-c698-4e66-a7fc-48d19eebaa4f"
The remote ID of the order in the context of the 3rd Party
"id_1"
The remote data of the customer in the context of the 3rd Party
{
"fav_dish": "broccoli",
"fav_color": "red"
}
The created date of the object
"2024-10-01T12:00:00Z"
The modified date of the object
"2024-10-01T12:00:00Z"
Was this page helpful?
import { Panora } from "@panora/sdk";
const panora = new Panora({
apiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await panora.ecommerce.orders.list({
xConnectionToken: "<value>",
remoteData: true,
limit: 10,
cursor: "1b8b05bb-5273-4012-b520-8657b0b90874",
});
for await (const page of result) {
// Handle the page
console.log(page);
}
}
run();
{
"prev_cursor": "<string>",
"next_cursor": "<string>",
"data": [
{
"order_status": "UNSHIPPED",
"order_number": 19823838833,
"payment_status": "SUCCESS",
"currency": "AUD",
"total_price": 300,
"total_discount": 10,
"total_shipping": 120,
"total_tax": 120,
"fulfillment_status": "PENDING",
"customer_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"items": [
{
"remote_id": "12345",
"product_id": "prod_001",
"variant_id": "var_001",
"sku": "SKU123",
"title": "Sample Product",
"quantity": 2,
"price": "19.99",
"total": "39.98",
"fulfillment_status": "PENDING",
"requires_shipping": true,
"taxable": true,
"weight": 1.5,
"variant_title": "Size M",
"vendor": "Sample Vendor",
"properties": [
{
"name": "Color",
"value": "Red"
}
],
"tax_lines": [
{
"title": "Sales Tax",
"price": "3.00",
"rate": 0.075
}
],
"discount_allocations": [
{
"amount": "5.00",
"discount_application_index": 0
}
]
}
],
"field_mappings": {
"fav_dish": "broccoli",
"fav_color": "red"
},
"id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"remote_id": "id_1",
"remote_data": {
"fav_dish": "broccoli",
"fav_color": "red"
},
"created_at": "2024-10-01T12:00:00Z",
"modified_at": "2024-10-01T12:00:00Z"
}
]
}