#[repr(i64)]pub enum APIError {
Show 60 variants
GeneralBadRequest = 4_000_000,
InvalidAppIdentifier = 4_000_002,
InvalidRequestRevision = 4_000_005,
InvalidTransactionId = 4_000_006,
InvalidOriginalTransactionId = 4_000_008,
InvalidExtendByDays = 4_000_009,
InvalidExtendReasonCode = 4_000_010,
InvalidRequestIdentifier = 4_000_011,
StartDateTooFarInPast = 4_000_012,
StartDateAfterEndDate = 4_000_013,
InvalidPaginationToken = 4_000_014,
InvalidStartDate = 4_000_015,
InvalidEndDate = 4_000_016,
PaginationTokenExpired = 4_000_017,
InvalidNotificationType = 4_000_018,
MultipleFiltersSupplied = 4_000_019,
InvalidTestNotificationToken = 4_000_020,
InvalidSort = 4_000_021,
InvalidProductType = 4_000_022,
InvalidProductId = 4_000_023,
InvalidSubscriptionGroupIdentifier = 4_000_024,
InvalidExcludeRevoked = 4_000_025,
InvalidInAppOwnershipType = 4_000_026,
InvalidEmptyStorefrontCountryCodeList = 4_000_027,
InvalidStorefrontCountryCode = 4_000_028,
InvalidRevoked = 4_000_030,
InvalidStatus = 4_000_031,
InvalidAccountTenure = 4_000_032,
InvalidAppAccountToken = 4_000_033,
InvalidConsumptionStatus = 4_000_034,
InvalidCustomerConsented = 4_000_035,
InvalidDeliveryStatus = 4_000_036,
InvalidLifetimeDollarsPurchased = 4_000_037,
InvalidLifetimeDollarsRefunded = 4_000_038,
InvalidPlatform = 4_000_039,
InvalidPlayTime = 4_000_040,
InvalidSampleContentProvided = 4_000_041,
InvalidUserStatus = 4_000_042,
InvalidTransactionNotConsumable = 4_000_043,
InvalidTransactionTypeNotSupported = 4_000_047,
AppTransactionIdNotSupportedError = 4_000_048,
InvalidAppAccountTokenUUID = 4_000_183,
FamilyTransactionNotSupported = 4_000_185,
TransactionIdNotOriginalTransactionId = 4_000_187,
SubscriptionExtensionIneligible = 4_030_004,
SubscriptionMaxExtension = 4_030_005,
FamilySharedSubscriptionExtensionIneligible = 4_030_007,
AccountNotFound = 4_040_001,
AccountNotFoundRetryable = 4_040_002,
AppNotFound = 4_040_003,
AppNotFoundRetryable = 4_040_004,
OriginalTransactionIdNotFound = 4_040_005,
OriginalTransactionIdNotFoundRetryable = 4_040_006,
ServerNotificationUrlNotFound = 4_040_007,
TestNotificationNotFound = 4_040_008,
StatusRequestNotFound = 4_040_009,
TransactionIdNotFound = 4_040_010,
RateLimitExceeded = 4_290_000,
GeneralInternal = 5_000_000,
GeneralInternalRetryable = 5_000_001,
}Expand description
Enum representing different API errors with associated status codes.
Variants§
GeneralBadRequest = 4_000_000
An error that indicates an invalid request. Documentation
InvalidAppIdentifier = 4_000_002
An error that indicates an invalid app identifier. Documentation
InvalidRequestRevision = 4_000_005
An error that indicates an invalid request revision. Documentation
InvalidTransactionId = 4_000_006
An error that indicates an invalid transaction identifier. Documentation
InvalidOriginalTransactionId = 4_000_008
An error that indicates an invalid original transaction identifier. Documentation
InvalidExtendByDays = 4_000_009
An error that indicates an invalid extend-by-days value. Documentation
InvalidExtendReasonCode = 4_000_010
An error that indicates an invalid reason code. Documentation
InvalidRequestIdentifier = 4_000_011
An error that indicates an invalid request identifier. Documentation
StartDateTooFarInPast = 4_000_012
An error that indicates that the start date is earlier than the earliest allowed date. Documentation
StartDateAfterEndDate = 4_000_013
An error that indicates that the end date precedes the start date, or the two dates are equal. Documentation
InvalidPaginationToken = 4_000_014
An error that indicates the pagination token is invalid. Documentation
InvalidStartDate = 4_000_015
An error that indicates the start date is invalid. Documentation
InvalidEndDate = 4_000_016
An error that indicates the end date is invalid. Documentation
PaginationTokenExpired = 4_000_017
An error that indicates the pagination token expired. Documentation
InvalidNotificationType = 4_000_018
An error that indicates the notification type or subtype is invalid. Documentation
MultipleFiltersSupplied = 4_000_019
An error that indicates the request is invalid because it has too many constraints applied. Documentation
InvalidTestNotificationToken = 4_000_020
An error that indicates the test notification token is invalid. Documentation
InvalidSort = 4_000_021
An error that indicates an invalid sort parameter. Documentation
InvalidProductType = 4_000_022
An error that indicates an invalid product type parameter. Documentation
InvalidProductId = 4_000_023
An error that indicates the product ID parameter is invalid. Documentation
InvalidSubscriptionGroupIdentifier = 4_000_024
An error that indicates an invalid subscription group identifier. Documentation
InvalidExcludeRevoked = 4_000_025
An error that indicates the query parameter exclude-revoked is invalid. Documentation
InvalidInAppOwnershipType = 4_000_026
An error that indicates an invalid in-app ownership type parameter. Documentation
InvalidEmptyStorefrontCountryCodeList = 4_000_027
An error that indicates a required storefront country code is empty. Documentation
InvalidStorefrontCountryCode = 4_000_028
An error that indicates a storefront code is invalid. Documentation
InvalidRevoked = 4_000_030
An error that indicates the revoked parameter contains an invalid value. Documentation
InvalidStatus = 4_000_031
An error that indicates the status parameter is invalid. Documentation
InvalidAccountTenure = 4_000_032
An error that indicates the value of the account tenure field is invalid. Documentation
InvalidAppAccountToken = 4_000_033
An error that indicates the value of the app account token is invalid. Documentation
InvalidConsumptionStatus = 4_000_034
An error that indicates the consumption status is invalid. Documentation
InvalidCustomerConsented = 4_000_035
An error that indicates the customer consented status is invalid. Documentation
InvalidDeliveryStatus = 4_000_036
An error that indicates the delivery status is invalid. Documentation
InvalidLifetimeDollarsPurchased = 4_000_037
An error that indicates the lifetime dollars purchased field is invalid. Documentation
InvalidLifetimeDollarsRefunded = 4_000_038
An error that indicates the lifetime dollars refunded field is invalid. Documentation
InvalidPlatform = 4_000_039
An error that indicates the platform parameter is invalid. Documentation
InvalidPlayTime = 4_000_040
An error that indicates the play time parameter is invalid. Documentation
InvalidSampleContentProvided = 4_000_041
An error that indicates the sample content provided parameter is invalid. Documentation
InvalidUserStatus = 4_000_042
An error that indicates the user status parameter is invalid. Documentation
InvalidTransactionNotConsumable = 4_000_043
An error that indicates the transaction is not consumable. Documentation
InvalidTransactionTypeNotSupported = 4_000_047
An error that indicates the transaction identifier represents an unsupported in-app purchase type.
AppTransactionIdNotSupportedError = 4_000_048
An error that indicates the endpoint doesn’t support an app transaction ID.
InvalidAppAccountTokenUUID = 4_000_183
An error that indicates the app account token value is not a valid UUID.
FamilyTransactionNotSupported = 4_000_185
An error that indicates the transaction is for a product the customer obtains through Family Sharing, which the endpoint doesn’t support.
TransactionIdNotOriginalTransactionId = 4_000_187
An error that indicates the endpoint expects an original transaction identifier.
SubscriptionExtensionIneligible = 4_030_004
An error that indicates the subscription doesn’t qualify for a renewal-date extension due to its subscription state. Documentation
SubscriptionMaxExtension = 4_030_005
An error that indicates the subscription doesn’t qualify for a renewal-date extension because it has already received the maximum extensions. Documentation
An error that indicates a subscription isn’t directly eligible for a renewal date extension because the user obtained it through Family Sharing. Documentation
AccountNotFound = 4_040_001
An error that indicates the App Store account wasn’t found. Documentation
AccountNotFoundRetryable = 4_040_002
An error response that indicates the App Store account wasn’t found, but you can try again. Documentation
AppNotFound = 4_040_003
An error that indicates the app wasn’t found. Documentation
AppNotFoundRetryable = 4_040_004
An error response that indicates the app wasn’t found, but you can try again. Documentation
OriginalTransactionIdNotFound = 4_040_005
An error that indicates an original transaction identifier wasn’t found. Documentation
OriginalTransactionIdNotFoundRetryable = 4_040_006
An error response that indicates the original transaction identifier wasn’t found, but you can try again. Documentation
ServerNotificationUrlNotFound = 4_040_007
An error that indicates that the App Store server couldn’t find a notifications URL for your app in this environment. Documentation
TestNotificationNotFound = 4_040_008
An error that indicates that the test notification token is expired or the test notification status isn’t available. Documentation
StatusRequestNotFound = 4_040_009
An error that indicates the server didn’t find a subscription-renewal-date extension request for the request identifier and product identifier you provided. Documentation
TransactionIdNotFound = 4_040_010
An error that indicates a transaction identifier wasn’t found. Documentation
RateLimitExceeded = 4_290_000
An error that indicates that the request exceeded the rate limit. Documentation
GeneralInternal = 5_000_000
An error that indicates a general internal error.
GeneralInternalRetryable = 5_000_001
An error response that indicates an unknown error occurred, but you can try again.