Mokėjimai

GET https://p9.lt/api/payments/
curl --request GET \
--url 'https://p9.lt/api/payments/' \
--header 'Authorization: Bearer {api_key}' \
Parametrai Informacija Aprašymas
page Pasirinktinai Sveikasis skaičius Puslapio numeris, iš kurio norite gauti rezultatus. Pagal nutylėjimą yra 1.
results_per_page Pasirinktinai Sveikasis skaičius Kiek rezultatų norite matyti puslapyje. Leidžiamos reikšmės yra: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Numatytoji reikšmė yra 25
{ "data": [ { "id": 1, "plan_id": 1, "processor": "stripe", "type": "one_time", "frequency": "monthly", "email": "example@example.com", "name": null, "total_amount": "4.99", "currency": "USD", "status": true, "date": "2021-03-25 15:08:58" }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://p9.lt/api/payments?&page=1", "last": "https://p9.lt/api/payments?&page=1", "next": null, "prev": null, "self": "https://p9.lt/api/payments?&page=1" } }
GET https://p9.lt/api/payments/{payment_id}
curl --request GET \
--url 'https://p9.lt/api/payments/{payment_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "plan_id": 1, "processor": "stripe", "type": "one_time", "frequency": "monthly", "email": "example@example.com", "name": null, "total_amount": "4.99", "currency": "USD", "status": true, "date": "2021-03-25 15:08:58" } }