question

et-taoussy avatar image
et-taoussy asked rachel Deactivated commented

Store array of customers

Hi,

i want to import array of customers but when i want to store one by one using rest api i get : 429 (Too Many Requests)

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

rachel avatar image
rachel Deactivated answered rachel Deactivated commented

Hi @et-taoussy,

Sounds like you're bumping up against our rate limit. Your app should handle 429 error codes by responding with an exponential back-off.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

et-taoussy avatar image et-taoussy commented ·

For this reason i can't store customers one by one, is there a way to store array of customers(>1000 customers) in a single request?

0 Likes 0 ·
rachel avatar image rachel commented ·

I don't believe that's possible; the POST /v3/merchants/{mId}/customers endpoint is for creating a single customer.

0 Likes 0 ·

Welcome to the
Clover Developer Community