Testing Shopify Order Create API

I’m trying to use k6 to do 3000 order creation against shopify API.

As shopify API have leaky bucket algorithm, it is slightly tricky to create 3000 orders.

I tried below settings from jmeter with lot more success out of 210 total request
What would a k6 script looks for this jmeter scenario?

Anybody has done something similar, would be helpful if anybody can share a sample

2 requests/second

I am not familiar with JMeter or Shopify, but you can either use sleep() in k6 to slow down the execution of looping VUs, or precisely specify the iterations/s with an arrival-rate executor so they below the Shopify thresholds: