---
updatedAt: 2026-06-09T10:44:05.000Z
agentTools:
  projectIndex: https://developer.phorest.com/llms.txt
---

# Update loyalty points balance

Update loyalty points for the specified business id

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Third Party API",
    "description": "This API allow third parties to integrate with Phorest internal core services such as core, online-booking, planner, etc. Please, see the <a href=\"http://dev-changelog.s3-website-eu-west-1.amazonaws.com/?prefix=/third-party-api-server/\" target=\"_blank\">CHANGELOG</a> for further information on API updates.",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.42.1"
  },
  "servers": [
    {
      "url": "http://api-gateway-eu.phorest.com/third-party-api-server",
      "description": "If you are from Europe, use this server"
    },
    {
      "url": "http://api-gateway-us.phorest.com/third-party-api-server",
      "description": "If you are from United States, Canada or Australia, use this server"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Loyalty Points",
      "description": "Loyalty Points Controller"
    }
  ],
  "paths": {
    "/api/business/{businessId}/loyaltypoints": {
      "post": {
        "tags": [
          "Loyalty Points"
        ],
        "summary": "Update loyalty points balance",
        "description": "Update loyalty points for the specified business id",
        "operationId": "changeLoyaltyPoints",
        "parameters": [
          {
            "name": "businessId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoyaltyPointsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Loyalty points updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoyaltyPointsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Loyalty Points data is invalid, unable to update loyalty points",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Request rate limit exceeded. Current limit set to 100 rps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An error occurred while performing the operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          }
        }
      },
      "LoyaltyPointsRequest": {
        "required": [
          "branchId",
          "clientId",
          "description",
          "operationType",
          "pointsChange"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "description": "The unique identifier of the client for which this loyalty points applies.",
            "example": "dbNZRQHDqAn6VlVoL2c-iA"
          },
          "branchId": {
            "type": "string",
            "example": "SE-J0emUgQnya14mOGdQS"
          },
          "description": {
            "type": "string",
            "example": "Paid into client account"
          },
          "pointsChange": {
            "type": "integer",
            "description": "This represent the amount to either be added or deducted from the loyalty point",
            "format": "int32",
            "example": 10
          },
          "date": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2025-04-30T17:15:38Z"
          },
          "operationType": {
            "type": "string",
            "description": "Represents the type of action to be performed. Both add and deduct from loyalty point are supported",
            "example": "DEDUCT",
            "enum": [
              "DEDUCT",
              "ADD"
            ]
          }
        }
      },
      "LoyaltyPointsResponse": {
        "required": [
          "branchId",
          "clientId",
          "description",
          "pointsChange"
        ],
        "type": "object",
        "properties": {
          "clientId": {
            "type": "string",
            "description": "The unique identifier of the client for which this loyalty points applies.",
            "example": "dbNZRQHDqAn6VlVoL2c-iA"
          },
          "branchId": {
            "type": "string",
            "example": "SE-J0emUgQnya14mOGdQS"
          },
          "description": {
            "type": "string",
            "example": "Paid into client account"
          },
          "pointsChange": {
            "type": "integer",
            "description": "This represent the amount to either be added or deducted from the loyalty point",
            "format": "int32",
            "example": 10
          },
          "date": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2025-04-30T17:15:38Z"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```