Your Digital Media Has Never Looked So Good

 
degmo
Topic Author
Posts: 1
Joined: Wed Jan 02, 2019 5:53 pm

Help with API call to refund a transaction

Wed Jan 02, 2019 6:04 pm

Hello,
I am using Postman to refund a transaction.  I keep getting the error:  The server encountered an error processing the request. The exception message is 'Unable to deserialize XML body with root name 'cancel'.  Anyone knows why that is?

Sending a POST request to:  
[size=85]https://apipub.roku.com/listen/transaction-service.svc/refund-subscription[/size]

Body of request is:
<cancel>
   <partnerAPIKey>xxxxxxxxxxxxxxxxxxxxx</partnerAPIKey>
   <transactionId>xxxxxxxxxxxxxxx</transactionId>
   <amount>9.99</amount>
   <partnerReferenceId></partnerReferenceId>
   <comments>Refund due to error</comments>
</cancel>
 
coffeetime
Posts: 2
Joined: Mon Jun 12, 2017 4:53 pm

Re: Help with API call to refund a transaction

Thu Jan 24, 2019 12:07 pm

Change <cancel> to <refund> and see if that helps.

Who is online

Users browsing this forum: No registered users and 2 guests