Get receipt
This API route will let you get a receipt by its id.
GET
https://api.iaphub.com/v1/app/:appId/receipt/:receiptId
Authentication
Authentication is required by using your Api Key in the Authorization header.
Authorization: ApiKey [SERVER_API_KEY]
note
You should only use this API call from your server.
For security reasons, each API endpoint has a rate limit of 5 requests per second.
Url parameters
appId
StringApp id
receiptId
StringReceipt id
Query parameters
environment
(Optional)ValuesStringApp environment (production by default)
Response properties
createdDate
StringDate of creation
processCount
NumberHow many times the receipt has been processed
processedDate
StringLast date the receipt has been processed
refreshDate
StringNext date the receipt will be refreshed
user
StringUser id
platform
ValuesStringPlatform
status
ValuesStringReceipt status
token
StringReceipt token
sku
StringReceipt sku (provided during the purchase)
Example
Url
https://api.iaphub.com/v1/app/5d86507259e828b8fe321f7e/receipt/5da20ea9fbd92641ae8d0c12
Response
{
id: '5da20ea9fbd92641ae8d0c12',
createdDate: '2019-10-12T17:34:33.256Z',
processCount: 1,
processedDate: '2019-10-12T17:34:34.256Z',
refreshDate: '2019-10-13T17:34:34.256Z',
user: '5da20ea9fbd92641ae8d0c56',
platform: 'android',
status: 'processed',
token: 'njgkbnamjcpmegfgpchflmpk.AO-J1Owun4CK9m0WnJhbJyEVLPWFNAZUxUUVlYs7wjATqupvDCilclTkOL609zde8RQz57_Fj6ekah6VlTWcFToQt4HU2Um2hYEnR_GGBvgBM2c_4CNtjQ3uZKjEJ18Ol9JamKlGShjg',
sku: 'subscription_1'
}