Re: REST API - Decline - Invalid account number

Solved! Go to solution
arthur_adyan
Dabbler

REST API - Decline - Invalid account number

Hello,

I've created payment token with Secure Acceptance Hosted Checkout and want to use that token for making payments via REST API.

When I'm calling in REST API I'm getting "Decline - Invalid account number" Error message.

I've created token in test environment "https://testsecureacceptance.cybersource.com/pay" and tried to use token in test REST API "https://apitest.cybersource.com/pts/v2/payments". Below is REST API Request and response.

Please help to clarify.

 

Thanks,

Arthur

Request:

{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"paymentInformation": {
"tokenizedCard": {
"number": "6572840497286628104004",
"expirationMonth": "06",
"expirationYear": "2027",
"type": "001",
"transactionType": "1"
}
},
"orderInformation": {
"amountDetails": {
"totalAmount": "102.21",
"currency": "USD"
},
"billTo": {
"firstName": "John",
"lastName": "Doe",
"address1": "1 Market St",
"locality": "san francisco",
"administrativeArea": "CA",
"postalCode": "94105",
"country": "US",
"email": "test@cybs.com",
"phoneNumber": "4158880000"
}
}
}

 

Response:

{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"errorInformation": {
"reason": "INVALID_ACCOUNT",
"message": "Decline - Invalid account number"
},
"id": "6576079983886572003954",
"status": "DECLINED"
}

4 REPLIES 4
jenn_kh
Community Moderator

Re: REST API - Decline - Invalid account number

Thank you for reaching out, @arthur_adyan! One of our agents will get back to you with more information as soon as possible.  -Jenn

API_Managers
Visa Developer Support Specialist

Re: REST API - Decline - Invalid account number

Hi @arthur_adyan,

 

Please reach out to the CyberSource team directly for further assistance.

 

CyberSource Support
800-709-7779




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

dlsdev
Dabbler

Re: REST API - Decline - Invalid account number

What was the solution? I am having the same issue but using an Apple Pay payment token.

I_Doroteo3
Visa Developer Support Specialist

Re: REST API - Decline - Invalid account number

Hi @dlsdev

 

Because this is a Cybersource product please reach out directly to Cybersource via the phone number listed in Diana's reply or through their support page.

 

Thanks, 

Illana