Skip to main content

API - Get receipt

This API route will let you get a receipt by its id.

GET

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

StringApp id
StringReceipt id

Query parameters

environment(Optional)Values
StringApp environment (production by default)

Response properties

StringDate of creation
NumberHow many times the receipt has been processed
StringLast date the receipt has been processed
StringNext date the receipt will be refreshed
StringUser id
platformValues
StringPlatform
statusValues
StringReceipt status
StringReceipt token
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'
}