<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "AppStoreServerAPI",
  "identifier" : "/documentation/AppStoreServerAPI/environment",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "App Store Server API"
    ],
    "preciseIdentifier" : "data:app_store_server_api:environment"
  },
  "title" : "environment"
}
-->

# environment

The server environment, either sandbox or production.

```
string environment
```

## Discussion

You receive data from the [`App Store Server API`](/documentation/AppStoreServerAPI) for the sandbox environment when you send test requests to the endpoints using the sandbox base URL:

```javascript
https://api.storekit-sandbox.apple.com/
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)