---
updatedAt: 2026-04-27T20:42:40.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Apply a service charge to an order

Request body must include the merchant's `service charge ID`. This ID can be retrieved from /v3/merchants/mId/default_service_charge. Each request can set a different name and percentageDecimal as needed for an order.

# OpenAPI definition

```json
{
  "x-samples-languages": [
    "curl",
    "node",
    "javascript",
    "java",
    "swift",
    "csharp"
  ],
  "openapi": "3.0.1",
  "info": {
    "title": "Platform API",
    "version": "3.0"
  },
  "externalDocs": {
    "url": "https://docs.clover.com"
  },
  "servers": [
    {
      "url": "https://apisandbox.dev.clover.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v3/merchants/{mId}/orders/{orderId}/service_charge/": {
      "post": {
        "tags": [
          "ORDERS"
        ],
        "summary": "Apply a service charge to an order",
        "description": "Request body must include the merchant's `service charge ID`. This ID can be retrieved from /v3/merchants/mId/default_service_charge. Each request can set a different name and percentageDecimal as needed for an order.",
        "operationId": "order.ApplyServiceCharge",
        "parameters": [
          {
            "$ref": "#/components/parameters/UserAgentHeader"
          },
          {
            "name": "mId",
            "in": "path",
            "description": "Merchant Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orderId",
            "in": "path",
            "description": "Order Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier"
                  },
                  "name": {
                    "type": "string",
                    "description": "Service charge name"
                  },
                  "enabled": {
                    "type": "boolean",
                    "description": "Indicates if this service charge is enabled."
                  },
                  "percentage": {
                    "type": "integer",
                    "description": "Deprecated use percentage decimal instead.",
                    "format": "int64"
                  },
                  "percentageDecimal": {
                    "type": "integer",
                    "description": "Percent to charge times 10000, for example, 12.5% will be 125000.",
                    "format": "int64"
                  },
                  "isAutoApplied": {
                    "type": "boolean",
                    "description": "Indicates service charge was auto applied or not."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "parameters": {
      "UserAgentHeader": {
        "name": "User-Agent",
        "in": "header",
        "description": "Identifies the application, operating system, vendor, and/or version of the requesting user agent. Format: `<product> / <product-version> <comment>`",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "PostmanRuntime/7.44.1"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": false,
    "samples-enabled": true
  }
}
```