Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 3
Registered: ‎02-28-2019

Create Accept Payment Transaction with error "Invalid OTS Token."

[ Edited ]

I always get "Invalid OTS Token." error when trying to create accept payment transaction when using API live console utility

 

Here is request

 

{
"createTransactionRequest": {
"merchantAuthentication": {
"name": "MyApiLogin",
"transactionKey": "MyTransactionKey"
},
"refId": "11112",
"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": "5",
"payment": {
"opaqueData": {
"dataDescriptor": "COMMON.ACCEPT.INAPP.PAYMENT",
"dataValue": "eyJjb2RlIjoiNTBfMl8wNjAwMDUyNzNGQUQzRTU1RUIxNzVFQTJGRDY0MkI0MjQxRTk3MTUwRjQ5RUE1NzJCOUVGRTZBMzk1QTk5ODI4Q0EwMTRCQTI4NDJEN0ZGRjAxMjZDN0Q5NkI4ODNBOUQzOTNDREMyIiwidG9rZW4iOiI5NTUxMzkyNjkxNDM1MTk2NzA0NjA0IiwidiI6IjEuMSJ9"
}
},
"lineItems": {
"lineItem": {
"itemId": "1",
"name": "vase",
"description": "Cannes logo",
"quantity": "18",
"unitPrice": "45.00"
}
},
"poNumber": "456654",
"billTo": {
"firstName": "Ellen",
"lastName": "Johnson",
"company": "Souveniropolis",
"address": "14 Main Street",
"city": "Pecan Springs",
"state": "TX",
"zip": "44628",
"country": "USA"
},
"shipTo": {
"firstName": "China",
"lastName": "Bayles",
"company": "Thyme for Tea",
"address": "12 Main Street",
"city": "Pecan Springs",
"state": "TX",
"zip": "44628",
"country": "USA"
},
"customerIP": "192.168.1.1",
"userFields": {
"userField": [
{
"name": "MerchantDefinedFieldName1",
"value": "MerchantDefinedFieldValue1"
},
{
"name": "favorite_color",
"value": "blue"
}
]
}
}
}
}

 

And here is response

 

{
"transactionResponse": {
"SupplementalDataQualificationIndicator": 0
},
"refId": "11112",
"messages": {
"resultCode": "Error",
"message": [
{
"code": "E00114",
"text": "Invalid OTS Token."
}
]
}
}

Posts: 2,765
Topics: 57
Kudos: 270
Blog Posts: 67
Registered: ‎12-05-2011

Re: Create Accept Payment Transaction with error "Invalid OTS Token."

Hello @hienkhieu72 

 

Are you perhaps attempting to use the same token twice?  

 

Richard

Member
Posts: 3
Registered: ‎02-28-2019

Re: Create Accept Payment Transaction with error "Invalid OTS Token."

I don't think that's the case as after that I reset my transaction key and was able to process through some transactions. This morining it gives me the same error again. This time reset transaction key did not help.