Receipt Orders

GET https://leads.qreq.com/api/receipt-orders
curl --request GET \
--url 'https://leads.qreq.com/api/receipt-orders' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "current_page": 1, "data": [], "first_page_url": "https://leads.qreq.com/api/receipt-orders?page=1", "from": null, "last_page": 1, "last_page_url": "https://leads.qreq.com/api/receipt-orders?page=1", "links": [ { "url": null, "label": "« Previous", "page": null, "active": false }, { "url": "https://leads.qreq.com/api/receipt-orders?page=1", "label": "1", "page": 1, "active": true }, { "url": null, "label": "Next »", "page": null, "active": false } ], "next_page_url": null, "path": "https://leads.qreq.com/api/receipt-orders", "per_page": 10, "prev_page_url": null, "to": null, "total": 0 } }
GET https://leads.qreq.com/api/receipt-orders/{id}
curl --request GET \
--url 'https://leads.qreq.com/api/receipt-orders/{id}' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "id": 1, "receipt_number": "RC-001", "account": { "id": 1, "name": "ABC Traders" }, "amount": 1500.00, "status": "completed", "payment_method": "bank_transfer", "notes": null, "created_at": "2025-11-06T09:00:00Z", "updated_at": "2025-11-06T09:10:00Z" } }
POST https://leads.qreq.com/api/receipt-orders
Parameters Details Description
account_idRequiredintAssociated account ID
amountRequiredfloatAmount received
payment_methodOptionalstringPayment method (cash, bank_transfer, cheque)
statusOptionalStatus (pending, completed)
notesOptionalOptional notes
curl --request POST \
--url 'https://leads.qreq.com/api/receipt-orders' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "account_id": 1, "amount": 1500.00, "payment_method": "bank_transfer", "status": "completed", "notes": "Payment for invoice INV-123" }'
{ "success": true, "message": "Receipt order created successfully.", "data": { "id": 1, "receipt_number": "RC-001", "status": "completed", "created_at": "2025-11-06T09:00:00Z" } }
PUT https://leads.qreq.com/api/receipt-orders/{id}
curl --request PUT \
--url 'https://leads.qreq.com/api/receipt-orders/{id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "status": "completed", "notes": "Updated note" }'
{ "success": true, "message": "Receipt order updated successfully.", "data": { "id": 1, "status": "completed", "updated_at": "2025-11-06T09:10:00Z" } }
DELETE https://leads.qreq.com/api/receipt-orders/{id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/receipt-orders/{id}' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Receipt order deleted successfully." }
PUT https://leads.qreq.com/api/receipt-orders/{id}/toggle-status
curl --request PUT \
--url 'https://leads.qreq.com/api/receipt-orders/{id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Receipt order status updated successfully.", "data": { "id": 1, "status": "completed", "updated_at": "2025-11-06T09:15:00Z" } }
PUT https://leads.qreq.com/api/receipt-orders/{id}/assign-user
curl --request PUT \
--url 'https://leads.qreq.com/api/receipt-orders/{id}/assign-user' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "assigned_to": 7 }'
{ "success": true, "message": "User assigned successfully.", "data": { "id": 1, "assigned_to": 7, "updated_at": "2025-11-06T09:20:00Z" } }