LogoLogo
CommunitySupport PortalYouTubeStart a free trial
  • Welcome
  • Commerce Engine
  • Orchestration Engine
  • API Documentation
  • Release Notes
  • Changelog
  • Emporix API
  • OpenAPI Generator
  • Standard Practices
    • General Info
    • Mixins
    • Query Parameter
    • Translations
    • Custom ID
    • Upsert
    • B2B Token
  • API Guides and References
    • Authorization
      • OAuth Service
        • API Reference
          • Customer Token
          • Anonymous Token
          • Service Access Token
          • Models
        • Download API Specification
    • Artificial Intelligence
      • AI Service
        • AI Tutorials
        • API Reference
          • Text Generation
          • AI Completions
          • Models
        • Download API Specification
    • Configuration
      • Configuration Service
        • Language Tutorials
        • API Reference
          • Tenant configurations
          • Client configurations
          • Global configurations
          • Models
        • Download API Specification
      • Country Service
        • Country Tutorial
        • API Reference
          • Countries
          • Regions
          • Models
        • Download API Specification
      • Currency Service
        • Currency Tutorial
        • API Reference
          • Currencies
          • Currency exchange
          • Models
        • Download API Specification
      • Unit Handling Service
        • Unit Handling Tutorial
        • API Reference
          • Unit management
          • Unit conversion
          • Type management
          • Models
        • Download API Specification
      • Site Settings Service
        • Site Settings Tutorial
        • API Reference
          • Mixins
          • Site settings
          • Models
        • Download API Specification
      • Indexing Service
        • Indexing Tutorial
        • API Reference
          • Configuration
          • Public Configuration
          • Reindex
          • Models
        • Download API Specification
    • Catalogs and Categories
      • Catalog Service
        • Catalog Tutorials
        • API Reference
          • List catalogs
          • Catalog management
          • Models
        • Download API Specification
      • Category Service
        • Category Tutorials
        • API Reference
          • Category Resources
          • Category Assignment Resources
          • Assignment Resources
          • Category Tree Resources
          • Models
        • Download API Specification
    • Products, Labels and Brands
      • Product Service
        • Product Tutorial
        • API Reference
          • Products
          • Product Templates
          • Models
        • Download API Specification
      • Label Service
        • Label Tutorial
        • API Reference
          • Label
          • Media
          • Models
        • Download API Specification
      • Brand Service
        • Brand Tutorial
        • API Reference
          • Brands
          • Media
          • Models
        • Download API Specification
    • Prices and Taxes
      • Price Service
        • Price Tutorials
        • API Reference
          • Price lists
          • Price matching
          • Price models
          • Prices
          • Prices assigned to price lists
          • Models
        • Download API Specification
      • Tax Service
        • Tax Tutorials
        • API Reference
          • Taxes
          • Tax calculation
          • Models
        • Download API Specification
    • Users and Permissions
      • IAM Service
        • IAM Tutorial
        • API Reference
          • Access Controls
          • Group Assignments
          • Groups
          • Permissions
          • Resources
          • Roles
          • Access Control Templates
          • Users
          • Management Dashboard Users
          • Models
        • Download API Specification
      • Session-context Service
        • Session-context Tutorial
        • API Reference
          • Session management
          • Session context modification
          • Own session management
          • Own session context modification
          • Models
        • Download API Specification
    • Companies and Customers
      • Customer Management
        • Customer Management Tutorial
        • API Reference
          • Locations
          • Contact Assignments
          • Legal Entities
          • Models
        • Download API Specification
      • Customer Service (Customer Managed)
        • API Reference
          • Addresses
          • Account and profile
          • Authentication and authorization
          • Double opt In
          • Credentials
          • Models
        • Download API Specification
      • Customer Service (Tenant Managed)
        • API Reference
          • Account and profile
          • Addresses
          • Models
        • Download API Specification
      • Customer Segments
        • Segments Tutorial
        • API Reference
          • Segments
          • Items Assignments
          • Customers Assignments
          • Models
        • Download API Specification
      • Approval Service
        • Approval Tutorials
        • API Reference
          • Approvals
          • Approval
          • Search
          • Models
        • Download API Specification
    • Delivery and Shipping
      • Shipping Service
        • Shipping Tutorial
        • API Reference
          • Customer Group Relations
          • Delivery Windows
          • Shipping Cost
          • Shipping Zones
          • Shipping Methods
          • Shipping Groups
          • Sites
          • Delivery Times Management
          • Delivery Times Slots Management
          • Delivery Cycles
          • Models
        • Download API Specification
      • Delivery Providers Service
        • API Reference
          • Delivery Orders
          • Delivery Plan
          • Models
        • Download API Specification
    • Rewards and Promotions
      • Coupon Service
        • Coupon Tutorial
        • API Reference
          • Coupon Management
          • Coupon Validation
          • Coupon Redemption
          • Referral Coupon Management
          • Models
        • Download API Specification
      • Reward-points Service
        • Reward-points Tutorial
        • API Reference
          • Redeem Options Management
          • Reward Points Management
          • Signed In Customer Reward Points
          • Models
        • Download API Specification
    • Quotes
      • Quote Service
        • Quote Tutorial
        • API Reference
          • Quote management
          • Quote history
          • Quote pdf
          • Quote reason
          • Models
        • Download API Specification
    • Checkout
      • Cart Service
        • Cart Tutorial
        • API Reference
          • Carts
          • Cart items
          • Discounts
          • Models
        • Download API Specification
      • Payment-gateway Service
        • Payment-gateway Tutorial
        • API Reference
          • Payment
          • Payment mode
          • Payment frontend
          • Payment mode frontend
          • Transaction
          • Models
        • Download API Specification
      • Checkout Service
        • Checkout Tutorial
        • API Reference
          • Checkouts
          • Models
        • Download API Specification
      • Fee Service
        • Fee Tutorial
        • API Reference
          • Fee management
          • Item Fee management
          • Product Fees management
          • Item Fee search
          • Models
        • Download API Specification
      • Shopping List
        • API Reference
          • Shopping Lists
          • Models
        • Download API Specification
    • Orders
      • Availability Service
        • Availability Tutorial
        • API Reference
          • Locations
          • Availabilities
          • Models
        • Download API Specification
      • Order Service
        • Order Tutorial
        • API Reference
          • Orders (tenant Managed)
          • Orders (customer Managed)
          • Models
        • Download API Specification
      • Pick-pack Service
        • API Reference
          • Orders
          • Order cycles
          • Assignees
          • Recalculations
          • Events
          • Models
        • Download API Specification
      • Invoice Service
        • Invoice Tutorial
        • API Reference
          • Invoice Jobs
          • Models
        • Download API Specification
      • Returns Service
        • Returns Tutorial
        • API Reference
          • Returns
          • Models
        • Download API Specification
      • SEPA Export Service
        • API Reference
          • Files
          • Jobs
          • Models
        • Download API Specification
    • Utilities
      • Schema Service
        • Schema Tutorial
        • API Reference
          • Schema
          • Type
          • Reference
          • Custom Schema Type
          • Custom Instance
          • Models
        • Download API Specification
      • Sequential-id Service
        • Sequential-id Tutorial
        • API Reference
          • Sequential IDs management
          • Models
        • Download API Specification
    • Media
      • Media Service
        • Media Tutorial
        • API Reference
          • Assets
          • Models
        • Download API Specification
    • Webhooks
      • Webhook Service
        • Webhooks Tutorial
        • API Reference
          • Config
          • Events
          • Svix Emporix Shared Account
          • Models
        • Download API Specification
      • Events-Availability
      • Events-Cart
      • Events-Catalog
      • Events-Category
      • Events-Client Management
      • Events-Customer
      • Events-Index
      • Events-Order
      • Events-Price
      • Events-Product
      • Events-Quote
      • Events-Product
    • Integrations
      • Emporix and Make
      • Identity Providers
      • Workflow Automation
