Apply bulk VAT
PUThttps://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
- application/json
- text/json
- application/*+json
Body
vatIduuidnullable
The identifier of the VAT to apply
quotationGroupIdsuuid[]required
The identifiers of the quotation groups that should be updated
Body
vatIduuidnullable
The identifier of the VAT to apply
quotationGroupIdsuuid[]required
The identifiers of the quotation groups that should be updated
Body
vatIduuidnullable
The identifier of the VAT to apply
quotationGroupIdsuuid[]required
The identifiers of the quotation groups that should be updated
Responses
- 200
- 400
Success
Bad Request
- text/plain
- application/json
- text/json
- Schema
- Example (auto)
Schema
errors objectnullable
{
"errors": {}
}
- Schema
- Example (auto)
Schema
errors objectnullable
{
"errors": {}
}
- Schema
- Example (auto)
Schema
errors objectnullable
{
"errors": {}
}
Authorization: oauth2
name: oauth2type: oauth2scopes:openid,profile,email,offline_access,Elfskot.Api
flows: { "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" } } }
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear