---
updatedAt: 2025-03-06T22:38:23.000Z
agentTools:
  projectIndex: https://developer.influence.io/llms.txt
---

# Deduct points from a customer

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Influence.io Platform API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://platform.api.influence.io"
    }
  ],
  "paths": {
    "/v1/customers/{customerId}/points/remove": {
      "post": {
        "summary": "Deduct points from a customer",
        "parameters": [
          {
            "$ref": "#/components/parameters/customerIdPath"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "points"
                ],
                "properties": {
                  "points": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "action": {
                    "type": "string",
                    "description": "A brief summary of why the customer is being deducted points"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/updatedCustomer"
          },
          "404": {
            "description": "Customer not found"
          }
        },
        "tags": [
          "customer"
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "customerIdPath": {
        "name": "customerId",
        "description": "Your internal ID",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "updatedCustomer": {
        "description": "The updated customer.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "customer": {
                  "$ref": "#/components/schemas/customer"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "customer": {
        "title": "Customer",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique Influence.io UUID for a customer"
          },
          "email": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "customerType": {
            "type": "string"
          },
          "referralLink": {
            "type": "string"
          },
          "referralsCompleted": {
            "type": "integer"
          },
          "externalId": {
            "type": "string"
          },
          "pointBalance": {
            "type": "integer"
          },
          "shareFacebook": {
            "type": "boolean"
          },
          "shareTwitter": {
            "type": "boolean"
          },
          "likeFacebook": {
            "type": "boolean"
          },
          "followTwitter": {
            "type": "boolean"
          },
          "followTikTok": {
            "type": "boolean"
          },
          "followInstagram": {
            "type": "boolean"
          },
          "birthdayMonth": {
            "type": "number"
          },
          "birthdayDay": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "currentLoyaltyTierProgress": {
            "type": "number",
            "description": "Tracks their current progress through the loyalty tier platform as an absolute value. If your program follows a setup of 0 points = Bronze, 200 points = Silver, 500 points = Gold, a customer with a `currentLoyaltyTierProgress` of 201 would be in silver tier."
          },
          "currentLoyaltyTierId": {
            "type": "string"
          },
          "lifetimeStampsEarned": {
            "type": "integer"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiTokenAuth": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiTokenAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```