import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.orderItems.get({
id: "<id>",
});
console.log(result);
}
run();{
"id": "<string>",
"object": "<string>",
"quantity": 123,
"price_variant": "<string>",
"product": "<string>",
"order": "<string>"
}Returns details of a specific order item
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.orderItems.get({
id: "<id>",
});
console.log(result);
}
run();{
"id": "<string>",
"object": "<string>",
"quantity": 123,
"price_variant": "<string>",
"product": "<string>",
"order": "<string>"
}API key in the format: Bearer {api_token}
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Comma-separated relations to expand: order, price_variant, product
Was this page helpful?