Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
degmo
Visitor

Help with API call to refund a transaction

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:  
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>
0 Kudos
1 REPLY 1
coffeetime
Visitor

Re: Help with API call to refund a transaction

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