Quotes

Add quote items

Adds line items. Totals are computed by the server (tax engine, catalog minimum price); vat omitted takes the standard rate of the venue's country. Catalog lines tied to a room (or a package day plan) book that room on the event (rooms).

Package: send ONE line whose location_item_id is a catalog item with is_package: true, quantity the number of package units and unit_price the price of one unit (its catalog price; a different price is split between the articles in the catalog's proportions, 0 adds a plain line). Joinways creates the articles, each at its own tax rate (vat is ignored): never add them yourself. The line comes back as the package, items_added counts it once. A package takes discount_percent or is_offered, never discount_amount nor is_discount. Role permission: quotes.manage.

post/quotes/{id}/items

Request

  • Base URL: https://joinways.app/api/v1
  • URL: https://joinways.app/api/v1/quotes/{id}/items
  • 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.write)

Headers

Idempotency-Keystring

Optional client-generated key (1 to 255 characters, e.g. a UUID v4) that makes the request idempotent for 24 hours: a retry with the same key replays the recorded response (marked Idempotency-Replayed: true) instead of executing the operation again. Same key with another body: 422 idempotency_key_reuse; while the first request runs: 409 idempotency_conflict. See the Idempotency section.

Request body

Example request

{
  "items": [
    {
      "title": "Plated dinner, 3 courses",
      "quantity": 80,
      "unit_price": 95,
      "vat": 20
    }
  ]
}

Response

Items added.

successboolean
items_addedinteger

Example response

{
  "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.