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 .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
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/jsv Content-Length: length [ { TransactionID: String, ReceiptValidationResult: Success } ]