Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.3 KB

calculate-loyalty-points-response.md

File metadata and controls

46 lines (37 loc) · 1.3 KB

Calculate Loyalty Points Response

Represents a CalculateLoyaltyPoints response.

Structure

Calculate Loyalty Points Response

Fields

Name Type Tags Description
errors List Error Optional Any errors that occurred during the request.
points int Optional The number of points that the buyer can earn from the base loyalty program.
promotion_points int Optional The number of points that the buyer can earn from a loyalty promotion. To be eligible
to earn promotion points, the purchase must first qualify for program points. When order_id
is not provided in the request, this value is always 0.

Example (as JSON)

{
  "points": 6,
  "promotion_points": 12,
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}