Skip to main content
POST
/
quotes
Create a quote
curl --request POST \
  --url https://api.corebill.io/v1/quotes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": "cus_a1b2c3d4e5f6",
  "issue_date": "2025-04-15",
  "valid_until": "2025-05-15",
  "currency": "USD",
  "notes": "This quote is valid for 30 days",
  "payment_terms": "50% upfront, 50% on delivery",
  "tax_rate": 0,
  "discount_type": "fixed",
  "discount_value": 500,
  "items": [
    {
      "name": "Brand Identity Package",
      "description": "Logo, color palette, typography, brand guidelines",
      "quantity": 1,
      "unit": "project",
      "unit_price": 8000
    },
    {
      "name": "Website Design",
      "description": "5-page responsive website design",
      "quantity": 1,
      "unit": "project",
      "unit_price": 4000
    }
  ]
}
'
{
  "data": {
    "id": "quo_v7w8x9y0z1a2",
    "quote_number": "QUO-2025-00002-1",
    "customer_id": "cus_a1b2c3d4e5f6",
    "status": "draft",
    "issue_date": "2025-04-15",
    "valid_until": "2025-05-15",
    "subtotal": 12000,
    "discount_type": "fixed",
    "discount_value": 500,
    "discount_amount": 500,
    "subtotal_after_discount": 11500,
    "tax_rate": 0,
    "tax_amount": 0,
    "total": 11500,
    "currency": "USD",
    "notes": "This quote is valid for 30 days",
    "payment_terms": "50% upfront, 50% on delivery",
    "public_token": "1713182400000-v7w8x9y0z1a2",
    "created_at": "2025-04-15T09:00:00.000Z",
    "customer": {
      "id": "cus_a1b2c3d4e5f6",
      "name": "John Doe",
      "contact_email": "[email protected]"
    },
    "items": [
      {
        "id": "di_b3c4d5e6f7g8",
        "item_name": "Brand Identity Package",
        "description": "Logo, color palette, typography, brand guidelines",
        "quantity": 1,
        "unit": "project",
        "unit_price": 8000,
        "subtotal": 8000,
        "total": 8000,
        "sort_order": 0
      },
      {
        "id": "di_h9i0j1k2l3m4",
        "item_name": "Website Design",
        "description": "5-page responsive website design",
        "quantity": 1,
        "unit": "project",
        "unit_price": 4000,
        "subtotal": 4000,
        "total": 4000,
        "sort_order": 1
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Generate keys from the Corebill dashboard under the Developers section.

Example: Authorization: Bearer sk_live_abc123def456

Query Parameters

company_id
string
required

The company ID to scope the request to

Body

application/json
customer_id
string
required

Customer ID to associate with this quote

Example:

"cus_a1b2c3d4e5f6"

issue_date
string<date>

Quote issue date (defaults to today)

Example:

"2025-04-15"

valid_until
string<date>

Quote expiration date (defaults to 30 days from issue_date)

Example:

"2025-05-15"

currency
string

Currency code (ISO 4217). Defaults to company currency or USD

Example:

"USD"

notes
string

Quote notes visible to the customer

Example:

"This quote is valid for 30 days"

payment_terms
string

Payment terms description

Example:

"50% upfront, 50% on delivery"

tax_rate
number

Tax rate as a percentage (e.g., 16 for 16%)

Example:

0

tax_id
string

Tax identifier or label

Example:

"VAT"

discount_type
enum<string>

Type of discount to apply

Available options:
percentage,
fixed
Example:

"fixed"

discount_value
number

Discount value (percentage or fixed amount)

Example:

500

items
object[]

Line items for the quote

Response

Quote created successfully

data
object
required

Full quote object including items and public_token (returned by GET /quotes/{id} and POST /quotes)