cancel
Showing results for 
Search instead for 
Did you mean: 

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

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."
}
]
}
}

hienkhieu72
Member
2 REPLIES 2

Hello @hienkhieu72 

 

Are you perhaps attempting to use the same token twice?  

 

Richard

RichardH
Administrator Administrator
Administrator

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.