پرداختهای حساب
GET https://linkcomposer.com/api/payments/
curl --request GET \
--url 'https://linkcomposer.com/api/payments/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkcomposer.com/api/payments/' \
--header 'Authorization: Bearer {api_key}' \
| پارامترها | جزئیات | توضیحات |
|---|---|---|
| processor | اختیاری رشته (String) | مقادیر مجاز: paypal, stripe, offline_payment, payu, iyzico, paystack, razorpay, mollie, onepay, yookassa, crypto_com, paddle, paddle_billing, mercadopago, midtrans, flutterwave, lemonsqueezy, myfatoorah, klarna, plisio, revolut |
| status | اختیاری رشته (String) | مقادیر مجاز: paid, pending, cancelled, refunded |
| type | اختیاری رشته (String) | مقادیر مجاز: one_time, recurring |
| frequency | اختیاری رشته (String) | مقادیر مجاز: monthly, quarterly, biannual, annual, lifetime |
| datetime_field | اختیاری رشته (String) | مقادیر مجاز: datetime |
| datetime_start | اختیاری رشته (String) | فیلتر نتایج از این تاریخ و زمان به بعد. با قالب Y-m-d H:i:s. |
| datetime_end | اختیاری رشته (String) | فیلتر نتایج تا این تاریخ و زمان. با قالب Y-m-d H:i:s. |
| order_by | اختیاری رشته (String) | فیلدی که نتایج بر اساس آن مرتب میشوند. مقادیر مجاز: id, datetime, total_amount. |
| order_type | اختیاری رشته (String) | ترتیب نتایج. مقادیر مجاز: ASC برای ترتیب صعودی و DESC برای ترتیب نزولی. |
| page | اختیاری عدد صحیح (Integer) | شماره صفحهای که میخواهید نتایج آن را دریافت کنید. مقدار پیشفرض 1 است. |
| results_per_page | اختیاری عدد صحیح (Integer) | تعداد نتایج در هر صفحه. مقادیر مجاز: 10, 25, 50, 100, 250, 500, 1000. مقدار پیشفرض 25 است. |
{
"data": [
{
"id": 1,
"user_id": 1,
"plan_id": 1,
"payment_id": "pi_123456789",
"base_amount": 4.99,
"processor": "stripe",
"type": "one_time",
"frequency": "monthly",
"code": null,
"discount_amount": 0,
"email": "example@example.com",
"name": null,
"total_amount": 4.99,
"total_amount_default_currency": 4.99,
"currency": "USD",
"status": "paid",
"plan": null,
"billing": null,
"business": null,
"taxes_ids": null,
"payment_proof": null,
"payment_proof_url": null,
"refunds": [],
"refunded_total": 0,
"refunded_status": null,
"datetime": "2026-10-03 00:02:08"
}
],
"meta": {
"page": 1,
"total_pages": 1,
"results_per_page": 25,
"total_results": 1
},
"links": {
"first": "https://linkcomposer.com/api/payments?page=1",
"last": "https://linkcomposer.com/api/payments?page=1",
"next": null,
"prev": null,
"self": "https://linkcomposer.com/api/payments?page=1"
}
}
GET https://linkcomposer.com/api/payments/{id}
curl --request GET \
--url 'https://linkcomposer.com/api/payments/{id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkcomposer.com/api/payments/{id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"plan_id": 1,
"payment_id": "pi_123456789",
"base_amount": 4.99,
"processor": "stripe",
"type": "one_time",
"frequency": "monthly",
"code": null,
"discount_amount": 0,
"email": "example@example.com",
"name": null,
"total_amount": 4.99,
"total_amount_default_currency": 4.99,
"currency": "USD",
"status": "paid",
"plan": null,
"billing": null,
"business": null,
"taxes_ids": null,
"payment_proof": null,
"payment_proof_url": null,
"refunds": [],
"refunded_total": 0,
"refunded_status": null,
"datetime": "2026-10-03 00:02:08"
}
}