v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Earn Cart Promotion

Description :With this API , we can get the details of all the cart promotions earned by a particular customer.

post/api_gateway/v1/promotions/{promotionId}/earn

Path parameters

promotionIdstring required

The Unique promotion id

Request body

idstring

Unique id assigned to the earn event

customerIdstring

Unique id assigned to the customer

promotionIdstring

Unique id assigned to the promotion

earnedFromTypestring

Type of customer activity for which promotion is earned . Enums: ACTIVITY,MILESTONE, REWARD

earnedFromIdstring

earn event id

eventTimestring date-time

The time stamp

validTillstring date

Validity of the earn

Response

200

Example response

{
  "data": {
    "id": "string",
    "promotionId": "string",
    "earnedFromId": "string",
    "eventDetails": {
      "id": "string",
      "type": "string"
    },
    "errorDetails": {
      "errorMessages": "string"
    }
  },
  "errors": [
    {
      "message": "string"
    }
  ]
}