"VERIFY_AVS_FAILURE": "Postal code check failed

Hi, we are using the following API to card on file , and get “VERIFY_AVS_FAILURE”: "Postal code check failed error.

However the card is added successfully in Square customer, but we don’t get the token due to AVS failure.

What is the customer_id and application Id that was used to get this error?

This is from our API log file: Custid: 0000003
Application ID
sq0idp-QDe8hOsZpZrfMN9uTjEUGw

Merchant ID
MLYRJMRGJ9SCS

API
Customers

Endpoint Name
CreateCustomerCard

Status
200

Path
POST /v2/customers/{customer_id}/cards

Square Version
2020-09-23

User Agent
Square-DotNet-SDK/6.4.0

REFERENCE ID
0000003

Hi Bryan, any advice on the issue?

@cleantie I haven’t been able to find the error in our logs. I’m not seeing in AVS errors in the logs for a CreateCustomerCard on the application. Are you able to easily replicate the error?

It does every time I save the card on file, I can replicate it. Let me know what you need

Are you including a billing_address in the CreateCustomerCard call?

We make a PUT /v2/customers/{customer_id} then POST /v2/customers/{customer_id}/cards.
We do pass the card details and Posta Code e.g M2N0G3 . we alo tried M2N 0G3 format. The actual postal code matches the card address. The card is saved in Square customer file. But AVS error is returned. It must be related to Postal Code format for Canadian card.

I even tried a customer with US address REFERENCE ID 0000002, and tried our US Visa with proper Zipcode. Still getting the same error. The card is saved in Square customer file.