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: 
rickard
Visitor

Web Service API documentation?

Hi,

I'm trying to integrate with the Validate Transaction Web Service, but the documentation (https://sdkdocs.roku.com/display/sdkdoc ... ransaction) seems to be completely outdated and/or wrong.

Here's what the docs say I should get (in XML format):

<result>
  <transactionId>{transactionid}</transactionId>
  <purchaseDate>2012-07-22T14:59:50</purchaseDate>
  <channelName>123Video</channelName>
  <productName>123Video Monthly Subscription</productName>
  <productId>NETMONTH</productId>
  <amount>9.99</amount>
  <currency>USD</currency>
  <isEntitled>true</isEntitled>
  <quantity>1</quantity>
  <rokuCustomerId>abcdefghijklmnop</rokuCustomerId>
  <expirationDate>2012-08-22T14:59:50</expirationDate>
  <originalPurchaseDate>2010-08-22T14:59:50</originalPurchaseDate>
  <status>Success</status>
  <errorMessage>error_message</errorMessage>
</result>
Here's what I actually get (in JSON format, anonymized):
{
    "errorCode": null,
    "errorDetails": null,
    "errorMessage": "",
    "status": 0,
    "amount": 0.0000,
    "cancelled": false,
    "channelId": 123456,
    "channelName": "My Company SSO",
    "couponCode": null,
    "currency": "usd",
    "expirationDate": "/Date(1546663531000+0000)/",
    "isEntitled": true,
    "originalPurchaseDate": "/Date(1544071531000+0000)/",
    "partnerReferenceId": null,
    "productId": "com.my.company.production.subscription",
    "productName": "My Company ",
    "purchaseDate": "/Date(1544071531000+0000)/",
    "quantity": 1,
    "rokuCustomerId": "79b7450044bb5759820db6b108cf7756",
    "tax": 0.0000,
    "total": 0.0000,
    "transactionId": "5fa8d33c-c7b9-4b15-a51a-a9ae004e6b71"
}

As you can see they're very different. Different fields, formats, etc. 
Is there ANY new documentation available for Web Service API that I can rely on? Any hints at all as to what to expect for the various fields?
thanks, Rickard
1 REPLY 1
gonzaM
Newbie

Re: Web Service API documentation?

Did you find any documentation? I have the same problem.

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.