Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
degmo
Level 7

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
coffeetime
Level 7

Re: Help with API call to refund a transaction

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