question

aetkin avatar image
aetkin asked langflow answered

Referenced tax rate does not exist: null

I have implemented clover hosted checkout on my website. Everything works ok , both in production and in sandbox until I try to add tax rates.

I have added a tax rate to my merchant account ( attaching a screenshot ),1737979445063.png
and here is the json I am sending to https://apisandbox.dev.clover.com/invoicingcheckoutservice/v1/checkouts:
1737979520643.pngIf I try to add any other amount than 675000 I will receive an error that tax rate of n does not match any of the merchant tax rates.

When I try to create a checkout with that payload, I receive a correct response with checkoutSessionId and the payment URL.
On the checkout page the tax is calculated correctly and is shown in the Tax field for each item, but when I try to pay I receive this error - COS create order failed with exception: 400 Bad Request: [{"message":"Referenced tax rate does not exist: null"}. What am I doing wrong? This is all happening on the clover hosted checkout page, not on my resource.

ecommerceTaxes
1737979445063.png (17.5 KiB)
1737979520643.png (22.6 KiB)
1 comment
10 |2000

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

aetkin avatar image aetkin commented ·

Attaching the actual error screenshot.
1737980161788.png

0 Likes 0 ·
1737980161788.png (108.3 KiB)

1 Answer

·
langflow avatar image
langflow answered

Check your tax settings to insure that the correct tax rate is set. If this doesn't solve the problem, try re-adding the tax rate or updating your system settings.

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