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

# /api/extension/hooks/Orders.GetCouponAdjustedVolume

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Extension Hooks",
    "version": "extensionHooks"
  },
  "servers": [
    {
      "url": "https://{clientId}.corpadmin.directscalestage.com",
      "variables": {
        "clientId": {
          "default": "clientId"
        }
      }
    }
  ],
  "paths": {
    "/api/extension/hooks/Orders.GetCouponAdjustedVolume": {
      "post": {
        "tags": [
          "OrdersHooksCallback"
        ],
        "operationId": "OrdersHooksCallback_GetCouponAdjustedVolume",
        "parameters": [
          {
            "name": "X-DirectScale-CallbackToken",
            "in": "header",
            "description": "One-time use token. This value is sent to the endpoint configured for the hook.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-DirectScale-User",
            "in": "header",
            "description": "Sets the User Context of the request when a username is provided",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectScale.Disco.Extension.Hooks.Orders.GetCouponAdjustedVolumeHookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectScale.Disco.Extension.Hooks.Orders.GetCouponAdjustedVolumeHookResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Extension_Token": []
          }
        ],
        "x-codegen-request-body-name": "request"
      }
    }
  },
  "components": {
    "schemas": {
      "DirectScale.Disco.Extension.OrderTotal": {
        "type": "object",
        "properties": {
          "Id": {
            "type": "integer",
            "format": "int32"
          },
          "TaxableSubTotal": {
            "type": "number",
            "format": "double"
          },
          "CurrencyCode": {
            "type": "string"
          },
          "ExchangeRate": {
            "type": "number",
            "format": "double"
          },
          "OrderNumber": {
            "type": "integer",
            "format": "int32"
          },
          "Shipping": {
            "type": "number",
            "format": "double"
          },
          "SubTotal": {
            "type": "number",
            "format": "double"
          },
          "Tax": {
            "type": "number",
            "format": "double"
          },
          "TaxInfo": {
            "$ref": "#/components/schemas/DirectScale.Disco.Extension.TaxResult"
          },
          "TaxTransactionId": {
            "type": "string"
          },
          "TaxProvider": {
            "type": "string",
            "enum": [
              "None",
              "ZipToTax",
              "Squire",
              "Avalara",
              "TaxJar",
              "DirectScale"
            ]
          },
          "DiscountTotal": {
            "type": "number",
            "format": "double"
          },
          "Coupons": {
            "$ref": "#/components/schemas/DirectScale.Disco.Extension.OrderCoupons"
          },
          "CurrencySymbol": {
            "type": "string"
          },
          "OverridenShippingTax": {
            "type": "boolean"
          },
          "Total": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "PaidAmount": {
            "type": "number",
            "format": "double"
          },
          "TotalDue": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        }
      },
      "DirectScale.Disco.Extension.OrderCoupon": {
        "type": "object",
        "properties": {
          "Info": {
            "$ref": "#/components/schemas/DirectScale.Disco.Extension.Coupon"
          },
          "OrderId": {
            "type": "integer",
            "format": "int32"
          },
          "DateUsed": {
            "type": "string",
            "format": "date-time"
          },
          "DiscountAmount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "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.OrderCoupons": {
        "type": "object",
        "properties": {
          "DiscountTotal": {
            "type": "number",
            "format": "double"
          },
          "UsedCoupons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectScale.Disco.Extension.OrderCoupon"
            }
          }
        }
      },
      "DirectScale.Disco.Extension.Coupon": {
        "type": "object",
        "properties": {
          "CouponId": {
            "type": "integer",
            "format": "int32"
          },
          "Code": {
            "type": "string"
          },
          "AmountType": {
            "type": "string",
            "enum": [
              "Percent",
              "Amount"
            ]
          },
          "Discount": {
            "type": "number",
            "format": "double"
          },
          "BeginDate": {
            "type": "string",
            "format": "date-time"
          },
          "EndDate": {
            "type": "string",
            "format": "date-time"
          },
          "CouponType": {
            "type": "string",
            "enum": [
              "ItemDiscount",
              "OrderDiscount",
              "ShippingDiscount"
            ]
          },
          "OrderType": {
            "type": "string",
            "enum": [
              "Unknown",
              "Standard",
              "Autoship",
              "Enrollment",
              "VolumeAdjustment"
            ]
          },
          "OrderTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "Unknown",
                "Standard",
                "Autoship",
                "Enrollment",
                "VolumeAdjustment"
              ]
            }
          },
          "MinQty": {
            "type": "number",
            "format": "double"
          },
          "Recurring": {
            "type": "boolean"
          },
          "AllItemIdsRequired": {
            "type": "boolean"
          },
          "AppliedItemIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "RegionIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "AssociateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "BackOfficeIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "PriceGroupIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "Description": {
            "type": "string",
            "readOnly": true
          },
          "CodeDisplay": {
            "type": "string",
            "readOnly": true
          },
          "DescriptionWithCode": {
            "type": "string",
            "readOnly": true
          },
          "DescriptionWithIdAndCode": {
            "type": "string",
            "readOnly": true
          }
        }
      },
      "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"
          }
        }
      },
      "DirectScale.Disco.Extension.Hooks.Orders.GetCouponAdjustedVolumeHookRequest": {
        "type": "object",
        "properties": {
          "Volume": {
            "$ref": "#/components/schemas/DirectScale.Disco.Extension.CouponAdjustedVolume"
          },
          "Totals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectScale.Disco.Extension.OrderTotal"
            }
          }
        }
      },
      "DirectScale.Disco.Extension.CouponAdjustedVolume": {
        "type": "object",
        "properties": {
          "Cv": {
            "type": "number",
            "format": "double"
          },
          "Qv": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "DirectScale.Disco.Extension.Hooks.Orders.GetCouponAdjustedVolumeHookResponse": {
        "type": "object",
        "properties": {
          "CouponAdjustedVolume": {
            "$ref": "#/components/schemas/DirectScale.Disco.Extension.CouponAdjustedVolume"
          }
        }
      }
    },
    "securitySchemes": {
      "Extension_Token": {
        "type": "apiKey",
        "description": "Bearer Token For Extension",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```