Get App Transaction Info
Get a customer’s app transaction information for your app.
URL
GET https://api.storekit.apple.com/inApps/v1/transactions/appTransactions/{anyTransactionId}Sandbox URL
GET https://api.storekit-sandbox.apple.com/inApps/v1/transactions/appTransactions/{anyTransactionId}Path Parameters
| Name | Type | Description |
|---|---|---|
anyTransactionId Required | anyTransactionId | Any originalTransactionId, transactionId or appTransactionId that belongs to the customer for your app. |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | AppTransactionInfoResponse | Request succeeded. |
| 400 | Bad Request Content-Type: application/json | InvalidTransactionIdError | Invalid request. |
| 401 | Unauthorized | The JSON Web Token (JWT) in the authorization header is invalid. For more information, see Generating JSON Web Tokens for API requests. | |
| 404 | Not Found Content-Type: application/json | (TransactionIdNotFoundError | AppTransactionDoesNotExistError) | Check the specific error message for further information. |
| 429 | Content-Type: application/json | RateLimitExceededError | The request exceeded the rate limit. For more information, see Identifying rate limits. |
| 500 | Internal Server Error Content-Type: application/json | (GeneralInternalError | GeneralInternalRetryableError) | Server error. Try again later. |
Mentioned in
Discussion
Use this endpoint to get the app transaction information for a customer of your app. You can provide any transaction ID that belongs to the customer to get their app transaction information.
App transaction information represents the customer’s purchase of the app, cryptographically signed by the App Store. The App Store generates a single, globally unique appTransactionId for each Apple Account that downloads your app and for each family group member for apps that support Family Sharing. The appTransactionId value remains the same for the same Apple Account and app if the customer redownloads the app on any device, receives a refund, repurchases the app, or changes the storefront. For apps that support Family Sharing, the appTransactionId is unique for each family group member.
App transaction information includes details about the app the customer purchased, such as its bundleID, original version, original purchase date, and more. You can also get app transaction information in your app from StoreKit, using AppTransaction.