Sales API

Monica Choo

How do I post Tax into Sales 

This is the Post Example on the documentation.

 

Is this the field to post Tax for the whole Sale?
excluded_taxes": [ "8.000% Sales Tax" ]

{
  "mode": "sale",
  "customer_id": 2,
  "show_comment_on_receipt": true,
  "selected_tier_id": 2,
  "sold_by_employee_id": 1,
  "points_used": 1,
  "points_gained": 2,
  "discount_reason": "Loyal customer",
  "has_delivery": true,
  "delivery": {
    "id": 3,
    "sale_id": 3,
    "delivery_person_info": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@example.com",
      "phone_number": "555-555-5555",
      "address_1": "123 Nowhere Street",
      "address_2": "Apartment 123",
      "city": "Rochester",
      "state": "New York",
      "zip": "14445",
      "country": "United States",
      "comments": "A great customer",
      "custom_fields": {
        "secondary phone number": "555-555-5555"
      }
    },
    "delivery_info": {
      "status": "completed",
      "is_pickup": true,
      "comment": "Needs to be fast",
      "shipping_method_id": 1,
      "shipping_zone_id": 1,
      "tracking_number": "12345",
      "estimated_shipping_date": "2021-06-15T13:54:10.704Z",
      "estimated_delivery_or_pickup_date": "2021-06-15T13:54:10.704Z",
      "actual_delivery_or_pickup_date": "2021-06-15T13:54:10.704Z",
      "actual_shipping_date": "2021-06-15T13:54:10.704Z",
      "delivery_employee_person_id": 1
    },
    "delivery_tax_group_id": 1
  },
  "cart_items": [
    {
      "quantity": 4,
      "unit_price": 4.25,
      "discount": 10,
      "name": "Penn Tennis Can",
      "item_number": "072489010016",
      "product_id": "PEN-123",
      "description": "Great Item",
      "serialnumber": "1234393849384",
      "size": "large",
      "item_id": 4,
      "variation_id": 4,
      "damaged_qty": 8,
      "cost_price": 4.25,
      "tier_id": 0,
      "modifier_items": [
        {
          "id": 2,
          "name": "Pepperoni",
          "unit_price": 3.25,
          "cost_price": 1.25
        }
      ]
    },
    {
      "quantity": 4,
      "unit_price": 4.25,
      "discount": 10,
      "name": "Penn Tennis Can",
      "item_number": "072489010016",
      "product_id": "PEN-123",
      "description": "Great Item",
      "serialnumber": "1234393849384",
      "size": "large",
      "item_kit_id": 4,
      "cost_price": 4.25,
      "tier_id": 0,
      "modifier_items": [
        {
          "id": 2,
          "name": "Pepperoni",
          "unit_price": 3.25,
          "cost_price": 1.25
        }
      ]
    }
  ],
  "return_sale_id": "",
  "location_id": 1,
  "employee_id": 1,
  "register_id": 1,
  "excluded_taxes": [
    "8.000% Sales Tax"
  ],
  "comment": "comment here",
  "paid_store_account_ids": {},
  "skip_webhook": true,
  "change_cart_date": "2017-07-21T17:32:28Z",
  "suspended": 0,
  "custom_fields": {
    "secondary phone number": "555-555-5555"
  },
  "payments": [
    {
      "payment_type": "Cash",
      "payment_amount": 3,
      "payment_date": "2017-07-21T17:32:28Z"
    }
  ]
}

Comments

2 comments

  • Comment author
    Chris Muench

    It will pull default taxes for the item as if you were adding it to a sale. We don't have a way to override per item just exclude taxes globally for the sale.

    1
  • Comment author
    Monica Choo

    Thank you, alright will look at the default taxes for the items.

    0

Please sign in to leave a comment.