Roadblock: the API returns a huge nested payload and the visual mapper can't reach data.items[0].price.amount. Two lines get exactly what you need — safely.
const data = JSON.parse(input.payload);
// Optional chaining: never crashes if a level is missing
const amount = data?.items?.[0]?.price?.amount ?? 0;
return { amount };