This article explains what to check when an UNAUTHORIZED error occurs after switching from Test Mode to Live Mode.
Check these items first
- Confirm that you are using the merchant ID, API key, and API secret for Live Mode.
- Confirm that the API endpoint URL is for the production environment.
- Confirm that requests are sent from the source IP address registered when applying for the production environment.
- Confirm that the timestamp, HTTP method, path, and request body used to generate the signature match the actual request.
- If you use an SDK, confirm that the SDK environment setting is for Live Mode.
If you have not registered an IP address
The production environment uses IP address restrictions. If the source IP address used in the production environment has not been registered, request registration using the request form.
When contacting support, include the merchant ID or API key for Live Mode, the IP address to register, and the error details.
If UNAUTHORIZED occurs in Test Mode
If UNAUTHORIZED occurs in Test Mode, check the FAQ for Test Mode instead of this article.
Information to include when requesting investigation
- Merchant ID or API key
- Date and time when the error occurred
- API endpoint that was executed
- Full response returned by the PayPay API
- Source IP address used in the production environment
Related FAQs
テスト環境 / Test 本番環境 / Production エラー / Error 認証 / Authentication