publishable_key_not_allowed
A publishable (pk_) key was used where a secret key is required.
| HTTP status | type | Retry the same request? |
|---|---|---|
| 403 | permission_error | after a change |
Why it happens
Every /v1 endpoint that reads or moves money needs the secret key.
What to do
Call the API from your server with your sk_live_ key.
Example response
{
"error": {
"type": "permission_error",
"code": "publishable_key_not_allowed",
"message": "A human-readable explanation. Do not parse it.",
"doc_url": "https://docs.skanpay.website/errors/publishable_key_not_allowed",
"request_id": "req_01J9Z3K8Q4W6XK2M7N5P0R3T8V"
}
}