Powered by GitBook
LogoLogo

Resources

  • Emporix.com
  • Developer Policy
  • Terms of Use

Find us

  • LinkedIn

© 2025 Emporix. All Rights Reserved.

On this page

Was this helpful?

Export as PDF
  1. API Guides and References
  2. Quotes
  3. Quote Service
  4. API Reference

Quote management

PreviousAPI ReferenceNextQuote history

Was this helpful?

Retrieving a single quote

get

Retrieves a quote by a given id.


Required scopes

  • quote.quote_read - allows employees to retrieve any quote

  • quote.quote_read_own - allows customers to retrieve their own quote

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon

Note: This value must always be provided in lowercase.

Pattern: ^[a-z][a-z0-9]+$
quoteIdstringRequired

Quote unique identifier generated when the quote is created

Header parameters
Accept-LanguagestringOptional

List of language codes acceptable for the response. You can specify factors that indicate which language should be retrieved if the one with a higher factor was not found in the localized fields. If a value is specified, then it must be present in the tenant configuration.

  • If the header is set to a particular language or a list of languages, all localized fields are retrieved as strings.
  • If the header is set to *, all localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages.
  • If the header is empty, localized fields are retrieved in the default language defined in the Configuration Service.
Responses
200
OK
application/json
400
Unsupported language provided.
application/json
401
Given request is unauthorized - the authorization token is invalid or has expired. It usually means that tenant from the token does not match tenant from path.
application/json
403
Permission denied due to insufficient rights. This may happen when request does not contain sufficient scopes for given query values.
application/json
404
Given resource cannot be found.
application/json
get
GET /quote/{tenant}/quotes/{quoteId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "id": "5b3188dc-9a5c-4163-8756-4f228c295a59",
  "businessModel": "B2B",
  "customer": {
    "customerId": "72318750",
    "firstName": "Stefan",
    "lastName": "Muller",
    "contactEmail": "s.muller@emporix.com"
  },
  "employee": {
    "employeeId": "00u6fo3yzjE8Q7X0d417",
    "firstName": "John",
    "lastName": "Smith"
  },
  "cartId": "63ee5168e55c231c327220d3",
  "company": {
    "name": "The best company"
  },
  "siteCode": "main",
  "orderId": "B7025189",
  "currency": "USD",
  "status": {
    "value": "ACCEPTED",
    "comment": "comment example",
    "quoteReason": {
      "id": "29817428df374918f236951",
      "code": "PRICE_TOO_HIGH",
      "type": "CHANGE",
      "message": {
        "en": "The price is too high",
        "de": "Der Preis ist zu hoch"
      }
    },
    "validTo": "2023-03-25T09:36:55.974Z"
  },
  "comment": {
    "employeeComment": "Employee comment"
  },
  "validTo": "2023-03-25T09:36:55.974Z",
  "totalPrice": {
    "netValue": 205,
    "grossValue": 225.5,
    "taxValue": 20.5
  },
  "subtotalPrice": {
    "netValue": 205,
    "grossValue": 225.5,
    "taxValue": 20.5
  },
  "taxAggregate": {
    "lines": [
      {
        "name": "STANDARD",
        "amount": 20.5,
        "rate": 10,
        "taxable": 225.5
      }
    ]
  },
  "shipping": {
    "value": 10,
    "grossValue": 12,
    "methodId": "fedex-2dayground",
    "zoneId": "63440460ceeaa26d794fcbbb",
    "methodName": {
      "en": "FedEx 2Day",
      "pl": "FedEx 2Dni"
    },
    "shippingTaxCode": "STANDARD"
  },
  "billingAddress": {
    "id": "63440460cee2826d794fcb8a",
    "name": "ABC",
    "addressLine1": "Street",
    "addressLine2": "27a",
    "city": "London",
    "countryCode": "GB",
    "postcode": "32131",
    "state": "London"
  },
  "shippingAddress": {
    "id": "63440460cee2826d794fcb8a",
    "name": "ABC",
    "addressLine1": "Street",
    "addressLine2": "27a",
    "city": "London",
    "countryCode": "GB",
    "postcode": "32131",
    "state": "London"
  },
  "items": [
    {
      "id": "0972ef39-9a4a-4867-b3c1-f8c00f66ee0a",
      "quantity": {
        "quantity": 1,
        "unitCode": "piece"
      },
      "price": {
        "priceId": "63ec99a2457e8f7548685fe5",
        "unitPrice": 34,
        "newUnitPrice": 34,
        "discount": 0,
        "totalNetValue": 34,
        "tax": {
          "taxClass": "STANDARD",
          "taxRate": 10,
          "prices": {
            "grossValue": 37.4,
            "netValue": 34
          }
        }
      },
      "product": {
        "productId": "BC10033--BC10033-35",
        "name": {
          "de": "Hohe Sicherheitsschuhe Reptile RS S3 SRC, schwarz",
          "ar": "حذاء الجريمة المحافظ المرتفع RS S3 SRC ، NERE",
          "ru": "Safety shoes high Reptile RS S3 SRC, black",
          "th": "Safety shoes high Reptile RS S3 SRC, black",
          "en": "Safety shoes high Reptile RS S3 SRC, black",
          "it": "Scarpe antinfortunistiche alte Reptile RS S3 SRC, nere",
          "fr": "Chaussures de sécurité hautes Reptile RS S3 SRC, noir",
          "en-gb": "Safety shoes high Reptile RS S3 SRC, black",
          "es": "Zapatos de seguridad altos Reptile RS S3 SRC, negros"
        },
        "media": {
          "contentType": "image/jpg",
          "url": "https://res.cloudinary.com/saas-ag/image/upload/v1676449882/mrworkerstage/products/82c30154-dcf7-4bb9-b210-d960fec6c9fd.jpg"
        },
        "taxClasses": {
          "DE": "STANDARD",
          "PL": "ZERO"
        }
      }
    },
    {
      "id": "ac16dd14-baa4-4ccb-bad3-756b36b89235",
      "quantity": {
        "quantity": 3,
        "unitCode": "piece"
      },
      "price": {
        "priceId": "63ec9ad0457e8f75486861cf",
        "unitPrice": 57,
        "newUnitPrice": 57,
        "totalNetValue": 171,
        "tax": {
          "taxClass": "STANDARD",
          "taxRate": 10,
          "prices": {
            "grossValue": 188.1,
            "netValue": 171
          }
        }
      },
      "product": {
        "productId": "0601394000",
        "name": {
          "de": "GWS 750 - Kabelgebundener Winkelschleifer 750 W 115 mm",
          "ar": "GWS 750 - 750 W 115 مم طاحونة الزاوية",
          "ru": "GWS 750 - Corded angle grinder 750 W 115 mm",
          "th": "GWS 750 - Corded angle grinder 750 W 115 mm",
          "en": "GWS 750 - Corded angle grinder 750 W 115 mm",
          "it": "GWS 750 - Smerigliatrice angolare a filo 750 W 115 mm",
          "fr": "GWS 750 - Meuleuse d'angle filaire 750 W 115 mm",
          "en-gb": "GWS 750 - Corded angle grinder 750 W 115 mm",
          "es": "GWS 750 - Amoladora angular con cable 750 W 115 mm"
        },
        "media": {
          "contentType": "image/jpg",
          "url": "https://res.cloudinary.com/saas-ag/image/upload/v1676450433/mrworkerstage/products/937b1491-e099-46f2-b31a-f7c2f7945f7a.jpg"
        },
        "taxClasses": {
          "DE": "STANDARD",
          "PL": "ZERO"
        }
      }
    }
  ],
  "mixins": {
    "customAttributes": {
      "attribute": {
        "value": 1,
        "unit": "kg"
      }
    }
  },
  "metadata": {
    "mixins": {
      "customAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/customAttributes.json"
    },
    "version": 1,
    "createdAt": "2023-02-23T09:36:55.929Z",
    "modifiedAt": "2023-02-23T09:38:49.196Z"
  }
}

