Point Conversion

​

Enables the conversion of a user's points to cash, fuel discounts, or charities based on the configuration or conversion rules set in the Punchh platform.

Headers

  • The signature for the API call

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

  • Advertises which content types the client is able to understand

  • Set this header to application/json.

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

Body

application/json
  • OAuth client ID provided by the business

  • Conversion rule ID set per the Punchh platform configuration (returned for the converted_category_balances object as category_id)

  • Values of the cash, fuel discounts, or charities resuting from the points conversion

  • Number of the points that the user wants to convert to cash, fuel discounts, or charities

Responses

  • application/json
  • application/json
Request Example for post/api2/mobile/conversions
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/conversions \
  --request POST \
  --header 'x-pch-digest: {{$$.env.signature}}' \
  --header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
  --data '{
  "client": "CLIENT_GOES_HERE",
  "conversion_rule_id": 1,
  "converted_value": "2",
  "source_value": 250
}'
[
  "250 points converted into 2"
]