Skip to main content

Update a purchase by ID for a User

PUT 

/organizations/:organizationId/projects/:projectId/platforms/android/users/:userId/purchases/:purchaseId

Update a purchase by ID for a User

Request

Path Parameters

    organizationId stringrequired
    projectId stringrequired
    userId stringrequired
    purchaseId stringrequired

Body

required
    purchaseState stringrequired

    Possible values: [PURCHASED, CANCELED, PENDING]

    The state of the purchase

    acknowledgedAt date-timerequired

    The time the purchase was acknowledged

    consumedAt date-timerequired

    The time the purchase was consumed

Responses

Purchase updated successfully

Schema
    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...