Creates a new purchase
POST/organizations/:organizationId/projects/:projectId/platforms/android/devices/:deviceId/purchases
Creates a new purchase
Request
Path Parameters
- application/json
Body
required
Possible values: [PURCHASED
, CANCELED
, PENDING
]
The state of the purchase
Quantity of items purchased
The time the purchase was made
Obfuscated account ID
Obfuscated profile ID
Developer payload
Order ID
The applicationId associated with the app, also referred to as packageName.
Token
Acknowledged status
List of product IDs
Organization ID
Project ID
Possible values: [subs
, inapp
]
Product type
Device ID
Responses
- 201
Create a new purchase
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
ID
Possible values: [PURCHASED
, CANCELED
, PENDING
]
The state of the purchase
Quantity of items purchased
The time the purchase was made
Obfuscated account ID
Obfuscated profile ID
Developer payload
Order ID
The applicationId associated with the app, also referred to as packageName.
Purchase token
Product ID
User ID
Organization ID
Device ID
Android platform ID
The time the purchase was consumed
The time the purchase was updated
The time the purchase was acknowledged
Creation timestamp
product object
Product SKU
[
{
"id": "id1234",
"purchaseState": "Purchased",
"quantity": 1,
"purchaseTime": "2021-09-20T00:40:56.000Z",
"obfuscatedAccountId": "abcd1234",
"obfuscatedProfileId": "efgh5678",
"developerPayload": "payload",
"orderId": "order1234",
"applicationId": "com.example.app",
"purchaseToken": "purchaseToken1234",
"productId": "prod1234",
"userId": "user1234",
"organizationId": "org1234",
"deviceId": "device1234",
"androidPlatformId": "platform1234",
"consumedAt": "2021-09-20T00:40:56.000Z",
"updatedAt": "2021-09-20T00:40:56.000Z",
"acknowledgedAt": "2021-09-20T00:40:56.000Z",
"createdAt": "2021-09-20T00:40:56.000Z",
"product": {
"sku": "product_sku_1234"
}
}
]