question

gonogo-dev avatar image
gonogo-dev asked 01928-7325x2 edited

Why is the e-commerce API giving the following error: "invoice id cannot exceed 12 characters"

We started seeing this error on one of our merchants yesterday and now another one popped up today. We've solved this by sending an external_reference_id in our charge payload however this is what our request looked like prior to his issue popping up on the Clover E-Commerce API:

{
    "source": "XXXXXXXXXXXXX",
    "tip_amount": 0
}

We've never sent an external_reference_id and wondering, is this now a required key? Or is this just another random error on the Clover API?

ecommerceDeveloper Pay 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.

bryanvargas avatar image
bryanvargas answered 01928-7325x2 edited

I would recommend reviewing the api: https://docs.clover.com/reference/createcharge
the external reference ID is not a required field but it you use it it cannot exceed 12 characters.

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.

gonogo-dev avatar image gonogo-dev commented ·
We've reviewed the docs and you're correct it's not required. As you can see we're also not sending it. So why are we getting the error?
1 Like 1 ·
01928-7325x2 avatar image 01928-7325x2 commented ·

I believe there is something changed on Clover. This issue is happening on some merchants only.
The docs does not mention anything about this issue.

1 Like 1 ·
michaelelias avatar image
michaelelias answered gonogo-dev commented

I've also seen this issue occur for some of our merchants. We have not made any changes to our integration and aren't sending an external reference id in our requests. It seems this started happening since March 5th 2024 and only for some merchants.

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.

gonogo-dev avatar image gonogo-dev commented ·

We've seen it on a few merchants as well. The only thing we've seen is that they were on a legacy plan that was sunset on that day. The only way we could avoid the error is by sending the external_reference_id key when making a charge. Even though we've never sent it at any point when making these API calls.

1 Like 1 ·

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