---
updatedAt: 2025-06-16T23:23:30.000Z
agentTools:
  projectIndex: https://developers.directscale.com/llms.txt
---

# /api/extension/services/TaxService/v1/GetOrderTax

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Extension Services",
    "version": "extensionServices"
  },
  "servers": [
    {
      "url": "https://{clientId}.corpadmin.directscalestage.com",
      "variables": {
        "clientId": {
          "default": "clientId"
        }
      }
    }
  ],
  "paths": {
    "/api/extension/services/TaxService/v1/GetOrderTax": {
      "post": {
        "tags": [
          "TaxService"
        ],
        "operationId": "TaxService_GetOrderTax_v1",
        "parameters": [
          {
            "name": "X-DirectScale-User",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoMVC.Controllers.Extension.GeneratedControllers.TaxServiceController.GetOrderTax_v1_Request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectScale.Disco.Extension.TaxResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Extension_Token": []
          }
        ],
        "x-codegen-request-body-name": "request"
      }
    }
  },
  "components": {
    "schemas": {
      "DirectScale.Disco.Extension.TaxResult": {
        "type": "object",
        "properties": {
          "TransactionId": {
            "type": "string"
          },
          "RefundTransactionId": {
            "type": "string"
          },
          "TaxProvider": {
            "type": "string",
            "enum": [
              "None",
              "ZipToTax",
              "Squire",
              "Avalara",
              "TaxJar",
              "DirectScale"
            ]
          },
          "LineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectScale.Disco.Extension.TaxResultItem"
            }
          },
          "TaxAmount": {
            "type": "number",
            "format": "double"
          },
          "TaxRate": {
            "type": "number",
            "format": "double"
          },
          "ShippingAmount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "DirectScale.Disco.Extension.TaxResultItem": {
        "type": "object",
        "properties": {
          "Detail": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectScale.Disco.Extension.TaxResultDetail"
            }
          },
          "ItemId": {
            "type": "integer",
            "format": "int32"
          },
          "TaxRate": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "TaxAmount": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "Street": {
            "type": "string",
            "readOnly": true
          },
          "City": {
            "type": "string",
            "readOnly": true
          },
          "County": {
            "type": "string",
            "readOnly": true
          },
          "State": {
            "type": "string",
            "readOnly": true
          },
          "Country": {
            "type": "string",
            "readOnly": true
          },
          "Zip": {
            "type": "string",
            "readOnly": true
          },
          "WarehouseAddressId": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        }
      },
      "DirectScale.Disco.Extension.TaxResultDetail": {
        "type": "object",
        "properties": {
          "TaxRate": {
            "type": "number",
            "format": "double"
          },
          "TaxAmount": {
            "type": "number",
            "format": "double"
          },
          "Street": {
            "type": "string"
          },
          "City": {
            "type": "string"
          },
          "County": {
            "type": "string"
          },
          "State": {
            "type": "string"
          },
          "Country": {
            "type": "string"
          },
          "Zip": {
            "type": "string"
          },
          "WarehouseAddressId": {
            "type": "integer",
            "format": "int32"
          },
          "AuthorityLevel": {
            "type": "string"
          },
          "AuthorityName": {
            "type": "string"
          }
        }
      },
      "DiscoMVC.Controllers.Extension.GeneratedControllers.TaxServiceController.GetOrderTax_v1_Request": {
        "type": "object",
        "properties": {
          "OrderNumber": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    },
    "securitySchemes": {
      "Extension_Token": {
        "type": "apiKey",
        "description": "Bearer Token For Extension",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```