Hey @brianmaggi! Can you verify if you’ve fully updated the SDK to 40.0.0? I just tested the latest Node.js SDK version with this code copied directly from API Explorer, and the request succeeded as expected:
async function main() {
const client = new SquareClient({
token: "ACCESS TOKEN HERE",
});
await client.orders.create({
idempotencyKey: "28ef5446-fd05-4e14-a40e-6fa246e70942",
order: {
locationId: "L5AT2F5E5116J",
referenceId: "Reference123",
lineItems: [
{
uid: "order_uid_123",
name: "Test",
quantity: "1",
variationName: "Test Variation",
itemType: "ITEM",
basePriceMoney: {
amount: BigInt(3500),
currency: "USD",
},
},
],
pricingOptions: {
autoApplyTaxes: false,
},
},
});
}
main();
If you’re sure that you’re on 40.0.0, is it possible that the value you’re passing in is getting malformed?