---
updatedAt: 2026-08-07T22:09:02.000Z
agentTools:
  projectIndex: https://developer-docs.rivo.io/llms.txt
---

# Create a points event for a customer

Create a points event to adjust a customers points balance.

> 📘 You can use this endpoint for multiple use cases
>
> * Adding points to a customers balance
> * Subtracting points from a customers balance
> * Triggering a points event for a custom action

**Need to adjust a customer's points balance? You're in the right place.\&#xA;**

* You can add or subtract a customer's points balance by creating a points event.
* A points event is when a customer's balance increases or decreases due to an event that took place.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Rivo Developer API",
    "description": "Extensibility to suit your needs",
    "termsOfService": "https://www.rivo.io/terms",
    "contact": {
      "email": "developers@rivo.io",
      "url": "https://developers.rivo.io"
    },
    "version": "0.0.1"
  },
  "tags": [
    {
      "name": "points_events",
      "description": "Operations about points_events"
    }
  ],
  "paths": {
    "/v1/points_events": {
      "post": {
        "summary": "Create a points event for a customer",
        "description": "Create a points event to adjust a customers points balance.",
        "parameters": [
          {
            "in": "header",
            "name": "Authorization",
            "description": "Merchant Auth Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer_identifier": {
                    "description": "Shopify Customer ID or Email",
                    "type": "string"
                  },
                  "source": {
                    "description": "Source associated with the points event. Choose `manual` by default.",
                    "type": "string",
                    "enum": [
                      "manual",
                      "custom_action",
                      "referral_complete",
                      "visit_url",
                      "instagram_follow",
                      "tiktok_follow",
                      "facebook_like",
                      "facebook_share",
                      "twitter_follow",
                      "twitter_share"
                    ]
                  },
                  "points_amount": {
                    "description": "Number of points. Use positive numbers to add points and negative numbers to subtract points. Required when source is manual.",
                    "type": "integer",
                    "format": "int32"
                  },
                  "credits_amount": {
                    "description": "Number of credits. Use positive numbers to add credits and negative numbers to subtract credits. Required when source is manual.",
                    "type": "number",
                    "format": "float"
                  },
                  "skip_email": {
                    "description": "If an email was supposed to be sent for earning points - we'll skip it if you pass this as true.",
                    "type": "boolean"
                  },
                  "internal_note": {
                    "description": "Internal facing note on why the points were granted. Customers WONT see this.",
                    "type": "string"
                  },
                  "external_note": {
                    "description": "External facing note on why the points were granted. Customers WILL see this.",
                    "type": "string"
                  },
                  "applied_at": {
                    "description": "Time the event took place. Defaults to the current time if left blank",
                    "type": "string",
                    "format": "date-time"
                  },
                  "expires_at": {
                    "description": "Expiry date for the awarded points/credits. Only valid for shops with per-event expiry enabled. Defaults to the shop's configured expiry when left blank.",
                    "type": "string",
                    "format": "date-time"
                  },
                  "custom_action_name": {
                    "description": "Required when creating a points event for a custom action or visit URL. Pass the Custom Action Name you created in the app here, or provide the URL for the visit url.",
                    "type": "string"
                  }
                },
                "required": [
                  "customer_identifier",
                  "source"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Create a points event to adjust a customers points balance."
          }
        },
        "tags": [
          "points_events"
        ],
        "operationId": "adjust-customer-points"
      }
    }
  },
  "servers": [
    {
      "url": "//developer-api.rivo.io/merchant_api"
    }
  ]
}
```