Abonamente
Vizualizeaza abonamentele asociate paylink-urilor tale. Necesita autentificare.
GET /subscriptions
Listeaza abonamentele pentru vanzator (abonamente pe paylink-urile tale).
curl "https://api.paylinks.ro/api/v1/subscriptions" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-Currency: RON"
Raspuns (200):
{
"items": [
{
"id": "sub-001",
"status": "ACTIVE",
"amount": 2999,
"currency": "RON",
"interval": "month",
"customerEmail": "[email protected]",
"currentPeriodStart": "2026-02-15T00:00:00.000Z",
"currentPeriodEnd": "2026-03-15T00:00:00.000Z",
"cancelAtPeriodEnd": false,
"createdAt": "2026-02-15T10:00:00.000Z",
"payLink": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Monthly Coaching",
"serviceType": "SERVICE"
},
"customer": {
"id": "cm7v3x8h00001j1s0z0o2h4r4",
"email": "[email protected]",
"name": "Ion Popescu"
}
}
]
}
Statusuri abonament
| Status | Descriere |
|---|---|
ACTIVE | Abonamentul este activ si se factureaza |
CANCELED | Anulat, activ pana la sfarsitul perioadei |
PAST_DUE | Plata esuata, reincercare in curs |