question

chintanbug avatar image
chintanbug asked sdavisde published

First time POSTMAN API call and received error.. "COS get payment config failed with exception 429 Too Many Requests"

Hi, this is the first time i am using the checkouts API... after few attempts(around 10) of 401 error i finally made to the 429 error... not sure why i am getting this error... even i tried after few minutes...

i also went through https://docs.clover.com/docs/api-usage-rate-limits but my response header is also missing retry-after

I have been testing with POSTMAN only. please help on it.

CURL

curl --location 'https://api.clover.com/invoicingcheckoutservice/v1/checkouts' \

--header 'accept: application/json' \

--header 'content-type: application/json' \

--header 'X-Clover-Merchant-Id: ***********' \

--header 'Authorization: Bearer ************************' \

--data-raw '{

"customer": {

"id": "3",

"firstName": "firstname",

"lastName": "lastname",

"email": "user@gmail.com",

"phoneNumber": "123456789"

},

"redirectUrls": {

"success": "https://success.com/",

"failure": "https://fail.com/",

"cancel": "https://cancel.com"

},

"shoppingCart": {

"total": 1,

"subtotal": 1,

"totalTaxAmount": 0,

"tipAmount": 0,

"lineItems": [

{

"price": 1,

"name": "Food Delivery",

"unitQty": 1

}

]

}

}'


Response

1708149353662.png


Response Header

1708149411870.png

REST API
1708149353662.png (24.8 KiB)
1708149411870.png (56.0 KiB)
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.

larryrichard avatar image larryrichard commented ·

@ minecraftle game: I think you should ensure that you are not making API requests at a higher frequency than the allowed rate limit. You can introduce delays between requests to stay within the limits.

0 Likes 0 ·
chintanbug avatar image chintanbug larryrichard commented ·
Thank you for your reply.... this API is not integrated in APP... this is the first time i am testing using POSTMAN... even if i try after 24 hrs i get same error message
0 Likes 0 ·

1 Answer

·
sdavisde avatar image
sdavisde answered sdavisde published

I am also experiencing this problem, but only in my production merchant account. Sandbox continues to work correctly. Is there a solution found for this error? I'm confident that I have stayed within the rate limit as described on this page

10 |2000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community