import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.orderItems.list({
orderId: "<id>",
});
console.log(result);
}
run();{
"data": [
{
"id": "<string>",
"object": "<string>",
"quantity": 123,
"price_variant": "<string>",
"product": "<string>",
"order": "<string>"
}
],
"has_more": true,
"url": "<string>"
}Returns order items for a specific order
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.orderItems.list({
orderId: "<id>",
});
console.log(result);
}
run();{
"data": [
{
"id": "<string>",
"object": "<string>",
"quantity": 123,
"price_variant": "<string>",
"product": "<string>",
"order": "<string>"
}
],
"has_more": true,
"url": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.crevio.co/llms.txt
Use this file to discover all available pages before exploring further.
API key in the format: Bearer {api_token}
The order ID
Cursor for pagination — the ID of the last item in the previous page
Items per page
1 <= x <= 100Was this page helpful?