question

mubasharabbas avatar image
mubasharabbas asked David Marginian answered

'country' is required to be non-null

We are getting this error when adding a source token to a customer in the clover ecommerce api.

{"message":"400 Bad Request","error":{"code":"processing_error","message":"['country' is required to be non-null]"}}

The url is:


PUT https://scl-sandbox.dev.clover.com/v1/customers/<customerId>


the body is:


{"source":"<clv_token_here>","email":"<email>"}


I couldn't find anything in the forum or in the docs about it.

OrdersPaymentse-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

· Write an Answer
David Marginian avatar image
David Marginian answered

This is a known issue on our end. We have an open ticket to resolve it and the only workaround in the meantime is to update the customer's address with an blank/empty country (this can be done via https://docs.clover.com/reference#handlersupdatecustomer.

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