Skip to content

Commit 1f23501

Browse files
committed
docs(readme): add notes to app store server api on readme
1 parent b3f544b commit 1f23501

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ func main() {
101101

102102
### In App Store Server API
103103

104+
**Note**
105+
- The App Store Server API differentiates between a sandbox and a production environment based on the base URL:
106+
- Use https://api.storekit.itunes.apple.com/ for the production environment.
107+
- Use https://api.storekit-sandbox.itunes.apple.com/ for the sandbox environment.
108+
- If you're unsure about the environment, follow these steps:
109+
- Initiate a call to the endpoint using the production URL. If the call is successful, the transaction identifier is associated with the production environment.
110+
- If you encounter an error code `4040010`, indicating a `TransactionIdNotFoundError`, make a call to the endpoint using the sandbox URL.
111+
- If this call is successful, the transaction identifier is associated with the sandbox environment. If the call fails with the same error code, the transaction identifier doesn't exist in either environment.
112+
104113
- GetTransactionInfo
105114

106115
```go

0 commit comments

Comments
 (0)