Get Transaction Info
Get information about a single transaction for your app.
URL
GET https://api.storekit.apple.com/inApps/v1/transactions/{transactionId}Sandbox URL
GET https://api.storekit-sandbox.apple.com/inApps/v1/transactions/{transactionId}Path Parameters
| Name | Type | Description |
|---|---|---|
transactionId Required | transactionId | The identifier of a transaction that belongs to the customer, and which may be an original transaction identifier (originalTransactionId). |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | TransactionInfoResponse | Request succeeded. |
| 400 | Bad Request Content-Type: application/json | (InvalidTransactionIdError | AppTransactionIdNotSupportedError) | 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 | The transaction identifier wasn’t found. |
| 429 | Content-Type: application/json | RateLimitExceededError | The request exceeded the rate limit. |
| 500 | Internal Server Error Content-Type: application/json | (GeneralInternalError | GeneralInternalRetryableError) | Server error. Try again later. |
Mentioned in
Discussion
Use this endpoint to get transaction information for any transaction identifier, including original transaction identifiers. This endpoint supports all in-app purchase types, including consumable, non-consumable, non-renewing subscriptions, and auto-renewable subscriptions. It also supports transactions that your app marked as finished using finish() or finishTransaction(_:) in StoreKit.