Skip to main content

Create purchase

POST 

/v1/client/android/purchases

Create purchase

Request

Body

required

Purchase Details

    productType SkuTyperequired

    Possible values: [inapp, subs]

    The type of product.

    productIds string[]required

    Array of product IDs.

    oldProductId stringrequired

    The old product ID.

    billingFlowParams object
    oldPurchaseToken stringrequired

    Old Purchase Token

    offerTokens string[]required

    For subscription purchases, the offer tokens associated with the purchase.

    applicationId stringrequired

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

    obfuscatedAccountId stringrequired

    Obfuscated account ID

    obfuscatedProfileId stringrequired

    Obfuscated profile ID

    developerPayload stringrequired

    Developer payload

    purchaseState stringrequired

    Possible values: [PURCHASED, CANCELED, PENDING]

    Default value: PURCHASED

    The initial state of the purchase.

    artifactId stringrequired

    The artifactId of the library used to make the purchase (optional)

    artifactVersion stringrequired

    The version of the library used to make the purchase (optional)

Responses

Purchase created successfully

Schema
    purchases object[]required
  • Array [
  • purchase stringrequired
    signature stringrequired
  • ]
Loading...