v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Issue badge (earn)

post/api_gateway/v1/badges/customer/earn

Request body

badgeMetaIdstring
customerIdstring required
requestIdstring
triggeredByobject
ownerTypestring required

Type of owner.

referenceIdstring required

A unique identifier associated with the owner.

earnEventDatestring date-time

The date on which the customer performed the activity. Earn event date. Timestamp in the ISO 8601 standard format format YYYY-MM-DDTHH:MM:SS.SSSZ. has to be between the badge start date and end date if it is a direct earn type of badge and it has to be between the badge issual start date and end date if it is an issue & earn type of badge.

Response

200

Example response

{
  "data": {
    "badgeMetaId": "66276dc68fe258516a88ff8e",
    "customerId": 62090013,
    "earnedBadgeId": "66277aa28fe258516a88fff3",
    "expiresOn": 1715072930.64038
  }
}