Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.appcharge.com/llms.txt

Use this file to discover all available pages before exploring further.

This document outlines all statuses that might be received from the SDK and their relevant HTTP server status mapping, as received from the server, if it exists.

Available Status Codes

The following status codes apply to Unity 2.5.0, Android 1.6.0, iOS 1.8.0, and above:
SDK Status CodeStatus NameDescription
1000SERVER_ERRORAn internal server error occurred because the server isn’t responding or is down.
1001GENERAL_SERVER_ERRORA general server error occurred.
1007TOKEN_VALIDATION_ERRORCheckout token validation failed due to a token mismatch.
2000BOOT_INITIALIZATION_ERRORFailed to initialize checkout due to configuration issues not covered by another initialization error.
2001BOOT_ENVIRONMENT_ERRORInvalid, missing, or empty environment configuration.
2002BOOT_TOKEN_ERRORInvalid, missing, or empty checkout token.
2003BOOT_CUSTOMER_ID_ERRORMissing or empty Customer ID.
2004REDIRECT_URL_CONFIG_ERRORInvalid redirect URL configuration. Relevant for iOS only.
3000BROWSER_CLOSEDThe player closed the browser using OS-level controls.
3002CHARGE_CANCELEDPurchase canceled because the player closed the checkout interface.
3003CHARGE_FAILEDPurchase failed on the server side.
3004VALIDATE_ORDER_TIMEOUTTimeout during order validation.
3005PURCHASE_NOT_FOUNDCouldn’t find and validate the order.
3006VALIDATE_ORDER_ENV_FAILEDThe client-side SDK configuration, Publisher Token, and/or Checkout Token don’t match the server-side session environment.
3007CUSTOMER_VALIDATION_FAILEDCustomer ID validation failed because the purchase Customer ID in the order response doesn’t match the configured customer ID in the SDK.
4000BROWSER_DISABLED_OR_NOT_AVAILABLECouldn’t find any available browser on the device.
4002BROWSER_COULD_NOT_BE_OPENEDThe browser can’t be opened due to a malformed parsed URL.
8000INVALID_ARGUMENT_PURCHASE_IDOpen checkout failed because the Purchase ID argument is invalid.
8001INVALID_ARGUMENT_PARSED_URLOpen checkout failed because the parsed URL argument is invalid.
9001NO_INTERNET_CONNECTIONThe request can’t be handled due to no internet connectivity.
9999UNKNOWN_ERRORAn unknown error occurred.
Checkout session expiry isn’t returned as a separate SDK status. If checkout is opened with an expired checkout session, the browser loads and displays “Something went wrong.” The SDK currently treats this as a purchase cancellation because it can’t distinguish between a canceled purchase and an expired session.