<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "AppStoreServerAPI",
  "identifier" : "/documentation/AppStoreServerAPI/revision",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "App Store Server API"
    ],
    "preciseIdentifier" : "data:app_store_server_api:revision"
  },
  "title" : "revision"
}
-->

# revision

A token you use in a query to request the next set of transactions for the customer.

```
string revision
```

## Discussion

The App Store server returns a `revision` value in each response to certain endpoints, such as [`Get Transaction History`](/documentation/AppStoreServerAPI/Get-Transaction-History) and [`Get Refund History`](/documentation/AppStoreServerAPI/Get-Refund-History). Use the `revision` value to get a set of paginated transactions.

The first time you call an endpoint, you don’t include a `revision` query parameter, and the API returns the customer’s first set of up to 20 transactions. If there are more transactions, the [`hasMore`](/documentation/AppStoreServerAPI/hasMore) value in the response is `true`. To get the next set of transactions, use the [`revision`](/documentation/AppStoreServerAPI/revision) value from the response in your subsequent call to the endpoint.

Consider storing the `revision` value from the last page of transactions, when the [`hasMore`](/documentation/AppStoreServerAPI/hasMore) value is `false`, with other customer account information.  Use it the next time you call the endpoint for the same customer, to avoid fetching transactions you’ve already received. For the [`Get Transaction History`](/documentation/AppStoreServerAPI/Get-Transaction-History) endpoint, store the `revision` value only if you request the transaction history in `ASCENDING` sort order.

---

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)