Skip to main content

Creates a new purchase

POST 

/organizations/:organizationId/projects/:projectId/platforms/android/devices/:deviceId/purchases

Creates a new purchase

Request

Path Parameters

    organizationId stringrequired
    projectId stringrequired
    deviceId stringrequired

Body

required
    purchaseState stringrequired

    Possible values: [PURCHASED, CANCELED, PENDING]

    The state of the purchase

    quantity numberrequired

    Quantity of items purchased

    purchaseTime numberrequired

    The time the purchase was made

    obfuscatedAccountId stringrequired

    Obfuscated account ID

    obfuscatedProfileId stringrequired

    Obfuscated profile ID

    developerPayload stringrequired

    Developer payload

    orderId stringrequired

    Order ID

    applicationId stringrequired

    The applicationId associated with the app, also referred to as packageName.

    token stringrequired

    Token

    acknowledged booleanrequired

    Acknowledged status

    productIds string[]required

    List of product IDs

    organizationId stringrequired

    Organization ID

    projectId stringrequired

    Project ID

    productType stringrequired

    Possible values: [subs, inapp]

    Product type

    deviceId stringrequired

    Device ID

Responses

Create a new purchase

Schema
  • Array [
  • id stringrequired

    ID

    purchaseState stringrequired

    Possible values: [PURCHASED, CANCELED, PENDING]

    The state of the purchase

    quantity numberrequired

    Quantity of items purchased

    purchaseTime date-timerequired

    The time the purchase was made

    obfuscatedAccountId stringrequired

    Obfuscated account ID

    obfuscatedProfileId stringrequired

    Obfuscated profile ID

    developerPayload stringrequired

    Developer payload

    orderId stringrequired

    Order ID

    applicationId stringrequired

    The applicationId associated with the app, also referred to as packageName.

    purchaseToken stringrequired

    Purchase token

    productId stringrequired

    Product ID

    userId stringrequired

    User ID

    organizationId stringrequired

    Organization ID

    deviceId stringrequired

    Device ID

    androidPlatformId stringrequired

    Android platform ID

    consumedAt date-timerequired

    The time the purchase was consumed

    updatedAt date-timerequired

    The time the purchase was updated

    acknowledgedAt date-timerequired

    The time the purchase was acknowledged

    createdAt date-timerequired

    Creation timestamp

    product object
    sku stringrequired

    Product SKU

  • ]
Loading...