Get Project Status
GET https://api.paysera.com/checkout-project/integration/v1/project
Read the calling project's status and whether it collects live payments, test payments, or none. Use it to decide whether to offer Paysera at checkout and whether to show a Test Mode notice.
Authorization​
This endpoint requires an OAuth2 Bearer token. The project is taken from the token, so the call carries no project in its path. See the Authentication guide.
Response​
| Field | Type | Description |
|---|---|---|
project_id | string (UUID) | Project identifier, taken from the token |
status | string | Project lifecycle status, see Project status values |
payment_collection_status | string | Whether the project collects payments, see Payment collection status values |
Project status values​
status is one of draft, in_review, needs_correction, activated, frozen, blocked, suspended, deleted.
New values may be added. Handle an unknown value as a status your integration does not support yet, rather than failing.
Payment collection status values​
| Value | Meaning |
|---|---|
enabled | The project collects live payments |
disabled | The project collects no payments |
test_mode | The project is in Test Mode and accepts test payments only |
New values may be added. Treat an unknown value as disabled: the project does not accept payments.
Notes​
- Read
payment_collection_statusto decide whether the project can take payments;statusalone does not tell you that. - Returns
401if the token is missing, invalid, or carries no project. - Returns
404if the project from the token does not exist.
AUTHORIZATION: HTTP
REQUEST
Base URL
https://api.paysera.com
RESPONSE
Project status retrieved
{
"project_id": "b7c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
"status": "activated",
"payment_collection_status": "enabled"
}