Openapi
Create a quote for the specified organization.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidThe quote payload.
application/jsoncustomerId*stringuuidtitle*string1 <= length <= 240quoteTemplateId?|uuidintro?|length <= 20000terms?|length <= 20000validUntil?|^\d{4}-\d{2}-\d{2}$currency?string^[A-Z]{3}$vatInclusive?booleandiscountKind?string"none""percentage""fixed"discountValue?number0 <= valuediscountDescription?|length <= 500promotionId?|uuidpublicMessage?|length <= 20000issueDate?|^\d{4}-\d{2}-\d{2}$vatRegime?string"standard""reverse_charge""exempt""kor""margin_scheme"termsPdfFileId?|uuidtermsPdfVersionId?|uuidtermsRichText?|length <= 100000termsUrl?|length <= 2000depositKind?string"none""percent""fixed"depositValue?number0 <= valuedepositRequiredToAccept?booleanlines?array<>items <= 500linkedTaskIds?array<>items <= 200Returns the created quote.
application/jsonid*quoteIdSchemauuidorganizationId*stringuuidcustomerId*stringuuidnumber*quoteNumberSchema0 < value <= 9007199254740991numberPrefix*quoteNumberPrefixSchema^[A-Z0-9-]*$length <= 16displayNumber*quoteDisplayNumberSchema1 <= length <= 40version*integer1 <= valuestatus*quoteStatusSchema"draft""sent""accepted""rejected""expired""withdrawn""changes_requested"quoteTemplateId*|uuidtitle*stringintro*string|nullterms*string|nullvalidUntil*string|nullcurrency*quoteCurrencyCodeSchema^[A-Z]{3}$vatInclusive*booleandiscountKind*discountKindSchema"none""percentage""fixed"discountValue*numberdiscountDescription*|length <= 500promotionId*|uuidsubtotalExcl*numbervatTotal*numbertotalIncl*numberpublicMessage*string|nullsentAt*|date-timeacceptedAt*|date-timerejectedAt*|date-timeexpiredAt*|date-timewithdrawnAt*|date-timehasUnpublishedChanges*booleanacceptedByName*string|nullacceptedByEmail*string|nullacceptedIp*string|nullacceptedUserAgent*string|nullacceptedOptionalLineIds*array<>archivedAt*|date-timeissueDate*string|nullvatRegime*documentVatRegimeSchema"standard""reverse_charge""exempt""kor""margin_scheme"sellerName*string|nullsellerAddressLine1*string|nullsellerAddressLine2*string|nullsellerAddressPostalCode*string|nullsellerAddressCity*string|nullsellerAddressCountry*string|nullsellerEmail*string|nullsellerPhone*string|nullsellerKvk*string|nullsellerBtw*string|nullsellerIban*string|nullbuyerName*string|nullbuyerAddressLine1*string|nullbuyerAddressLine2*string|nullbuyerAddressPostalCode*string|nullbuyerAddressCity*string|nullbuyerAddressCountry*string|nullbuyerEmail*string|nullbuyerKvk*string|nullbuyerBtw*string|nulltermsPdfFileId*|uuidtermsPdfVersionId*|uuidtermsRichText*|length <= 100000termsUrl*string|nulldepositKind*quoteDepositKindSchema"none""percent""fixed"depositRequiredToAccept*booleandepositValue*number0 <= valuechangesRequestedAt*|date-timecreatedBy*|uuidupdatedBy*|uuidcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X POST 'https://app.localhost/api/v1/organizations/123/quotes' \ -H 'Content-Type: application/json' \ -d '{ "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "title": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "number": 1, "numberPrefix": "string", "displayNumber": "string", "version": 1, "status": "draft", "quoteTemplateId": "9a791ff5-4365-47dc-9262-806c185b930c", "title": "string", "intro": "string", "terms": "string", "validUntil": "string", "currency": "string", "vatInclusive": true, "discountKind": "none", "discountValue": 0, "discountDescription": "string", "promotionId": "3eaf888b-516c-4eac-ac00-1312640986a2", "subtotalExcl": 0, "vatTotal": 0, "totalIncl": 0, "publicMessage": "string", "sentAt": "2019-08-24T14:15:22Z", "acceptedAt": "2019-08-24T14:15:22Z", "rejectedAt": "2019-08-24T14:15:22Z", "expiredAt": "2019-08-24T14:15:22Z", "withdrawnAt": "2019-08-24T14:15:22Z", "hasUnpublishedChanges": true, "acceptedByName": "string", "acceptedByEmail": "string", "acceptedIp": "string", "acceptedUserAgent": "string", "acceptedOptionalLineIds": [ "7905e023-6ec9-47d6-8de1-0028067c1619" ], "archivedAt": "2019-08-24T14:15:22Z", "issueDate": "string", "vatRegime": "standard", "sellerName": "string", "sellerAddressLine1": "string", "sellerAddressLine2": "string", "sellerAddressPostalCode": "string", "sellerAddressCity": "string", "sellerAddressCountry": "string", "sellerEmail": "string", "sellerPhone": "string", "sellerKvk": "string", "sellerBtw": "string", "sellerIban": "string", "buyerName": "string", "buyerAddressLine1": "string", "buyerAddressLine2": "string", "buyerAddressPostalCode": "string", "buyerAddressCity": "string", "buyerAddressCountry": "string", "buyerEmail": "string", "buyerKvk": "string", "buyerBtw": "string", "termsPdfFileId": "447ac172-1a77-4d3e-a448-6529f5bad5f6", "termsPdfVersionId": "357f5e3f-e5dd-4fb8-ab36-48697a651460", "termsRichText": "string", "termsUrl": "string", "depositKind": "none", "depositRequiredToAccept": true, "depositValue": 0, "changesRequestedAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}