Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
matrixebiz
Level 9

Web Service API

Hello, how are the transactions implemented from here https://sdkdocs.roku.com/display/sdkdoc/Web+Service+API

What I mean is, if wanting to process a Subscription Cancellation, where do you put this code and how do you run it? Thanks

https://apipub.roku.com/listen/transact ... bscription

POST https://apipub.roku.com/listen/transaction-service.svc/cancel-subscription HTTP/1.1
content-type: text/xml
accept: text/xml
<cancel>
<rokuAPIKey>{apikey}</rokuAPIKey>
<transactionId>{transactionId}</transactionId>
<cancellationDate>2012-08-22T14:59:50</cancellationDate>
<partnerReferenceId>{partnerReferenceId}</partnerReferenceId>
</cancel>
0 Kudos
2 REPLIES 2
jedashford
Level 9

Re: Web Service API

We use Postman to execute the POST for testing:

You can get it here:
https://www.getpostman.com/


Here is an image pointing to the important bits in postman with the data you provided:
https://drive.google.com/file/d/1tcVvuv ... w2/preview
0 Kudos
matrixebiz
Level 9

Re: Web Service API

Okay, great, I'll take a look. What do you mean "For testing" ? Will this program not actual initiate the Refund Subscription? Thanks
0 Kudos