Deleting a quote

delete

Deletes a quote with a given quote Id.


Required scopes

  • quote.quote_manage - the quote can be deleted by an employee

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon

Note: This value must always be provided in lowercase.

Pattern: ^[a-z][a-z0-9]+$
quoteIdstringRequired

Quote unique identifier generated when the quote is created

Responses
204
Quote has been deleted successfully.
401
Given request is unauthorized - the authorization token is invalid or has expired. It usually means that tenant from the token does not match tenant from path.
application/json
403
Permission denied due to insufficient rights. This may happen when request does not contain sufficient scopes for given query values.
application/json
delete
DELETE /quote/{tenant}/quotes/{quoteId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

  • GETRetrieving quotes
  • POSTCreating a quote
  • GETRetrieving a single quote
  • DELETEDeleting a quote
  • PATCHPartially updating a quote

Retrieving quotes

get

Retrieves quotes. The response includes either all quotes or a subset of quotes based on the assigned access token scopes.


Required scopes (one of)

  • quote.quote_read - assigned to employees to allow them to retrieve all tenant quotes

  • quote.quote_read_own - assigned to customers to enable them to retrieve only the quotes that they created themselves or that were created on their behalf

Authorizations
Path parameters
tenantstringRequired

Your Emporix tenant's name.

Note: The tenant name should always be written in lowercase.

Example: saasdev2
Query parameters
pageSizeinteger · min: 1Optional

Number of items to be retrieved per page.

Default: 60
pageNumberinteger · min: 1Optional

Page number to be retrieved. The number of the first page is 1.

Default: 1
sortstringOptional

List of properties used to sort the results, separated by colons. The order of properties indicates their priority in sorting.

Possible values:

  • {fieldName}
  • {fieldName}:asc
  • {fieldName}:desc

Note: If you want to sort the results by localized properties, the possible values are:

  • {fieldName}.{language}
  • {fieldName}.{language}:asc
  • {fieldName}.{language}:desc

If the sorting direction is not specified, the fields are sorted in ascending order.

qstringOptional

A standard query parameter is used to search for specific values.

  • Searching for items by string-based properties:
    • By a field value: q=siteCode:main, where siteCode is the field name, and main is its desired value.
    • By a localized field value: q=items.product.name.en:apple_lobo, where name is the field name of product, en is the language code, and apple_lobo is the field value expressed in the specified language. Note: This query works only for localized fields, which are stored in a map format, where key is the language code and value is the translation to particular language.
  • Searching for items by a number-based property:
    • With a specific value: q=items.quantity.quantity:20
    • With a value greater than: q=items.quantity.quantity:>20
    • With a value lower than: q=items.quantity.quantity:<20
    • With a value greater than or equal to: q=items.quantity.quantity:>=20
    • With a value lower than or equal to: q=items.quantity.quantity:<=20
    • With a value within a range of values: q=items.quantity.quantity:(>=10 AND <=20)
      where items.quantity.quantity is the name of the number-based field, and 20 is its querying value.
  • Searching for items by a date-based property: All number-based property queries are also valid for dates. In that case, the date should be placed within double quotes: q=metadataCreatedAt:(>="2021-05-18T07:27:27.455Z" AND <"2021-05-20T07:27:27.455Z")
  • Searching for items by a boolean-based property: q=description.multiLanguage:true, where description.multiLanguage is the boolean field name, and true is its desired value.
  • Searching for items with a nonexistent or empty property: q=description.en:null, where description.en is the field that has its value set to null.
  • Searching for items with an existing property: q=mixin:exists, where mixin is the field that has a non-empty value.
  • Searching for items by multiple specific values: q=id:(5c3325baa9812100098ff48f,5c3325d1a9812100098ff494), where id is the field name, and strings within the bracket are the desired values.
  • Searching for items by multiple fields: q=id:5c3325baa9812100098ff48f siteCode:main where id and siteCode are field names. All objects that contain the specified values are returned. Multiple fields (separated by space) can be specified. Multiple values for each field can also be specified in the format presented earlier.
  • Searching for items with string-based properties conforming to a regex: q=siteCode:~ain or q=code:(~U PL) - in case of searching for strings with space, where siteCode is the name of the field, and ain or U PL is its querying regex.
  • Searching for items with a localized string-based property conforming to a regex: items.product.name.en:~(Yoghurt im) - where name is the product field name, en is the desired language, and Joghurt im is the search term.
Example: siteCode:{main}
fieldsstringOptional

Fields to be returned in the response.

When this parameter is passed, only the id and {fieldName} are retrieved for each entry. You can specify multiple fields by separating them with commas.

Example: code,message
Header parameters
Accept-LanguagestringOptional

List of language codes acceptable for the response. You can specify factors that indicate which language should be retrieved if the one with a higher factor was not found in the localized fields. If a value is specified, then it must be present in the tenant configuration.

  • If the header is set to a particular language or a list of languages, all localized fields are retrieved as strings.
  • If the header is set to *, all localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages.
  • If the header is empty, localized fields are retrieved in the default language defined in the Configuration Service.
X-Total-CountbooleanOptional

Flag indicating whether the total number of retrieved items should be returned.

Default: falseExample: true
Responses
200
The request was successful. Quote's details are returned.
application/json
400
Unsupported language provided.
application/json
401
Given request is unauthorized - the authorization token is invalid or has expired. It usually means that tenant from the token does not match tenant from path.
application/json
403
Permission denied due to insufficient rights. This may happen when request does not contain sufficient scopes for given query values.
application/json
get
GET /quote/{tenant}/quotes HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "id": "5b3188dc-9a5c-4163-8756-4f228c295a59",
    "businessModel": "B2B",
    "customer": {
      "customerId": "72318750",
      "firstName": "Stefan",
      "lastName": "Muller",
      "contactEmail": "s.muller@emporix.com"
    },
    "employee": {
      "employeeId": "00u6fo3yzjE8Q7X0d417",
      "firstName": "John",
      "lastName": "Smith"
    },
    "cartId": "63ee5168e55c231c327220d3",
    "company": {
      "name": "ABC"
    },
    "siteCode": "main",
    "orderId": "B7025189",
    "currency": "USD",
    "status": {
      "value": "ACCEPTED",
      "comment": "comment example",
      "quoteReason": {
        "id": "29817428df374918f236951",
        "code": "PRICE_TOO_HIGH",
        "type": "CHANGE",
        "message": {
          "en": "The price is too high",
          "de": "Der Preis ist zu hoch"
        }
      }
    },
    "validTo": "2023-03-25T09:36:55.974Z",
    "totalPrice": {
      "netValue": 205,
      "grossValue": 225.5,
      "taxValue": 20.5
    },
    "subtotalPrice": {
      "netValue": 205,
      "grossValue": 225.5,
      "taxValue": 20.5
    },
    "taxAggregate": {
      "lines": [
        {
          "name": "STANDARD",
          "amount": 20.5,
          "rate": 10,
          "taxable": 225.5
        }
      ]
    },
    "shipping": {
      "value": 10,
      "grossValue": 12,
      "methodId": "fedex-2dayground",
      "zoneId": "63440460ceeaa26d794fcbbb",
      "methodName": {
        "en": "FedEx 2Day",
        "pl": "FedEx 2Dni"
      },
      "shippingTaxCode": "STANDARD"
    },
    "comment": {
      "employeeComment": "Employee comment"
    },
    "billingAddress": {
      "id": "63440460cee2826d794fcb8a",
      "name": "ABC",
      "addressLine1": "Street",
      "addressLine2": "27a",
      "city": "London",
      "countryCode": "GB",
      "postcode": "32131",
      "state": "London"
    },
    "shippingAddress": {
      "id": "63440460cee2826d794fcb8a",
      "name": "ABC",
      "addressLine1": "Street",
      "addressLine2": "27a",
      "city": "London",
      "countryCode": "GB",
      "postcode": "32131",
      "state": "London"
    },
    "items": [
      {
        "id": "0972ef39-9a4a-4867-b3c1-f8c00f66ee0a",
        "quantity": {
          "quantity": 1,
          "unitCode": "piece"
        },
        "price": {
          "priceId": "63ec99a2457e8f7548685fe5",
          "unitPrice": 34,
          "newUnitPrice": 34,
          "discount": 0,
          "totalNetValue": 34,
          "tax": {
            "taxClass": "STANDARD",
            "taxRate": 10,
            "prices": {
              "grossValue": 37.4,
              "netValue": 34
            }
          }
        },
        "product": {
          "productId": "BC10033--BC10033-35",
          "name": {
            "de": "Hohe Sicherheitsschuhe Reptile RS S3 SRC, schwarz",
            "ar": "حذاء الجريمة المحافظ المرتفع RS S3 SRC ، NERE",
            "ru": "Safety shoes high Reptile RS S3 SRC, black",
            "th": "Safety shoes high Reptile RS S3 SRC, black",
            "en": "Safety shoes high Reptile RS S3 SRC, black",
            "it": "Scarpe antinfortunistiche alte Reptile RS S3 SRC, nere",
            "fr": "Chaussures de sécurité hautes Reptile RS S3 SRC, noir",
            "en-gb": "Safety shoes high Reptile RS S3 SRC, black",
            "es": "Zapatos de seguridad altos Reptile RS S3 SRC, negros"
          },
          "media": {
            "contentType": "image/jpg",
            "url": "https://res.cloudinary.com/saas-ag/image/upload/v1676449882/mrworkerstage/products/82c30154-dcf7-4bb9-b210-d960fec6c9fd.jpg"
          },
          "taxClasses": {
            "DE": "STANDARD",
            "PL": "ZERO"
          }
        }
      },
      {
        "id": "ac16dd14-baa4-4ccb-bad3-756b36b89235",
        "quantity": {
          "quantity": 3,
          "unitCode": "piece"
        },
        "price": {
          "priceId": "63ec9ad0457e8f75486861cf",
          "unitPrice": 57,
          "newUnitPrice": 57,
          "totalNetValue": 171,
          "tax": {
            "taxClass": "STANDARD",
            "taxRate": 10,
            "prices": {
              "grossValue": 188.1,
              "netValue": 171
            }
          }
        },
        "product": {
          "productId": "0601394000",
          "name": {
            "de": "GWS 750 - Kabelgebundener Winkelschleifer 750 W 115 mm",
            "ar": "GWS 750 - 750 W 115 مم طاحونة الزاوية",
            "ru": "GWS 750 - Corded angle grinder 750 W 115 mm",
            "th": "GWS 750 - Corded angle grinder 750 W 115 mm",
            "en": "GWS 750 - Corded angle grinder 750 W 115 mm",
            "it": "GWS 750 - Smerigliatrice angolare a filo 750 W 115 mm",
            "fr": "GWS 750 - Meuleuse d'angle filaire 750 W 115 mm",
            "en-gb": "GWS 750 - Corded angle grinder 750 W 115 mm",
            "es": "GWS 750 - Amoladora angular con cable 750 W 115 mm"
          },
          "media": {
            "contentType": "image/jpg",
            "url": "https://res.cloudinary.com/saas-ag/image/upload/v1676450433/mrworkerstage/products/937b1491-e099-46f2-b31a-f7c2f7945f7a.jpg"
          },
          "taxClasses": {
            "DE": "STANDARD",
            "PL": "ZERO"
          }
        }
      }
    ],
    "mixins": {
      "customAttributes": {
        "attribute": {
          "value": 1,
          "unit": "kg"
        }
      }
    },
    "metadata": {
      "mixins": {
        "customAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/customAttributes.json"
      },
      "version": 1,
      "createdAt": "2023-02-23T09:36:55.929Z",
      "modifiedAt": "2023-02-23T09:38:49.196Z"
    }
  }
]

