<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "AdvancedCommerceAPI",
  "identifier" : "/documentation/AdvancedCommerceAPI/RequestInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Advanced Commerce API"
    ],
    "preciseIdentifier" : "data:advanced-commerce-api:RequestInfo"
  },
  "title" : "RequestInfo"
}
-->

# RequestInfo

The metadata to include in server requests.

```
object RequestInfo
```

## Discussion

You provide the `RequestInfo` in your Advanced Commerce API server requests to uniquely identify your requests. You also have the option to provide additional data in the `RequestInfo` object.

### Include the app account token, optionally

You can include an `appAccountToken` in `RequestInfo` to associate an account on your system with the purchase. The App Store returns the same `appAccountToken` value in the transaction information.

If you include `appAccountToken` in the `RequestInfo`, you don’t need to include the app account token as a purchase option by adding <doc://com.apple.documentation/documentation/StoreKit/Product/PurchaseOption/appAccountToken(_:)> to the product purchase options (<doc://com.apple.documentation/documentation/StoreKit/Product/purchase(options:)>).

> Important: If you do include `appAccountToken` in the `purchase(options:)`, you must include the same app account token value in the `RequestInfo`; otherwise, the request fails.

For more information about sending API requests from your app, see <doc://com.apple.documentation/documentation/StoreKit/sending-advanced-commerce-api-requests-from-your-app>.

### Include the consistency token, optionally

The consistency token helps prevent unintended operations that might occur when the server gets multiple or overlapping requests for the same subscription.

Subscriptions receive a new consistency token in the <doc://com.apple.documentation/documentation/AppStoreServerAPI/advancedCommerceRenewalInfo> object of the [`JWSRenewalInfo`](/documentation/AdvancedCommerceAPI/JWSRenewalInfo) each time the system updates the subscrpition renewal information. Include the consistency token when you use the [`SubscriptionCreateRequest`](/documentation/AdvancedCommerceAPI/SubscriptionCreateRequest) operation to resubscribe to the subscription and provide the `previousTransactionID`.

Don’t include a consistency token when:

- You haven’t received a consistency token.
- You’re using the [`OneTimeChargeCreateRequest`](/documentation/AdvancedCommerceAPI/OneTimeChargeCreateRequest) operation.
- You’re using the [`SubscriptionCreateRequest`](/documentation/AdvancedCommerceAPI/SubscriptionCreateRequest) operation for an initial subscription purchase.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)