POST | /Product/Validate/Google |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Receipts | body | GoogleReceipt[] | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
productId | form | string | No | |
transactionId | form | string | No | |
transactionDate | form | string | No | |
transactionReceipt | form | string | No | |
purchaseToken | form | string | No | |
dataAndroid | form | string | No | |
signatureAndroid | form | string | No | |
autoRenewingAndroid | form | bool | No | |
isAcknowledgedAndroid | form | bool | No | |
purchaseStateAndroid | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Product/Validate/Google HTTP/1.1
Host: tstsrvs.redhotpie.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Receipts":[{"productId":"String","transactionId":"String","transactionDate":"String","transactionReceipt":"String","purchaseToken":"String","dataAndroid":"String","signatureAndroid":"String","autoRenewingAndroid":false,"isAcknowledgedAndroid":false,"purchaseStateAndroid":"String"}]}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length [{"TransactionID":"String","ReceiptValidationResult":"Success"}]