If you receive the following error when calling the Soracom API:
{
"code": "SEM0037",
"message": "Payment method is not registered"
}
This error generally indicates one of two issues: either you are accessing an API endpoint that does not match your account's coverage region, or a valid payment method has not yet been registered to your account.
1. Incorrect API Endpoint (Most Common)
This error frequently occurs when you attempt to access resources using an API endpoint that does not match your account's coverage region. Even if you have a valid credit card registered, using the wrong endpoint will result in the system failing to locate your payment information.
Soracom provides separate API endpoints for Global and Japan coverage regions. Ensure that you are using the correct endpoint for your account:
| Coverage Region | API Endpoint |
|---|---|
| Global | https://g.api.soracom.io |
| Japan |
https://api.soracom.io or https://jp.api.soracom.io
|
For more information on endpoints and authentication, refer to the Soracom API Usage Guide.
2. Missing Payment Information
If you are using the correct endpoint and still receive this error, your account may not have a valid credit card registered. As Soracom services are post-paid, a credit card is required to begin using services and to execute certain API calls.
How to Register a Payment Method
Note: Only Root users can register or update payment settings. SAM users cannot access or change payment information.
- Login to the User Console using your email address and password.
- Click your email address at the top right corner, and select Payment settings.
- Click New payment method.
- Fill in your credit card information and click Submit.
For detailed instructions, please refer to the Payment Settings documentation.