Skip to main content

Add Tax Item to Cart

POST 

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

Use this endpoint to add a tax item to a cart.

note

There is a soft limit of 5 unique tax items per cart item at any one time.

Request

Responses

Response Headers

    Authorization: http

    name: bearerAuthtype: httpscheme: bearer
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, "https://useast.api.elasticpath.com/v2/carts/:cartID/items/:cartitemID/taxes");
    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
    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!

    We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.