Skip to main content

Update a Tax Item

PUT 

https://useast.api.elasticpath.com/v2/carts/:cartID/items/:cartitemID/taxes/:taxitemID

Use this endpoint to update a tax item. To change tax value from rate to amount, set rate to null, then set amount value and vice versa.

Request

Responses

Response Headers

    Authorization: http

    name: bearerAuthtype: httpscheme: bearer
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Put, "https://useast.api.elasticpath.com/v2/carts/:cartID/items/:cartitemID/taxes/:taxitemID");
    request.Headers.Add("Accept", "application/json");
    request.Headers.Add("Authorization", "Bearer <token>");
    var content = new StringContent("{\n \"data\": {\n \"code\": \"string\",\n \"jurisdiction\": \"string\",\n \"name\": \"string\",\n \"rate\": 0,\n \"amount\": 0,\n \"type\": \"string\"\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://useast.api.elasticpath.com
    Auth
    Parameters
    — pathrequired
    — pathrequired
    — pathrequired
    Body
    {
      "data": {
        "code": "string",
        "jurisdiction": "string",
        "name": "string",
        "rate": 0,
        "amount": 0,
        "type": "string"
      }
    }
    
    ResponseClear

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