Quotes

Get a quote

The quote header (quote) and its line items (items, by day then sort_order). A package is one item, its articles under package (see Packages). Role permission: reports.view or quotes.manage.

get/quotes/{id}

Request

  • Base URL: https://joinways.app/api/v1
  • URL: https://joinways.app/api/v1/quotes/{id}
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://joinways.app/oauth/authorize, token URL https://joinways.app/api/oauth/token, scopes: mcp.read)

Response

The quote and its items.

Example response

{
  "quote": {
    "quote_number": "DEVIS-0042",
    "status": "pending",
    "currency": "EUR",
    "total_excl_tax": 9500,
    "total_tax": 1900,
    "total_incl_tax": 11400,
    "document_lines": [
      {
        "title": "Petit déjeuner d'accueil",
        "quantity": 85,
        "unit": "pers."
      }
    ]
  },
  "items": [
    {
      "title": "Plated dinner, 3 courses",
      "quantity": 80,
      "unit_price": 95,
      "vat": 20,
      "total": 7600,
      "package": {
        "unit_price": 69.545453,
        "total_excl_tax": 2781.81,
        "total_tax": 378.19,
        "total_incl_tax": 3160,
        "tax_rates": [
          10,
          20
        ],
        "articles": [
          {
            "title": "Meeting room",
            "quantity": 40,
            "package_unit_quantity": 1,
            "unit_price": 25,
            "vat": 20,
            "total": 1000
          }
        ]
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.