app-store-server-library 4.0.0

The Rust server library for the App Store Server API, App Store Server Notifications and Advanced Commerce API
Documentation
error_name|error_code|error_message
AlreadyRefundedError|4030021|The transaction was already refunded.
AtLeastOneItemError|4000160|When included, provide at least one item in items.
AtLeastOneOfDisplayNameOrDescriptionError|4000165|Provide either the displayName or a description.
BillingCycleResetWithEffectiveLaterError|4000148|Bill cycle reset with effective later.
ChangeItemNotFoundError|4000146|The targeted item in changeItems wasn't found.
CurrentSKULengthExceededError|4000160|When included, provide at least one item in items.
DescriptionLengthExceededError|4000088|Exceeds the maximum length of the description field.
DisplayNameLengthExceededError|4000089|Exceeds the maximum length of the displayName field.
EmptyAddChangeItemsError|4000139|The addItems and changeItems entries cannot be empty.
GeneralInternalError|5000000|An unknown error occurred.
GeneralInternalRetryableError|5000001|An unknown error occurred. Please try again.
InactiveACASubError|4030015|The subscription is not active.
InsufficientFundsError|4030020|Insufficient funds for refund.
InvalidAmountError|4000132|The amount is invalid.
InvalidAppAccountTokenError|4000033|The appAccountToken field must contain a valid UUID or an empty string.
InvalidChangeReasonError|4000125|The change reason is invalid.
InvalidConsistencyTokenError|4000082|The consistencyToken value is invalid.
InvalidCurrencyError|4000053|The currency value is invalid.
InvalidDescriptionError|4000119|The description is invalid.
InvalidDisplayNameError|4000118|The displayName is invalid.
InvalidOfferPeriodCountError|4000129|The offer periodCount is invalid.
InvalidOfferPeriodError|4000128|The offer period is invalid.
InvalidOfferPriceError|4000152|The subscription offer price is higher than the regular subscription price.
InvalidOfferReasonError|4000126|The offer reason is invalid.
InvalidOperationError|4000172|The operation is invalid.
InvalidPreviousSubscriptionError|4000113|The previous subscription targeted is invalid.
InvalidPreviousTransactionIDError|4000096|Previous original transaction id is invalid.
InvalidProductChangesError|4000115|Product changes are invalid.
InvalidProductError|4000121|The requested product to change doesn't exist.
InvalidProratedPriceError|4000151|The prorated price was invalid.
InvalidRefundReasonError|4000124|The refundReason is invalid.
InvalidRefundTypeError|4000123|The refundType is invalid.
InvalidRenewalPeriodError|4000130|The renewal period is invalid.
InvalidRenewalPriceError|4000131|The renewal price is invalid.
InvalidRequestReferenceIDError|4000081|The requestReferenceId value is invalid.
InvalidSalableDurationError|4000117|The salable duration is invalid.
InvalidSalableError|4000116|The targeted salable isn't configured as a generic salable.
InvalidSignatureError|4000174|The signature is invalid.
InvalidSKUError|4000122|The SKU was invalid.
InvalidStorefrontError|4000028|The storefront value is invalid.
InvalidTargetProductIDError|4000167|The targetProductID value is invalid.
InvalidTaxProductCodeError|4000127|The taxCode is invalid.
InvalidTransactionIdError|4000006|The transactionId is invalid.
ItemLimitExceededError|4000179|The number of items in subscription exceeds the limit.
MalformedPayloadError|4000173|The payload is malformed.
MisalignedBillingCycleError|4000147|The request contains a billing period that doesn't align with the subscription's billing cycle.
MismatchedStorefrontError|4000133|The storefronts mismatch.
MissingPricingConfigForStorefrontError|4000134|Pricing isn't configured for the storefront.
MissingUpdatedItemsWithPeriodChangeError|4000140|All items must be updated on a period change.
MoreItemsThanAllowedError|4000136|More items were provided than allowed.
MoreOffersThanAllowedError|4000137|More offers were provided than allowed.
MultipleOperationsOnSingleSKUError|4000143|Multiple operations on a single SKU isn't allowed.
MultiplePricesError|4000150|Prorated price and offer price are mutually exclusive.
NegativePriceError|4000086|The price field must contain a positive number.
NegativeProratedPriceError|4000091|Exceeds the maximum length of the price field.
NegativeRefundAmountError|4000154|The refundAmount must be a positive number.
NullAdvancedCommerceDataError|4000171|The required field, advancedCommerceData, was null.
NullCurrencyError|4000098|The required field, currency, is missing.
NullCurrentSKUError|4000169|The required field, currentSKU, is missing.
NullDescriptionError|4000107|The required field, description, is missing.
NullDescriptorsError|4000103|The required field, descriptors, is missing.
NullDisplayNameError|4000106|The required field, displayName, is missing.
NullEffectiveError|4000111|The required field, effective, is missing.
NullItemError|4000102|The required field, item, is missing.
NullItemsError|4000101|The required field, items, is missing.
NullNewSKUError|4000112|The required field, SKU in changeItems, is missing.
NullOfferPeriodError|4000092|The required field, offer period, is missing.
NullPeriodCountError|4000093|The required field, periodCount, is missing.
NullPeriodError|4000104|The required field, period, is missing.
NullPriceError|4000109|The required field, price, is missing.
NullReasonError|4000095|The required field, reason, is missing.
NullRefundAmountError|4000153|The refundAmount value is invalid. 
NullRefundReasonError|4000156|The required field, refundReason, is missing.
NullRefundRiskingError|4000159|The required field, refundRiskingPreference, is missing.
NullRefundTypeError|4000157|The required field, refundType, is missing.
NullRequestInfoError|4000079|The required field, requestInfo, is missing.
NullRequestReferenceIDError|4000080|The required field, requestReferenceId, is missing.
NullRetainBillingCycleError|4000110|The required field, retainBillingCycle, is missing.
NullSKUError|4000105|The required field, SKU, is missing.
NullStorefrontError|4000100|The required field, storefront, is missing.
NullTargetProductIDError|4000166|The required field, targetProductID, is missing.
NullTaxCodeError|4000099|The required field, taxCode, is missing.
NullTransactionIdError|4000085|The required field, transactionId, is missing.
NullVersionError|4000083|The required field, version, is missing.
OfferPreventsItemMidCycleChangeError|4000177|An existing offer prevents changes to the item mid-cycle.
OneItemNeededInModifyError|4000063|At least one type of change must be provided in a modify subscription request.
OperationNotAllowedError|4000135|The operation isn't allowed.
PartialSimulateRefundDeclineError|4000184|If one item has a refundReason value of SIMULATE_REFUND_DECLINE, all items must have a refundReason value of SIMULATE_REFUND_DECLINE.
PendingChangesMismatchError|4000180|Pending subscription changes must specify a renewalItem, and if there are no pending changes, a renewalItem cannot be specified.
PendingRefundError|4000181|The transaction has pending refunds.
PeriodChangeEffectiveConflictError|4000142|A period change at next cycle conflicts with addition at the current period.
PeriodChangeImmediateWithEffectiveAtNextBillingCycleError|4000149|Period change immediately with effective later.
PeriodCountNotPositiveError|4000094|Period count must be a positive number.
PeriodResetWithRetainBillingCycleError|4000141|Period reset conflicts with retaining billing cycle.
PriceChangeNotSupportedThroughModifyItemsError|4000178|Changing the price isn’t supported as part of a modify items request.
ProductAlreadyExistsError|4000114|Provided SKU is already owned.
ProductNotEligibleError|4030023|The product isn't eligible for the requested operation.
ProductNotFoundError|4040016|Product not found.
ProductNotOwnedError|4030013|The customer doesn't own the product.
ProratedOnlyLatestTransactionError|4000182|Only requests against the latest transaction can have a PRORATED refundType value.
RateLimitExceededError|4290000|Rate limit exceeded.
RefundAmountWithoutCustomError|4000155|Can't provide the refund amount because the refundType isn't CUSTOM.
RemovalAllNotAllowedError|4000168|The active subscription must contain at least one item and cannot be completely empty.
RemoveAllItemsNotAllowedError|4000168|The active subscription must contain at least one item and cannot be completely empty.
RemoveItemNotFoundError|4000145|A product in removeItems wasn't found for the given subscription.
RemoveItemsWithoutAddOrChangeItemsError|4000144|The removeItems object was present without addItems or changeItems.
RepeatedRequestReferenceIdError|4000097|The requestReferenceId was repeated.
RevokeOnInactiveSubscriptionError|4000186|Only active subscriptions are revocable.
SimulateRefundDeclineOnlyInSandboxError|4000158|The type SIMULATE_REFUND_DECLINE is only valid in Sandbox.
SKULengthExceededError|4000087|Exceeds the maximum length of the SKU field.
StorefrontChangeError|4030022|The storefront changed.
SubscriptionAlreadyActiveError|4030011|The subscription is already active, and cannot be reactivated or renewed at this time.
SubscriptionAlreadyExistsError|4030009|The subscription already exists.
SubscriptionAlreadyMigratedError|4000176|The subscription was already migrated.
SubscriptionDoesNotExistError|4030008|The subscription doesn't exist.
SubscriptionNotEligibleError|4030010|The subscription isn't eligible for the requested changes.
TransactionIdNotFoundError|4040010|Transaction id not found.
TransactionNotRefundableError|4030024|The transaction is not refundable.
TransactionCannotBeRefundedContactSupportError|4030025|The transaction can't be refunded; customer can contact Apple Support for assistance.
UnauthorizedError|4010000|Unauthorized.
UnexpectedVersionError|4000084|The value of version is invalid.