curl --location --request POST '/quotes' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"sales": [
{
"product_id": 152741,
"product_variant_id": 30293,
"quantity": 2,
"unit": "Pieces",
"rate": 4000.00,
"amount": 8000.00
},
{
"product_id": 152741,
"product_variant_id": 30292,
"quantity": 1,
"unit": "Pieces",
"rate": 3000.00,
"amount": 3000.00
}
],
"notes": ["Please review and confirm this quote"],
"customer_id": 5230,
"delivery_fee": 50.00,
"delivery_date": "2025-10-21",
"discount_type": "percent",
"discount": 10,
"tax": 5,
"quote_date": "2025-01-10",
"expiry_date": "2025-01-20",
"quote_number": "Q-2024-001",
"name": "Website Development Quote",
"attachments": ["document1.pdf", "proposal.docx"],
"payment_methods": "CARD,BANK_TRANSFER"
}'{
"success": true,
"message": "string",
"data": {
"newQuote": {
"user_id": 0,
"business_id": 0,
"customer_id": 0,
"app_id": 0,
"quote_number": "string",
"name": "string",
"transaction_type": "string",
"amount": 0,
"amount_received": 0,
"quantity": 0,
"items": 0,
"profit": 0,
"delivery_charge": 0,
"discount": 0,
"sub_total_amount": 0,
"tax": 0,
"tax_amount": 0,
"discount_amount": 0,
"discount_type": "string",
"unpaid_balance": 0,
"quote_date": "string",
"expiry_date": "string",
"sales_data": "string",
"customer_data": null,
"attachments": "string",
"notes": "string",
"raw": "string",
"reminder_sent": true,
"status": "string",
"is_accepted": true,
"sent_at": "string",
"delivery_date": "string",
"created_by": 0,
"app_created_at": "string",
"app_updated_at": "string",
"created_at": "string",
"updated_at": "string",
"id": "string",
"customer": {
"id": "string",
"user_id": "string",
"business_id": "string",
"app_id": "string",
"phone": "string",
"thumbnail": null,
"app_created_at": "string",
"raw": "string",
"deleted_at": null,
"created_at": "string",
"updated_at": "string",
"app_updated_at": "string",
"email": null,
"instagram": null,
"facebook": null,
"tiktok": null,
"created_by": "string",
"amount_spent": 0,
"sync_provider": null,
"sync_data_id": null,
"title": null,
"first_name": "string",
"last_name": null,
"billing_street_address1": null,
"billing_street_address2": null,
"billing_city": null,
"billing_state": null,
"billing_postal_code": null,
"billing_country": null,
"shipping_street_address1": null,
"shipping_street_address2": null,
"shipping_city": null,
"shipping_state": null,
"shipping_postal_code": null,
"shipping_country": null,
"birthday": null,
"notes": null,
"use_billing_as_shipping": true
},
"business": {
"id": "string",
"business_id": "string",
"user_id": "string",
"business_type_id": "string",
"name": "string",
"code": null,
"country": "string",
"state": "string",
"address": null,
"currency": "string",
"logo": null,
"is_verified": true,
"is_active": true,
"created_at": "string",
"updated_at": "string",
"brand_color": null,
"has_been_viewed": true
},
"getSalesData": [
{
"product_id": 0,
"product_variant_id": 0,
"quantity": 0,
"unit": "string",
"rate": 0,
"amount": 0
}
],
"getCustomerData": null
},
"totalSalesAmount": 0,
"sales": [
{
"product_id": 0,
"product_variant_id": 0,
"quantity": 0,
"unit": "string",
"rate": 0,
"amount": 0
}
],
"discountAmount": 0,
"taxAmount": 0,
"subTotalAmount": 0
}
}