---
title: "Create a new transaction on this user"
method: POST
path: "/loyalty/customer/{id}"
tags: ["Loyalty"]
---

# Create a new transaction on this user

`POST /loyalty/customer/{id}`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/loyalty/customer/{id}`
- Auth: HTTP bearer

## Request body

- object
  - `content` CreateLoyaltyTransactionRequest: The hook information expected when subscribing to an event.
    - `adjustment` number: The amount of points to adjust, can be negative if you want to deduct from the customers balance or positive if you want to add to it
    - `reason` string, nullable: The reason to give for this transaction

## Response `200`

Ok

- LoyaltyTransactionResponse
  - `content` LoyaltyTransaction
    - `id` integer: Id of the transaction
    - `amount` number: Number of points credited or debited in this transaction, can be negative
    - `expires_at` string, nullable: Expiration date for this transaction
    - `created_at` string: Creation date for this transaction
    - `pospaymentid` number, nullable: Reference to pospaymentid where this transaction was created from
    - `pospaymentmaterialid` number, nullable: Reference to the specific pospayment material id where this transaction was created from
    - `customerid` number: Reference to the customer this transaction belongs to
    - `storeid` number: Reference to the store that created this transaction
    - `userid` number: The TaskUser behind the transaction
    - `reason` string, nullable: Reason for the transaction, can be sale, return sale, or what the user has put in
    - `loyalty_member_id` number, nullable: Reference to the loyalty membership id the customer was assigned when they enrolled in the loyalty club

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
