cancel
Showing results for 
Search instead for 
Did you mean: 

E00013 Expiration Date is invalid

We are getting lots of error when expiry date month is in single digit 'M/YYYY'. Is this due to incorrect expiry date or wrong format?

14 REPLIES 14

Hello,

 

 

Are you using one of the SDKs? If so, which one.

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

We are using C# sdk v1.9.5

When adding a payment profile, if user puts in the incorrect expiry date, would we still get E00013 or this error is only for incorrect formatting?

With the C# SDK, try using the following format for the expiration date:

expirationDate = "0622"

 

Powered by NexWebSites.com -
Certified Authorize.net developers

I can try that, as per documentation we switched to yyyy-MM from M/yy or M/yyyy format, but we were still getting that error, any thoughts on the previous question?

 


@piyush-at-tusk wrote:

When adding a payment profile, if user puts in the incorrect expiry date, would we still get E00013 or this error is only for incorrect formatting?


 

You could check to see the actual value that is being passed for the expirationDate.

Powered by NexWebSites.com -
Certified Authorize.net developers

yeah, we looked at it and 4/2022 failed. but after formatting it to 2022-04 it was still failing. so wondering if incorrect date can also cause this issue or not

Use XML gYearMonth (YYYY-MM) formatting. This is the only supported format.

 

Does 2022-04 fail due to the same error? It looks correct. I tried it in the sandbox and it worked.

 

<creditCard> <cardNumber>4111111111111111</cardNumber> <expirationDate>2022-04</expirationDate> </creditCard>

 

https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-payment-p...

Maybe that is the preferred, documented format. But an alternate format works and is what is used in the C# SDK : https://github.com/AuthorizeNet/sample-code-csharp/blob/master/CustomerProfiles/UpdateCustomerPaymen...

 

And where the OP is having an issue with the format ...

 

https://nexwebhost.com/authorizenet/tmp/authPayment.jpg

https://nexwebhost.com/authorizenet/tmp/authCPaymentProfile.jpg

 

 

Powered by NexWebSites.com -
Certified Authorize.net developers