I assure you that I used the same secret key here to use the POST customer endpoint but I cannot use the endpoint. This is crucial for our app since we will be integrating pay-and-save.
It seems you may be referring to the error ‘Invalid API key’ when using your secret key with the Create Customer endpoint. This endpoint requires a valid sandbox SECRET KEY (sk-…) generated via Maya Manager 1.0. Here are the steps to resolve this:
-
Verify your environment: Ensure you are using a sandbox API key (not a production key). Sandbox keys must be generated via Maya Manager 1.0 Sandbox, not Maya Business Manager.
-
Confirm key type: The Create Customer endpoint requires the SECRET KEY (sk-…), not the public key. Double-check that you are using the correct key.
-
Check authentication format: The Authorization header must be formatted as:
- Username:
sk-xxxx(your secret key) - Password: (leave blank)
- Encode the string
sk-xxxx:using Base64 - Header:
Authorization: Basic <base64-encoded-string>
Example:
Authorization: Basic c2stU0t4eHg6 - Username:
-
Re-generate your key: If the key is expired, corrupted, or incorrectly generated, go to Maya Manager 1.0 Sandbox > API Keys > Generate a new secret key. Copy it immediately and update your integration.
-
Test with sandbox credentials: As a temporary test, use the default sandbox secret key from the Sandbox Credentials and Cards to confirm the endpoint works. If it does, your generated key is the issue.
If the problem persists, check the Sandbox Health Page to ensure the service is operational. If all else fails, contact your Maya Relationship Manager to verify your sandbox account status and key permissions.
For Sandbox concerns and other technical implementation inquiries, please get in touch with us via:
- Sandbox Health Page: Check real-time service status updates.
- Maya Developer Hub Service Desk: File
a ticket in Sandbox.
To Know More:
We value your input and would love to hear your insights. Please submit you feedback here.
Hi @Bran_nacario, on the merchant drop-down, do you only have one product? Example checkout, pay with maya, etc.
Because the generated API keys for Maya Checkout can’t be used for other endpoints.

