Transfer Loyalty Points

​

Enables a user to transfer loyalty points from their account to another user's account by specifying the recipient's email address or phone number and the number of points to transfer.

The recipient must be an existing member in the loyalty system. The transfer is subject to the business's configured transfer limits, including maximum transfer limits per account and daily receiving limits for the recipient.

Prerequisite
Peer-to-peer points transfers must be enabled for the business. Contact your Punchh representative to update this Punchh platform configuration.

Headers

  • The signature for the API call

  • Set this header to application/json.

  • Preferred language

  • Used to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.

  • Used to authorize the request with access_token. It should be supplied as Bearer ACCESS_TOKEN_GOES_HERE.

Body

application/json
  • Token issued to the user after logging into the app of the business

  • OAuth client ID provided by the business

  • Password of the user initiating the transfer. Required for peer-to-peer transfer.

  • Number of loyalty points to transfer to the recipient

  • Email address of the recipient to whom the loyalty points will be transferred.

    Note: Either recipient_email or recipient_identifier is required. When both recipient_identifier and recipient_email are provided, recipient_identifier takes precedence.

  • Accepts either an email address or a phone number to identify the recipient of the points transfer. recipient_identifier is the primary parameter used to identify the recipient. The system automatically detects whether the provided value is an email address or a phone number.

    Note: Either recipient_email or recipient_identifier is required. When both recipient_identifier and recipient_email are provided, recipient_identifier takes precedence.

    • If a valid phone number or email matches a single guest account, the transfer proceeds.
    • If a phone number matches multiple guest accounts, the transfer is blocked, and an error is returned. To prevent duplicate phone number error, we recommend enabling phone number uniqueness for the business. Contact your Punchh representative to update this Punchh platform configuration.
    • If no matching guest is found for the provided email or phone number, a "recipient not found" error is returned.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/api2/mobile/loyalty_transfers/points
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/loyalty_transfers/points \
  --request POST \
  --header 'x-pch-digest: {{$$.env.signature}}' \
  --header 'Content-Type: application/json' \
  --header 'Accept-Language: en' \
  --header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
  --header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
  --data '{
  "client": "CLIENT_GOES_HERE",
  "access_token": "ACCESS_TOKEN_GOES_HERE",
  "recipient_email": "recipient@example.com",
  "recipient_identifier": "recipient@example.com",
  "points_to_transfer": "1",
  "password": "PASSWORD_GOES_HERE"
}'
[
  "1 transferred to Recipient Name"
]