question

01928-7325x2 avatar image
01928-7325x2 asked 01928-7325x2 answered

E-Commerce Payment Suddenly Error

We suddenly get this message in the morning

"code": "processing_error",

"message": "Order number must be provided if tax amount is provided"

Endpoint we use: https://docs.clover.com/reference/postordersidpay
Payload:

{
    "source": "clv_XXXXXXXXXXXX",
    "tip_amount": 0,
    "ecomind": "ecom",
    "level2":
    {
        "purchase_identifier": "{MERCHANT_ID}",
        "order_number": "C568"
    },
    "soft_descriptor":
    {
        "dba_name": "{MERCHANT_NAME}",
        "street": "{MERCHNAT_ADDRESS}",
        "city": "Victoria",
        "region": "TX",
        "postal_code": "77905",
        "country_code": "840",
        "merchant_contact_info": "{MERCHANT_PHONE}"
    }
}


What is confusing is the error message mentioning about tax amount while in our payload we don't set taxAmount.
What is the correct payload for using E-Commerce API? It seems there are many combinations.

Any direct guide to help the issue will be much appreciated.
Thanks!

e-commerce api
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

01928-7325x2 avatar image
01928-7325x2 answered

So, it seems for level2, we also need to send the tax amount if we want to use it.

10 |2000

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