Skip to main content

Apply bulk VAT

PUT 

https://api.elfsquad.io/quotation/1/quotations/:quotationId/applygroupvat

This will set the VatId field for all lines that are currently in the quotation group. This does not affect lines that are added after calling this endpoint.

Request

Path Parameters

    quotationId uuidrequired

    The identifier of the quotation containing the group

Body

    vatIduuidnullable

    The identifier of the VAT to apply

    quotationGroupIdsuuid[]required

    The identifiers of the quotation groups that should be updated

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.Put, "https://api.elfsquad.io/quotation/1/quotations/:quotationId/applygroupvat");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"vatId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"quotationGroupIds\": [\n \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n ]\n}", null, "application/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
{
  "vatId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "quotationGroupIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ]
}
ResponseClear

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