Quotes

GET https://leads.qreq.com/api/quotes
curl --request GET \
--url 'https://leads.qreq.com/api/quotes' \
--header 'Authorization: Bearer {api_key}'
{ "current_page": 1, "data": [ { "id": 1, "quote_number": "QT-2025-000001", "name": "Website Development Project", "description": "Quote for full-stack web development and ongoing maintenance services.", "opportunity_id": 1, "account_id": 3, "billing_contact_id": 3, "shipping_contact_id": 3, "shipping_provider_type_id": 1, "subtotal": "116.99", "discount_amount": "13.00", "total_amount": "134.54", "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "status": "draft", "valid_until": "2025-12-31T00:00:00.000000Z", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z", "opportunity": { "id": 1, "name": "test opportunity", "description": "test opportunity", "amount": "149.49", "close_date": "2025-11-30T00:00:00.000000Z", "notes": "test notes", "status": "active", "account_id": 3, "contact_id": 3, "opportunity_stage_id": 33, "opportunity_source_id": 3, "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:17:55.000000Z", "updated_at": "2025-11-06T06:17:55.000000Z" }, "account": { "id": 3, "name": "test account", "email": "[email protected]", "phone": "03125263966", "billing_address": "test", "billing_city": "test", "billing_state": "test", "billing_postal_code": "test", "billing_country": "test", "shipping_address": "test", "shipping_city": "test", "shipping_state": "test", "shipping_postal_code": "test", "shipping_country": "test", "website": "https://leads.qreq.com/", "account_type_id": 3, "account_industry_id": 3, "status": "active", "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:07:44.000000Z", "updated_at": "2025-11-06T06:07:44.000000Z" }, "billing_contact": { "id": 3, "name": "test contact", "email": "[email protected]", "phone": "031526356322", "position": "rider", "address": "test", "status": "active", "account_id": 3, "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:09:21.000000Z", "updated_at": "2025-11-06T06:09:21.000000Z" }, "shipping_contact": { "id": 3, "name": "test contact", "email": "[email protected]", "phone": "031526356322", "position": "rider", "address": "test", "status": "active", "account_id": 3, "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:09:21.000000Z", "updated_at": "2025-11-06T06:09:21.000000Z" }, "shipping_provider_type": { "id": 1, "name": "test", "description": "test", "color": "#5c9aff", "status": "active", "created_by": 9, "created_at": "2025-11-04T14:43:46.000000Z", "updated_at": "2025-11-04T14:43:46.000000Z" }, "creator": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" }, "assigned_user": { "id": 30, "name": "farhan", "email": "[email protected]", "email_verified_at": null, "lang": "en", "avatar": null, "type": "staff", "plan_id": null, "plan_expire_date": null, "requested_plan": 0, "created_by": 9, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "inactive", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 0, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-11-01T10:26:20.000000Z", "updated_at": "2025-11-01T10:34:00.000000Z" }, "products": [ { "id": 2, "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "main_image_id": null, "additional_image_ids": null, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "active", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T05:57:39.000000Z", "updated_at": "2025-11-06T05:57:39.000000Z", "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=", "additional_image_urls": [], "pivot": { "quote_id": 1, "product_id": 2, "quantity": 1, "unit_price": "129.99", "total_price": "129.99", "discount_type": "percentage", "discount_value": "10.00", "discount_amount": "13.00", "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z" }, "tax": { "id": 2, "name": "test tax", "rate": "15.0000", "type": "percentage", "description": "test tax description", "status": "active", "created_by": 9, "assigned_to": null, "created_at": "2025-11-06T04:53:14.000000Z", "updated_at": "2025-11-06T04:53:14.000000Z" }, "media": [], "has_valid_image": false, "display_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=" } ] } ], "first_page_url": "https://leads.qreq.com/api/quotes?page=1", "from": 1, "last_page": 1, "last_page_url": "https://leads.qreq.com/api/quotes?page=1", "links": [ { "url": null, "label": "« Previous", "page": null, "active": false }, { "url": "https://leads.qreq.com/api/quotes?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/quotes", "per_page": 10, "prev_page_url": null, "to": 1, "total": 1 }
GET https://leads.qreq.com/api/quotes/{quote_id}
curl --request GET \
--url 'https://leads.qreq.com/api/quotes/{quote_id}' \
--header 'Authorization: Bearer {api_key}'
{ "id": 1, "quote_number": "QT-2025-000001", "name": "Website Development Project", "description": "Quote for full-stack web development and ongoing maintenance services.", "opportunity_id": 1, "account_id": 3, "billing_contact_id": 3, "shipping_contact_id": 3, "shipping_provider_type_id": 1, "subtotal": "116.99", "discount_amount": "13.00", "total_amount": "134.54", "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "status": "draft", "valid_until": "2025-12-31T00:00:00.000000Z", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z", "opportunity": { "id": 1, "name": "test opportunity", "description": "test opportunity", "amount": "149.49", "close_date": "2025-11-30T00:00:00.000000Z", "notes": "test notes", "status": "active", "account_id": 3, "contact_id": 3, "opportunity_stage_id": 33, "opportunity_source_id": 3, "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:17:55.000000Z", "updated_at": "2025-11-06T06:17:55.000000Z" }, "account": { "id": 3, "name": "test account", "email": "[email protected]", "phone": "03125263966", "billing_address": "test", "billing_city": "test", "billing_state": "test", "billing_postal_code": "test", "billing_country": "test", "shipping_address": "test", "shipping_city": "test", "shipping_state": "test", "shipping_postal_code": "test", "shipping_country": "test", "website": "https://leads.qreq.com/", "account_type_id": 3, "account_industry_id": 3, "status": "active", "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:07:44.000000Z", "updated_at": "2025-11-06T06:07:44.000000Z" }, "contact": { "id": 3, "name": "test contact", "email": "[email protected]", "phone": "031526356322", "position": "rider", "address": "test", "status": "active", "account_id": 3, "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:09:21.000000Z", "updated_at": "2025-11-06T06:09:21.000000Z" }, "billing_contact": { "id": 3, "name": "test contact", "email": "[email protected]", "phone": "031526356322", "position": "rider", "address": "test", "status": "active", "account_id": 3, "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:09:21.000000Z", "updated_at": "2025-11-06T06:09:21.000000Z" }, "shipping_contact": { "id": 3, "name": "test contact", "email": "[email protected]", "phone": "031526356322", "position": "rider", "address": "test", "status": "active", "account_id": 3, "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:09:21.000000Z", "updated_at": "2025-11-06T06:09:21.000000Z" }, "shipping_provider_type": { "id": 1, "name": "test", "description": "test", "color": "#5c9aff", "status": "active", "created_by": 9, "created_at": "2025-11-04T14:43:46.000000Z", "updated_at": "2025-11-04T14:43:46.000000Z" }, "creator": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" }, "assigned_user": { "id": 30, "name": "farhan", "email": "[email protected]", "email_verified_at": null, "lang": "en", "avatar": null, "type": "staff", "plan_id": null, "plan_expire_date": null, "requested_plan": 0, "created_by": 9, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "inactive", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 0, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-11-01T10:26:20.000000Z", "updated_at": "2025-11-01T10:34:00.000000Z" }, "products": [ { "id": 2, "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "main_image_id": null, "additional_image_ids": null, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "active", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T05:57:39.000000Z", "updated_at": "2025-11-06T05:57:39.000000Z", "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=", "additional_image_urls": [], "pivot": { "quote_id": 1, "product_id": 2, "quantity": 1, "unit_price": "129.99", "total_price": "129.99", "discount_type": "percentage", "discount_value": "10.00", "discount_amount": "13.00", "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z" }, "tax": { "id": 2, "name": "test tax", "rate": "15.0000", "type": "percentage", "description": "test tax description", "status": "active", "created_by": 9, "assigned_to": null, "created_at": "2025-11-06T04:53:14.000000Z", "updated_at": "2025-11-06T04:53:14.000000Z" }, "media": [], "has_valid_image": false, "display_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=" } ], "activities": [ { "id": 1, "quote_id": 1, "user_id": 9, "activity_type": "created", "title": "marshall created this quote", "description": "Draft", "old_values": null, "new_values": { "name": "Website Development Project", "description": "Quote for full-stack web development and ongoing maintenance services.", "opportunity_id": 1, "account_id": 3, "billing_contact_id": 3, "shipping_contact_id": 3, "shipping_provider_type_id": 1, "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "valid_until": "2025-12-31T00:00:00.000000Z", "status": "draft", "assigned_to": 30, "created_by": 9, "quote_number": "QT-2025-000001", "updated_at": "2025-11-06T06:21:50.000000Z", "created_at": "2025-11-06T06:21:50.000000Z", "id": 1, "creator": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" }, "assigned_user": { "id": 30, "name": "farhan", "email": "[email protected]", "email_verified_at": null, "lang": "en", "avatar": null, "type": "staff", "plan_id": null, "plan_expire_date": null, "requested_plan": 0, "created_by": 9, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "inactive", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 0, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-11-01T10:26:20.000000Z", "updated_at": "2025-11-01T10:34:00.000000Z" } }, "field_changed": null, "created_by": 9, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z", "user": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" } }, { "id": 2, "quote_id": 1, "user_id": 9, "activity_type": "assigned", "title": "marshall assigned to farhan", "description": "", "old_values": null, "new_values": { "assigned_to": 30 }, "field_changed": null, "created_by": 9, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z", "user": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" } }, { "id": 3, "quote_id": 1, "user_id": 9, "activity_type": "updated", "title": "marshall updated subtotal", "description": "None into 116.99", "old_values": { "subtotal": null }, "new_values": { "subtotal": 116.99000000000001 }, "field_changed": "subtotal", "created_by": 9, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z", "user": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" } }, { "id": 4, "quote_id": 1, "user_id": 9, "activity_type": "updated", "title": "marshall updated discount amount", "description": "None into 13", "old_values": { "discount_amount": null }, "new_values": { "discount_amount": 13 }, "field_changed": "discount_amount", "created_by": 9, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z", "user": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" } }, { "id": 5, "quote_id": 1, "user_id": 9, "activity_type": "updated", "title": "marshall updated total amount", "description": "None into 134.5385", "old_values": { "total_amount": null }, "new_values": { "total_amount": 134.5385 }, "field_changed": "total_amount", "created_by": 9, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z", "user": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" } } ] }
POST https://leads.qreq.com/api/quotes
Parameters Details Description
name Required String Quote title
description Optional String Quote description
opportunity_id Optional Integer Associated opportunity ID
account_id Optional Integer Account associated with quote
billing_contact_id Optional Integer Billing contact ID
shipping_contact_id Optional Integer Shipping contact ID
shipping_provider_type_id Optional Integer Shipping provider type ID
billing_address Optional String Billing street address
billing_city Optional String Billing city
billing_state Optional String Billing state
billing_postal_code Optional String Billing postal code
billing_country Optional String Billing country
shipping_address Optional String Shipping street address
shipping_city Optional String Shipping city
shipping_state Optional String Shipping state
shipping_postal_code Optional String Shipping postal code
shipping_country Optional String Shipping country
valid_until Optional Date Date until which the quote is valid (must be after today)
status Optional String Status of the quote — one of: draft, sent, accepted, rejected, expired
assigned_to Optional Integer User ID assigned to manage the quote
products Optional Array Array of products with details (see below)
products.*.product_id Required Integer Product ID (must exist in products table)
products.*.quantity Required Integer Quantity (minimum 1)
products.*.unit_price Required Numeric Unit price for the product
products.*.discount_type Optional String Discount type — percentage, fixed, or none
products.*.discount_value Optional Numeric Discount value (numeric, minimum 0)
curl --request POST \
--url 'https://leads.qreq.com/api/quotes' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Website Development Project", "description": "Quote for full-stack web development and maintenance services.", "opportunity_id": 3, "account_id": 1, "billing_contact_id": 2, "shipping_contact_id": 4, "shipping_provider_type_id": 1, "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "valid_until": "2025-12-31", "status": "draft", "assigned_to": 5, "products": [ { "product_id": 1, "quantity": 2, "unit_price": 750, "discount_type": "percentage", "discount_value": 10 }, { "product_id": 2, "quantity": 1, "unit_price": 1200, "discount_type": "fixed", "discount_value": 100 } ] }'
{ "status": "success", "message": "Quote created successfully", "data": { "name": "Website Development Project", "description": "Quote for full-stack web development and ongoing maintenance services.", "opportunity_id": 1, "account_id": 3, "billing_contact_id": 3, "shipping_contact_id": 3, "shipping_provider_type_id": 1, "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "valid_until": "2025-12-31T00:00:00.000000Z", "status": "draft", "assigned_to": 30, "created_by": 9, "quote_number": "QT-2025-000001", "updated_at": "2025-11-06T06:21:50.000000Z", "created_at": "2025-11-06T06:21:50.000000Z", "id": 1, "subtotal": "116.99", "discount_amount": "13.00", "total_amount": "134.54", "creator": { "id": 9, "name": "marshall", "email": "[email protected]", "email_verified_at": "2025-10-31T10:59:33.000000Z", "lang": "en", "avatar": null, "type": "company", "plan_id": 1, "plan_expire_date": null, "requested_plan": 0, "created_by": 0, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "active", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 634410, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-10-31T10:59:06.000000Z", "updated_at": "2025-10-31T10:59:33.000000Z" }, "assigned_user": { "id": 30, "name": "farhan", "email": "[email protected]", "email_verified_at": null, "lang": "en", "avatar": null, "type": "staff", "plan_id": null, "plan_expire_date": null, "requested_plan": 0, "created_by": 9, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "inactive", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 0, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-11-01T10:26:20.000000Z", "updated_at": "2025-11-01T10:34:00.000000Z" }, "products": [ { "id": 2, "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "main_image_id": null, "additional_image_ids": null, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "active", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T05:57:39.000000Z", "updated_at": "2025-11-06T05:57:39.000000Z", "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=", "additional_image_urls": [], "pivot": { "quote_id": 1, "product_id": 2, "quantity": 1, "unit_price": "129.99", "total_price": "129.99", "discount_type": "percentage", "discount_value": "10.00", "discount_amount": "13.00", "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:21:50.000000Z" }, "tax": { "id": 2, "name": "test tax", "rate": "15.0000", "type": "percentage", "description": "test tax description", "status": "active", "created_by": 9, "assigned_to": null, "created_at": "2025-11-06T04:53:14.000000Z", "updated_at": "2025-11-06T04:53:14.000000Z" }, "media": [], "has_valid_image": false, "display_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=" } ] } }
PUT https://leads.qreq.com/api/quotes/{quote_id}
Parameters Details Description
name Required String Quote title
description Optional String Quote description
opportunity_id Optional Integer Associated opportunity ID
account_id Optional Integer Account associated with quote
billing_contact_id Optional Integer Billing contact ID
shipping_contact_id Optional Integer Shipping contact ID
shipping_provider_type_id Optional Integer Shipping provider type ID
billing_address Optional String Billing street address
billing_city Optional String Billing city
billing_state Optional String Billing state
billing_postal_code Optional String Billing postal code
billing_country Optional String Billing country
shipping_address Optional String Shipping street address
shipping_city Optional String Shipping city
shipping_state Optional String Shipping state
shipping_postal_code Optional String Shipping postal code
shipping_country Optional String Shipping country
valid_until Optional Date Date until which the quote is valid (must be after today)
status Optional String Status of the quote — one of: draft, sent, accepted, rejected, expired
assigned_to Optional Integer User ID assigned to manage the quote
products Optional Array Array of products with details (see below)
products.*.product_id Required Integer Product ID (must exist in products table)
products.*.quantity Required Integer Quantity (minimum 1)
products.*.unit_price Required Numeric Unit price for the product
products.*.discount_type Optional String Discount type — percentage, fixed, or none
products.*.discount_value Optional Numeric Discount value (numeric, minimum 0)
curl --request PUT \
--url 'https://leads.qreq.com/api/quotes/{quote_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Website Redesign and Maintenance", "description": "Updated quote for redesigning the corporate website and providing ongoing maintenance.", "opportunity_id": 3, "account_id": 1, "billing_contact_id": 2, "shipping_contact_id": 4, "shipping_provider_type_id": 1, "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "valid_until": "2026-01-31", "status": "sent", "assigned_to": 5, "products": [ { "product_id": 1, "quantity": 2, "unit_price": 450, "discount_type": "percentage", "discount_value": 5 }, { "product_id": 2, "quantity": 1, "unit_price": 1200, "discount_type": "fixed", "discount_value": 100 } ] }'
{ "status": "success", "message": "Quote updated successfully", "data": { "id": 1, "quote_number": "QT-2025-000001", "name": "Website Development Project 1", "description": "Quote for full-stack web development and ongoing maintenance services.", "opportunity_id": 1, "account_id": 3, "billing_contact_id": 3, "shipping_contact_id": 3, "shipping_provider_type_id": 1, "subtotal": "116.99", "discount_amount": "13.00", "total_amount": "121.54", "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "status": "draft", "valid_until": "2025-12-31T00:00:00.000000Z", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:28:36.000000Z", "products": [ { "id": 2, "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "main_image_id": null, "additional_image_ids": null, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "active", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T05:57:39.000000Z", "updated_at": "2025-11-06T05:57:39.000000Z", "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=", "additional_image_urls": [], "pivot": { "quote_id": 1, "product_id": 2, "quantity": 1, "unit_price": "129.99", "total_price": "129.99", "discount_type": "percentage", "discount_value": "10.00", "discount_amount": "13.00", "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:28:36.000000Z" }, "tax": { "id": 2, "name": "test tax", "rate": "15.0000", "type": "percentage", "description": "test tax description", "status": "active", "created_by": 9, "assigned_to": null, "created_at": "2025-11-06T04:53:14.000000Z", "updated_at": "2025-11-06T04:53:14.000000Z" }, "media": [], "has_valid_image": false, "display_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=" } ] } }
DELETE https://leads.qreq.com/api/quotes/{quote_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/quotes/{quote_id}' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Quote deleted successfully." }
PATCH https://leads.qreq.com/api/quotes/{quote_id}/toggle-status
curl --request PATCH \
--url 'https://leads.qreq.com/api/quotes/{quote_id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Quote status updated successfully", "data": { "status": "sent" } }
PUT https://leads.qreq.com/api/quotes/{quote_id}/assign-user
Parameters Details Description
assigned_to RequiredInteger User ID to assign the quote
curl --request PATCH \
--url 'https://leads.qreq.com/api/quotes/{quote_id}/assign-user' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "assigned_to": 5 }'
{ "status": "success", "message": "User assigned successfully", "data": { "id": 1, "quote_number": "QT-2025-000001", "name": "Website Development Project 1", "description": "Quote for full-stack web development and ongoing maintenance services.", "opportunity_id": 1, "account_id": 3, "billing_contact_id": 3, "shipping_contact_id": 3, "shipping_provider_type_id": 1, "subtotal": "116.99", "discount_amount": "13.00", "total_amount": "121.54", "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "status": "sent", "valid_until": "2025-12-31T00:00:00.000000Z", "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:31:41.000000Z" } }
PUT https://leads.qreq.com/api/quotes/{quote_id}/add-opportunity
Parameters Details Description
opportunity_id RequiredInteger Opportunity ID to link to quote
curl --request POST \
--url 'https://leads.qreq.com/api/quotes/{quote_id}/add-opportunity' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "opportunity_id": 10 }'
{ "status": "success", "message": "Opportunity added successfully", "data": { "id": 1, "quote_number": "QT-2025-000001", "name": "Website Development Project 1", "description": "Quote for full-stack web development and ongoing maintenance services.", "opportunity_id": 1, "account_id": 3, "billing_contact_id": 3, "shipping_contact_id": 3, "shipping_provider_type_id": 1, "subtotal": "129.99", "discount_amount": "0.00", "total_amount": "149.49", "billing_address": "123 Main Street", "billing_city": "New York", "billing_state": "NY", "billing_postal_code": "10001", "billing_country": "USA", "shipping_address": "456 Elm Avenue", "shipping_city": "Brooklyn", "shipping_state": "NY", "shipping_postal_code": "11201", "shipping_country": "USA", "status": "sent", "valid_until": "2025-12-31T00:00:00.000000Z", "created_by": 9, "assigned_to": 24, "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:34:16.000000Z", "products": [ { "id": 2, "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "main_image_id": null, "additional_image_ids": null, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "active", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T05:57:39.000000Z", "updated_at": "2025-11-06T05:57:39.000000Z", "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=", "additional_image_urls": [], "pivot": { "quote_id": 1, "product_id": 2, "quantity": 1, "unit_price": "129.99", "total_price": "129.99", "discount_type": null, "discount_value": "0.00", "discount_amount": "0.00", "created_at": "2025-11-06T06:21:50.000000Z", "updated_at": "2025-11-06T06:34:16.000000Z" }, "tax": { "id": 2, "name": "test tax", "rate": "15.0000", "type": "percentage", "description": "test tax description", "status": "active", "created_by": 9, "assigned_to": null, "created_at": "2025-11-06T04:53:14.000000Z", "updated_at": "2025-11-06T04:53:14.000000Z" }, "media": [], "has_valid_image": false, "display_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=" } ] } }
DELETE https://leads.qreq.com/api/quotes/{quote_id}/activities
curl --request DELETE \
--url 'https://leads.qreq.com/api/quotes/{quote_id}/activities' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "All activities deleted successfully" }
DELETE https://leads.qreq.com/api/quotes/{quote_id}/activities/{activity_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/quotes/{quote_id}/activities/{activity_id}' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Activity deleted successfully" }
GET https://leads.qreq.com/api/opportunities/{opportunity_id}/details
curl --request GET \
--url 'https://leads.qreq.com/api/quotes/{quote_id}/opportunity-details' \
--header 'Authorization: Bearer {api_key}'
{ "account_id": 3, "billing_contact_id": 3, "shipping_contact_id": 3, "products": [ { "product_id": 2, "quantity": 1, "unit_price": "129.99", "discount_type": "none", "discount_value": 0 } ] }