Creating a quote

post

Generates a new quote, which can be created either manually using a complete quote definition that includes items, or by copying the details from cart.


Required scopes

  • quote.quote_manage - required for the employee to create a quote

  • quote.quote_manage_own - required for the customer to be able to create a quote from cart

Authorizations
Path parameters
tenantstringRequired

Your Emporix tenant's name.

Note: The tenant name should always be written in lowercase.

Example: saasdev2
Body
one ofOptional
or
Responses
201
The request was successful. The Quote has been created.
application/json
400
Unsupported content language provided.
application/json
401
Given request is unauthorized - the authorization token is invalid or has expired. It usually means that tenant from the token does not match tenant from path.
application/json
403
Permission denied due to insufficient rights. This may happen when request does not contain sufficient scopes for given query values.
application/json
409
Conflict.
application/json
post
POST /quote/{tenant}/quotes HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 810

{
  "customerId": "9tt954309b06d46d3cf19fe",
  "employeeId": "9tt954309b06d46d3cf19fa",
  "billingAddressId": "64672a8f9939d331699cbe6e",
  "shippingAddressId": "64672a8f9939d331699cbe6e",
  "companyName": "ABC",
  "siteCode": "main",
  "currency": "USD",
  "validTo": "2022-04-01T04:37:04.301Z",
  "shipping": {
    "value": 10,
    "methodId": "fedex-2dayground",
    "zoneId": "63440460ceeaa26d794fcbbb",
    "shippingTaxCode": "STANDARD"
  },
  "items": [
    {
      "quantity": {
        "quantity": 1,
        "unitCode": "piece"
      },
      "price": {
        "priceId": "6245aa0a78a8576e338fa9c4",
        "unitPrice": 13,
        "totalNetValue": 13,
        "tax": {
          "taxClass": "STANDARD",
          "taxRate": 20
        }
      },
      "product": {
        "productId": "7i98542309b06d46d3cf19fe"
      }
    }
  ],
  "mixins": {
    "customAttributes": {
      "attribute": {
        "value": 1,
        "unit": "kg"
      }
    }
  },
  "metadata": {
    "mixins": {
      "customAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/customAttributes.json"
    }
  }
}
{
  "id": "e241dc9e-a3f6-4573-bb01-a8ae21d2d4ae"
}

