Authorization

Authentication is handled by creating a Client API Access Token, accessible from the App Family > Settings page. Provide the access token in the Authorization header of your requests.

Uploading a Google Play Purchase Order

Endpoint URL:

https://api.mbaasy.com/client/google_play/purchase_orders

Parameters

NameRequiredTypeDescription
purchase_dataYesJSON String
The original JSON string from the the INAPP_PURCHASE_DATA provided by the getBuyIntent() method.

Important: The INAPP_PURCHASE_DATA must be intact and as provided by the getBuyIntent() method. For this reason, the API will only accept the original JSON string.
purchase_signatureYesBase64 encoded string
A Base64 encoded string containing the INAPP_DATA_SIGNATURE provided by the getBuyIntent() method.

Important: The INAPP_DATA_SIGNATURE is already Base64 encoded by the getBuyIntent() method. There is no need to re-encode the string when sending to the API.
user_identifierNoStringUser ID corresponding to your user database
ip_addressNoV4 or V6 IP Addresses
IP address of the end user. Defaults to the network request IP if omitted, send NULL to prevent the IP address from being stored.
metadataNoJSON objectStore any arbitrary data to be recorded against the purchase order.

Uploading a Google Play Purchase Order (Legacy)

Endpoint URL:

https://api.mbaasy.com/client/google_play/purchase_orders/legacy

Parameters

NameRequiredTypeDescription
package_nameYesString
The packageName extracted from the INAPP_PURCHASE_DATA provided by the getBuyIntent() method.
purchase_tokenYesString
The purchaseToken extracted from the INAPP_PURCHASE_DATA provided by the getBuyIntent() method.
product_idYesString
The productId extracted from the INAPP_PURCHASE_DATA provided by the getBuyIntent() method.
order_idNoString
The orderId extracted from the INAPP_PURCHASE_DATA provided by the getBuyIntent() method.
user_identifierNoStringUser ID corresponding to your user database
ip_addressNoV4 or V6 IP Addresses
IP address of the end user. Defaults to the network request IP if omitted, send NULL to prevent the IP address from being stored.
metadataNoJSON objectStore any arbitrary data to be recorded against the purchase order.

Uploading an iTunes Connect Receipt

Endpoint URL:

https://api.mbaasy.com/client/itunes_connect/receipts

Parameters

NameRequiredTypeDescription
receiptYesBase64 encoded stringA base64 encoded string containing the receipt
country_codeNoString
ISO 3166-1 alpha-2 country code of the end user's iTunes App Store region. Please refer to Retrieving the iTunes Store Region
identifier_for_vendorNoString
user_identifierNoStringUser ID corresponding to your user database
ip_addressNoV4 or V6 IP Addresses
IP address of the end user. Defaults to the network request IP if omitted, send NULL to prevent the IP address from being stored.
metadataNoJSON objectStore any arbitrary data to be recorded against the purchase order.