---
title: ConsumptionRequest
framework: appstoreserverapi
role: symbol
role_heading: Object
path: appstoreserverapi/consumptionrequest
---

# ConsumptionRequest

The request body that contains consumption information for an In-App Purchase.

## Declaration

```data
object ConsumptionRequest
```

## Properties

customerConsented: (Required) A Boolean value of true or false that indicates whether the customer consented to provide consumption data. consumptionPercentage: An integer that indicates the percentage of the In-App Purchase the customer consumed, in milliunits. deliveryStatus: (Required)  A value that indicates whether the app successfully delivered an In-App Purchase that works properly. refundPreference: A value that indicates your preference, based on your operational logic, as to whether the App Store should grant the refund. sampleContentProvided: (Required)  A Boolean value of true or false that indicates whether you provided, prior to its purchase, a free sample or trial of the content, or information about its functionality.

## Discussion

Discussion Use ConsumptionRequest to provide information about the customer’s In-App Purchase when you call the Send Consumption Information endpoint. note: The App Store server rejects requests that have a customerConsented value other than true by returning an HTTP 400 error with an InvalidCustomerConsentedError. You can provide consumption information for any type of product: consumable, non-consumable, non-renewing subscription, and auto-renewable subscription. Consider the following constraints when providing an optional refundPreference: The system supports the GRANT_FULL and DECLINE values for all product types. If you choose GRANT_PRORATED for an auto-renewable subscription, don’t include a consumptionPercentage. The system automatically calculates the percentage. If the deliveryStatus isn’t DELIVERED, set the consumptionPercentage to 0; otherwise the request fails with an error.

## Topics

### Consumption data types

- [customerConsented](appstoreserverapi/customerconsented.md)
- [consumptionPercentage](appstoreserverapi/consumptionpercentage.md)
- [deliveryStatus](appstoreserverapi/deliverystatus.md)
- [refundPreference](appstoreserverapi/refundpreference.md)
- [sampleContentProvided](appstoreserverapi/samplecontentprovided.md)

## See Also

### Consumption information

- [Send Consumption Information](appstoreserverapi/send-consumption-information.md)
