I am using nodejs to get all orders and sync to my database, but always get data: { message: '429 Too Many Requests' } error.
Here is my code:
let expand = 'employee,payments,refunds,credits,voids,payment.tender,payment.cardTransaction,lineItems,customers,serviceCharge,discounts,orderType,lineItems.discounts,lineItems.modifications'; const { data, payment_id, employee, lineItems, customers, } = await clover.getOneCloverOrder(order_num, expand); let cardTransaction, payment_method, credit_card_number; if (payment_id) { cardTransaction = await clover.getOneCloverOrderPaymentTransaction( payment_id ); }
May I know how to fix it?
Thank you!