Partially updating a quote

patch

Partially updates a quote with a given Id. Single update may contain multiple partial updates in the form of an array. It contains the allowed operations list:

  • add (adding an item to the items list)

  • remove (removing an item from the items list)

  • replace (replacing an item with given id with new definition which may contain custom price proposal or defined price)

After events are saved, some of the information is retrieved in the async way from other services: full price definition is based on the provided price ID, and the full product name is based on the provided product ID.


Required scopes

  • quote.quote_manage - allows employees or external api calls to modify all quotes

  • quote.quote_manage_own - allows customers to modify only their own quotes by modifying the status to either ACCEPTED or DECLINED.

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon

Note: This value must always be provided in lowercase.

Pattern: ^[a-z][a-z0-9]+$
quoteIdstringRequired

Quote unique identifier generated when the quote is created

Body

Quote update operation list.

opstring · enumRequiredPossible values:
pathstring · enumRequiredPossible values:
valueany ofOptional
or
or
or
or
or
or
stringOptional

Value of the string type

or
objectOptional

Mixin request

Responses
204
The request was successful. The quote has been updated.
400
Unsupported content language provided.
application/json
401
Given request is unauthorized - the authorization token is invalid or has expired. It usually means that tenant from the token does not match tenant from path.
application/json
403
Permission denied due to insufficient rights. This may happen when request does not contain sufficient scopes for given query values.
application/json
404
Given resource cannot be found.
application/json
patch
PATCH /quote/{tenant}/quotes/{quoteId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 725

[
  {
    "op": "ADD",
    "path": "/items",
    "value": {
      "itemId": "2298854309b06d4c6d3cf1zfe",
      "quantity": {
        "quantity": 1,
        "unitCode": "H87"
      },
      "price": {
        "priceId": "14551d2309b06sd46d3cf19bq",
        "unitPrice": 13,
        "totalNetValue": 13,
        "tax": {
          "taxClass": "STANDARD",
          "taxRate": 20
        }
      },
      "product": {
        "productId": "74698542309b06dc46d3cf19fe"
      }
    }
  },
  {
    "op": "REPLACE",
    "path": "/status",
    "value": {
      "value": "OPEN",
      "comment": "new comment"
    }
  },
  {
    "op": "REPLACE",
    "path": "/items/22988s54309b06d46d3acf19fe",
    "value": {
      "quantity": {
        "quantity": 1,
        "unitCode": "H87"
      },
      "price": {
        "priceId": "14551d2309b06sd46d3cf19bq",
        "unitPrice": 13,
        "totalNetValue": 13,
        "tax": {
          "taxClass": "STANDARD",
          "taxRate": 20
        }
      },
      "product": {
        "productId": "74698542309b06dc46d3cf19fe"
      }
    }
  },
  {
    "op": "REMOVE",
    "path": "/items/124dfa82410fas824kfa"
  }
]

No content