Skip to main content

Request quote

POST 

https://api.elfsquad.io/configurator/:version/configurator/requestquote

This endpoint is available for anonymous users & can be used to turn a configuration into a quotation.

Request

Path Parameters

    version stringrequired

Body

Quantities is a mapping of configuration id to quantity. If not provided, the quantity will default to 1.

    quotationRequest object
    firstNamestringnullable
    lastNamestringnullable
    lastNamePrefixstringnullable
    salutationstringnullable
    emailstringnullable
    citystringnullable
    postalCodestringnullable
    streetNamestringnullable
    houseNumberstringnullable
    countryIsostringnullable

    Possible values: <= 2 characters

    languageIsostringnullable

    Possible values: <= 2 characters

    phoneNumberstringnullable
    phoneNumber2stringnullable
    companyNamestringnullable
    ibanstringnullable
    cocNumberstringnullable
    vatNumberstringnullable
    shipto_FirstNamestringnullable
    shipto_LastNamestringnullable
    shipto_LastNamePrefixstringnullable
    shipto_Salutationstringnullable
    shipto_Emailstringnullable
    shipto_Citystringnullable
    shipto_PostalCodestringnullable
    shipto_StreetNamestringnullable
    shipto_HouseNumberstringnullable
    shipto_CountryIsostringnullable
    shipto_LanguageIsostringnullable
    shipto_PhoneNumberstringnullable
    shipto_PhoneNumber2stringnullable
    shipto_CompanyNamestringnullable
    remarksstringnullable
    grecaptchastringnullable
    configurationIdsuuid[]nullable
    quantities objectnullable
    property name*int32

Responses

Success

Authorization: oauth2

name: oauth2type: oauth2scopes: openid,profile,email,offline_access,Elfskot.Apiflows: {
  "clientCredentials": {
    "tokenUrl": "https://login.elfsquad.io/oauth2/token",
    "scopes": {
      "Elfskot.Api": "Elfskot.Api"
    }
  },
  "authorizationCode": {
    "authorizationUrl": "https://login.elfsquad.io/oauth2/authorize",
    "tokenUrl": "http://localhost:4444/oauth2/token",
    "scopes": {
      "openid": "openid",
      "profile": "profile",
      "email": "email",
      "offline_access": "offline_access",
      "Elfskot.Api": "Elfskot.Api"
    }
  }
}
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.elfsquad.io/configurator/:version/configurator/requestquote");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"quotationRequest\": {\n \"firstName\": \"string\",\n \"lastName\": \"string\",\n \"lastNamePrefix\": \"string\",\n \"salutation\": \"string\",\n \"email\": \"string\",\n \"city\": \"string\",\n \"postalCode\": \"string\",\n \"streetName\": \"string\",\n \"houseNumber\": \"string\",\n \"countryIso\": \"string\",\n \"languageIso\": \"string\",\n \"phoneNumber\": \"string\",\n \"phoneNumber2\": \"string\",\n \"companyName\": \"string\",\n \"iban\": \"string\",\n \"cocNumber\": \"string\",\n \"vatNumber\": \"string\",\n \"shipto_FirstName\": \"string\",\n \"shipto_LastName\": \"string\",\n \"shipto_LastNamePrefix\": \"string\",\n \"shipto_Salutation\": \"string\",\n \"shipto_Email\": \"string\",\n \"shipto_City\": \"string\",\n \"shipto_PostalCode\": \"string\",\n \"shipto_StreetName\": \"string\",\n \"shipto_HouseNumber\": \"string\",\n \"shipto_CountryIso\": \"string\",\n \"shipto_LanguageIso\": \"string\",\n \"shipto_PhoneNumber\": \"string\",\n \"shipto_PhoneNumber2\": \"string\",\n \"shipto_CompanyName\": \"string\",\n \"remarks\": \"string\",\n \"grecaptcha\": \"string\"\n },\n \"configurationIds\": [\n \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n ],\n \"quantities\": {}\n}", null, "application/json-patch+json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.elfsquad.io
Auth
Parameters
— pathrequired
Body
{
  "quotationRequest": {
    "firstName": "string",
    "lastName": "string",
    "lastNamePrefix": "string",
    "salutation": "string",
    "email": "string",
    "city": "string",
    "postalCode": "string",
    "streetName": "string",
    "houseNumber": "string",
    "countryIso": "string",
    "languageIso": "string",
    "phoneNumber": "string",
    "phoneNumber2": "string",
    "companyName": "string",
    "iban": "string",
    "cocNumber": "string",
    "vatNumber": "string",
    "shipto_FirstName": "string",
    "shipto_LastName": "string",
    "shipto_LastNamePrefix": "string",
    "shipto_Salutation": "string",
    "shipto_Email": "string",
    "shipto_City": "string",
    "shipto_PostalCode": "string",
    "shipto_StreetName": "string",
    "shipto_HouseNumber": "string",
    "shipto_CountryIso": "string",
    "shipto_LanguageIso": "string",
    "shipto_PhoneNumber": "string",
    "shipto_PhoneNumber2": "string",
    "shipto_CompanyName": "string",
    "remarks": "string",
    "grecaptcha": "string"
  },
  "configurationIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "quantities": {}
}
ResponseClear

Click the Send API Request button above and see the response here!