get
https://{host}/api_gateway/v1/badges/management/
This API allows you to retrieve lists of badges available for enrollment, available for issual, earned, and expired badges for a particular customer.
Note
- For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .
- Start time and end time are in UTC zone
Prerequisites
- Authentication: Basic or OAuth authentication
- Default access group
Resource information
| URI | api_gateway/v1/badges/management{customerId} |
| HTTP Method | GET |
| Pagination | Yes |
| Batch support | No |
| Rate limit information | None |
Headers
To retrieve customers based on their email ID, mobile number, external ID or card number pass the X-CAP-CUSTOMER-IDENTIFIER.
The supported values are:
- mobile
- externalId
- cardNumber
Example: X-CAP-CUSTOMER-IDENTIFIER: email
API endpoint example
Endpoint using the X-CAP-CUSTOMER-IDENTIFIER: email header: https://eucrm.cc.capillarytech.com/api_gateway/v1/badges/management/[email protected]
Request path parameters
Parameter Name | Data Type | Description |
|---|---|---|
customerId* | String | Unique ID of the customer. |
sortOn | Enum |
|
Request query parameters
| Parameter Name | Data Type | Description |
|---|---|---|
| Page | Integer | Number of pages. |
| Size | Integer | Size of the page. Default: 10 |
| sortOn | Enum | EXPIRES_ON [Default]: Sorts customer badges by their expiration date. LAST_MODIFIED_DATE: Sorts customer badges by the last date they were modified. LAST_ISSUED_DATE: Sorts customer badges by the last date they were issued. LAST_EXPIRED_BADGE: Sorts customer badges by the last date they expired. LAST_EARNED_EVENT_DATE: Sorts customer badges by the last event date when they were earned. LAST_EARNED_ON_DATE: Sorts customer badges by the last date they were earned. |
| order | Enum | Sort the rewards based on order of rewards. Supported Values: DESC [Default], ASC |
| name | String | Name of badge |
| badgeType | Enum | The type of badge to display. Supported Values: AVAILABLE_TO_ISSUE: Filters the badges of the type Enrol and Issue. This is the default filter. AVAILABLE: Filters the badges of the type Direct Issue that are available to be earned directly by the customer. EARNED: Filters the badges that are issued by the customer and are active in the customer's profile. EXPIRED: Filters the badges that are expired. |
| action | Enum | Indicates if the badge is active. Supported values: ACTIVATED, DEACTIVATED |
| badgeStatus | Enum | Status of badge. Supported values: UPCOMING, LIVE, EXPIRED |
| owner | Enum | Type of owner the badge is associated with. Supported values: Loyalty, Loyalty_Promotion, Referral_Campaigns, Journeys, Audience_Campaigns, Rewards_Catalog, Goodwill_Module, Milestones, Historical_Import |
| claimedBy | Enum | The badge claimed by the module. Supported values: Loyalty, Loyalty_Promotion, Referral_Campaigns, Journeys, Audience_Campaigns, Rewards_Catalog, Goodwill_Module, Milestones, Historical_Import |
| startOn | Date | Start date of the badge. Timestamp in the ISO 8601 standard format YYYY-MM-DDTHH:MM:SS.SSSZ. |
| expiresOn | Date | The expiry date of the badge. Timestamp in the ISO 8601 standard format YYYY-MM-DDTHH:MM:SS.SSSZ. |
| startOnOperator | Enum | startOn of badge w.r.t to passed startOn. Supported values: LESS_THAN, GREATER_THAN |
| expiresOnOperator | Enum | expiresOn of badge w.r.t to passed expiresOn. Supported values: LESS_THAN, GREATER_THAN |
| groupId | String | Badge group ID to which the badge belongs. Retrieves only the badges belonging to the specified badge group ID. |
https://eucrm.cc.capillarytech.com/api_gateway/v1/badges/management/[email protected]https://eucrm.cc.capillarytech.com/api_gateway/v1/badges/management/[email protected]Response parameters
| Parameter | Data Type | Description |
|---|---|---|
| name | String | The name of the badge. |
| description | String | A brief description of the badge. |
| badgeMetaId | String | The unique identifier for the badge metadata. |
| badgeType | String | The type of badge. |
| createdOn | Float | The Unix timestamp marking when the badge was created. |
| lastUpdatedOn | Float | The timestamp with the most recent update to the badge. |
| images | Object | A collection of image objects associated with the badge. |
| badgeStatus | String | The status of the badge. |
| lastEarnedOn | Float | The timestamp marking when the badge was last earned. |
| startsOn | Float | The timestamp marking the start date/time for the badge's validity. |
| expiresOn | Float | The timestamp marking the expiration date/time for the badge. |
| earnCount | Integer | The number of times the badge has been earned. |
| issueStatus | String | The status of the badge issue. |
| active | Boolean | Indicates whether the badge is currently active. |
| page | Integer | The current page number of the pagination. |
| size | Integer | The number of items per page in the pagination. |
| total | Integer | The total number of items available across all pages. |
| totalPages | Integer | The total number of pages available. |
| errors | Array | A collection of any errors that occurred during the request. Typically empty if no errors occurred. |
| warnings | Array | A collection of warnings that arose during the request. Typically empty if no warnings occurred. |
| badgeGroupId | String | Unique group ID associated with the badge. |
| badgeRank | Integer | Badge rank is the rank of a badge within a group. |
| badgeGroupName | Integer | Name of the badge group. |
| ownership | Object | The module for which the badge is being created. |
| ownership.restrictedToOwners | Array | Specifies the owner categories that are allowed to claim the badge. |
| ownership.claims | Array | Specifies the owner by which the badge has been claimed. |
| lastEarnEventDate | Float | Date and time when a triggering event (transactional or behavioural) occurred, initiating the badge earning. Time format: Epoch format (UNIX timestamp in milliseconds). |
| lastEarnEventDateISO | string | Specifies the date and time when a triggering event (transactional or behavioral) occurred, initiating the badge earning, in UTC and is independent of the user’s local time zone. |
| lastEarnedOnDate | Float | Date and time when the badge was awarded to the customer. Time format: Epoch format (UNIX timestamp in milliseconds). |
| lastEarnedOnDateISO | String | Specifies the date and time when the badge was awarded to the customer in UTC and is independent of the user’s local time zone. |
{
"data": {
"customerBadges": [
{
"name": "Badge Issueds_Test6 ",
"description": "Make 5 transactions",
"badgeMetaId": "693696bdcebb9648d89735b3",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1765185213.630000000,
"createdOnISO": "2025-12-08T09:13:33Z",
"lastUpdatedOn": 1765185213.630000000,
"lastUpdatedOnISO": "2025-12-08T09:13:33Z",
"images": [
{
"name": "Issued",
"fileSvcHandle": "qwer-8634-8938",
"url": "https://firebasestorage.googleapis.com/v0/b/createbadges.appspot.com/o/images%2Fsuccess1.jpg?alt=media&token=66b2f0bc-9c55-4e33-a5e9-c6be96d94f2d",
"tag": "EARNED"
}
],
"badgeStatus": "UPCOMING",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1765178896000.000000000,
"startsOnISO": "+57906-04-18T07:06:40Z",
"expiresOn": 1796275142001.000000000,
"expiresOnISO": "+58891-09-10T13:13:21Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Loyalty_Promotion",
"Loyalty",
"Historical_Import",
"Milestones",
"Rewards_Catalog",
"Journeys",
"Referral_Campaigns",
"Audience_Campaigns",
"Goodwill_Module"
],
"claims": []
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "Badge Issue earn2d72",
"description": "Make 5 transactions",
"badgeMetaId": "692d2b942814b4096ebb9aa1",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": null,
"createdOn": 1764567956.978000000,
"createdOnISO": "2025-12-01T05:45:56Z",
"lastUpdatedOn": 1764751747.024000000,
"lastUpdatedOnISO": "2025-12-03T08:49:07Z",
"images": [],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1753056000.000000000,
"startsOnISO": "2025-07-21T00:00:00Z",
"expiresOn": 1884570400.000000000,
"expiresOnISO": "2029-09-20T03:46:40Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Referral_Campaigns",
"Audience_Campaigns",
"Loyalty_Promotion",
"Goodwill_Module",
"Journeys",
"Loyalty",
"Milestones",
"Historical_Import",
"Rewards_Catalog"
],
"claims": []
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "Test badge 15/10 01",
"description": null,
"badgeMetaId": "68ef72f6a7e23d40148583eb",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1760522998.146000000,
"createdOnISO": "2025-10-15T10:09:58Z",
"lastUpdatedOn": 1760522998.146000000,
"lastUpdatedOnISO": "2025-10-15T10:09:58Z",
"images": [],
"badgeStatus": "UPCOMING",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1767252758.000000000,
"startsOnISO": "2026-01-01T07:32:38Z",
"expiresOn": 1798788758.000000000,
"expiresOnISO": "2027-01-01T07:32:38Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Audience_Campaigns",
"Loyalty"
],
"claims": []
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "Badge IssuseddS5s ",
"description": "Make 5 transactions",
"badgeMetaId": "69381220cebb9648d8974518",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1765282336.927000000,
"createdOnISO": "2025-12-09T12:12:16Z",
"lastUpdatedOn": 1765282336.927000000,
"lastUpdatedOnISO": "2025-12-09T12:12:16Z",
"images": [
{
"name": "Issued",
"fileSvcHandle": "qwer-8634-8938",
"url": "https://firebasestorage.googleapis.com/v0/b/createbadges.appspot.com/o/images%2Fsuccess1.jpg?alt=media&token=66b2f0bc-9c55-4e33-a5e9-c6be96d94f2d",
"tag": "EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1740960000.000000000,
"startsOnISO": "2025-03-03T00:00:00Z",
"expiresOn": 1797738400.000000000,
"expiresOnISO": "2026-12-20T03:46:40Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Loyalty_Promotion",
"Loyalty",
"Historical_Import",
"Milestones",
"Rewards_Catalog",
"Journeys",
"Referral_Campaigns",
"Audience_Campaigns",
"Goodwill_Module"
],
"claims": []
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "demo testkerl2n26df132",
"description": "string",
"badgeMetaId": "68d66ab3480b423e5c6857f4",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": null,
"createdOn": 1758882483.300000000,
"createdOnISO": "2025-09-26T10:28:03Z",
"lastUpdatedOn": 1761544535.284000000,
"lastUpdatedOnISO": "2025-10-27T05:55:35Z",
"images": [
{
"name": "string",
"fileSvcHandle": "string",
"url": "string",
"tag": "UN_EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1699998660.192000000,
"startsOnISO": "2023-11-14T21:51:00Z",
"expiresOn": 1796311177.192000000,
"expiresOnISO": "2026-12-03T15:19:37Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Loyalty"
],
"claims": [
{
"ownerType": "Loyalty",
"referenceId": "823626",
"isActive": true
}
]
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "Badge Issueds_Test7_1 ",
"description": "Make 5 transactions",
"badgeMetaId": "69369a35cebb9648d89735e6",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1765186101.816000000,
"createdOnISO": "2025-12-08T09:28:21Z",
"lastUpdatedOn": 1765186101.816000000,
"lastUpdatedOnISO": "2025-12-08T09:28:21Z",
"images": [
{
"name": "Issued",
"fileSvcHandle": "qwer-8634-8938",
"url": "https://firebasestorage.googleapis.com/v0/b/createbadges.appspot.com/o/images%2Fsuccess1.jpg?alt=media&token=66b2f0bc-9c55-4e33-a5e9-c6be96d94f2d",
"tag": "EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1765178896.000000000,
"startsOnISO": "2025-12-08T07:28:16Z",
"expiresOn": 1796275142.000000000,
"expiresOnISO": "2026-12-03T05:19:02Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Loyalty_Promotion",
"Loyalty",
"Historical_Import",
"Milestones",
"Rewards_Catalog",
"Journeys",
"Referral_Campaigns",
"Audience_Campaigns",
"Goodwill_Module"
],
"claims": []
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "Badge Issueds_Test7 ",
"description": "Make 5 transactions",
"badgeMetaId": "693697d2cebb9648d89735d5",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1765185490.425000000,
"createdOnISO": "2025-12-08T09:18:10Z",
"lastUpdatedOn": 1765185490.425000000,
"lastUpdatedOnISO": "2025-12-08T09:18:10Z",
"images": [
{
"name": "Issued",
"fileSvcHandle": "qwer-8634-8938",
"url": "https://firebasestorage.googleapis.com/v0/b/createbadges.appspot.com/o/images%2Fsuccess1.jpg?alt=media&token=66b2f0bc-9c55-4e33-a5e9-c6be96d94f2d",
"tag": "EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1765178896.000000000,
"startsOnISO": "2025-12-08T07:28:16Z",
"expiresOn": 1796275142.000000000,
"expiresOnISO": "2026-12-03T05:19:02Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Loyalty_Promotion",
"Loyalty",
"Historical_Import",
"Milestones",
"Rewards_Catalog",
"Journeys",
"Referral_Campaigns",
"Audience_Campaigns",
"Goodwill_Module"
],
"claims": []
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "Badge Issueds_Test1 ",
"description": "Make 5 transactions",
"badgeMetaId": "69368f5d0772ad476ecd3234",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1765183325.598000000,
"createdOnISO": "2025-12-08T08:42:05Z",
"lastUpdatedOn": 1765183325.598000000,
"lastUpdatedOnISO": "2025-12-08T08:42:05Z",
"images": [
{
"name": "Issued",
"fileSvcHandle": "qwer-8634-8938",
"url": "https://firebasestorage.googleapis.com/v0/b/createbadges.appspot.com/o/images%2Fsuccess1.jpg?alt=media&token=66b2f0bc-9c55-4e33-a5e9-c6be96d94f2d",
"tag": "EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1766275200.000000000,
"startsOnISO": "2025-12-21T00:00:00Z",
"expiresOn": 1789876000.000000000,
"expiresOnISO": "2026-09-20T03:46:40Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Rewards_Catalog",
"Milestones",
"Loyalty",
"Loyalty_Promotion",
"Audience_Campaigns",
"Referral_Campaigns",
"Historical_Import",
"Journeys",
"Goodwill_Module"
],
"claims": []
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "Badge Issue ea8rn82d72ss",
"description": "Make 5 transactions",
"badgeMetaId": "692ee2299b3ca00e4bbf8050",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1764680233.937000000,
"createdOnISO": "2025-12-02T12:57:13Z",
"lastUpdatedOn": 1764680233.937000000,
"lastUpdatedOnISO": "2025-12-02T12:57:13Z",
"images": [
{
"name": "Issued",
"fileSvcHandle": "qwer-8634-8938",
"url": "https://firebasestorage.googleapis.com/v0/b/createbadges.appspot.com/o/images%2Fsuccess1.jpg?alt=media&token=66b2f0bc-9c55-4e33-a5e9-c6be96d94f2d",
"tag": "EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1766275200.000000000,
"startsOnISO": "2025-12-21T00:00:00Z",
"expiresOn": 1789876000.000000000,
"expiresOnISO": "2026-09-20T03:46:40Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Audience_Campaigns",
"Rewards_Catalog",
"Referral_Campaigns",
"Historical_Import",
"Goodwill_Module",
"Loyalty",
"Milestones",
"Loyalty_Promotion",
"Journeys"
],
"claims": []
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
},
{
"name": "Badge Issues ",
"description": "Make 5 transactions",
"badgeMetaId": "692fc8862814b4096ebbb6c5",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1764739206.030000000,
"createdOnISO": "2025-12-03T05:20:06Z",
"lastUpdatedOn": 1764845353.878000000,
"lastUpdatedOnISO": "2025-12-04T10:49:13Z",
"images": [
{
"name": "Issued",
"fileSvcHandle": "qwer-8634-8938",
"url": "https://firebasestorage.googleapis.com/v0/b/createbadges.appspot.com/o/images%2Fsuccess1.jpg?alt=media&token=66b2f0bc-9c55-4e33-a5e9-c6be96d94f2d",
"tag": "EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"lastEarnedOnISO": null,
"startsOn": 1766275200.000000000,
"startsOnISO": "2025-12-21T00:00:00Z",
"expiresOn": 1789876000.000000000,
"expiresOnISO": "2026-09-20T03:46:40Z",
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Referral_Campaigns",
"Audience_Campaigns",
"Loyalty_Promotion",
"Goodwill_Module",
"Journeys",
"Loyalty",
"Milestones",
"Historical_Import",
"Rewards_Catalog"
],
"claims": [
{
"ownerType": "Loyalty_Promotion",
"referenceId": "973_PointsRedemption_61f2ff4f",
"isActive": true
}
]
},
"issueStatus": null,
"lastEarnedOnDate": null,
"lastEarnedOnDateISO": null,
"lastEarnEventDate": null,
"lastEarnEventDateISO": null,
"active": true
}
],
"pagination": {
"page": 0,
"size": 10,
"total": 47,
"totalPages": 5
}
},
"errors": [],
"warnings": []
}{
"data": {
"customerBadges": [
{
"name": "demoBadgeName001",
"description": "testing-fixed-window-7-2",
"badgeMetaId": "666638f0ae20cb256ec13e23",
"badgeType": "EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": null,
"createdOn": 1717975279.579000000,
"lastUpdatedOn": 1717975460.583000000,
"images": [
{
"name": "string",
"fileSvcHandle": "string",
"url": "string",
"tag": "UN_EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": 1718083872.611000000,
"startsOn": 1707523237.192000000,
"expiresOn": 1730246437.192000000,
"earnCount": 2,
"ownership": {
"restrictedToOwners": [
"Loyalty_Promotion"
],
"claims": [
{
"ownerType": "Loyalty_Promotion",
"referenceId": "12332345",
"isActive": true
}
]
},
"issueStatus": null,
"active": true,
"lastEarnedOnDate": 1748886600,
"lastEarnEventDate": 1748880000
}
],
"pagination": {
"page": 0,
"size": 3,
"total": 3,
"totalPages": 1
}
},
"errors": [],
"warnings": []
}{
"data": {
"customerBadges": [
{
"name": "demoBadgeName001",
"description": "testing-fixed-window-7-2",
"badgeMetaId": "666638f0ae20cb256ec13e23",
"badgeType": "EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": null,
"createdOn": 1717975279.579000000,
"lastUpdatedOn": 1717975460.583000000,
"images": [
{
"name": "string",
"fileSvcHandle": "string",
"url": "string",
"tag": "UN_EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": 1718083872.611000000,
"startsOn": 1707523237.192000000,
"expiresOn": 1730246437.192000000,
"earnCount": 2,
"ownership": {
"restrictedToOwners": [
"Loyalty_Promotion"
],
"claims": [
{
"ownerType": "Loyalty_Promotion",
"referenceId": "12332345",
"isActive": true
}
]
},
"issueStatus": null,
"active": true,
"lastEarnedOnDate": 1748890800,
"lastEarnEventDate": 1748880000
}
],
"pagination": {
"page": 0,
"size": 4,
"total": 4,
"totalPages": 1
}
},
"errors": [],
"warnings": []
}{
"data": {
"customerBadges": [
{
"name": "Badge Issue georgetesst",
"description": "Make 5 transactions",
"badgeMetaId": "67eb9e2d6666db076c3c7556",
"badgeType": "ISSUE_EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 3,
"createdOn": 1743494701.636000000,
"lastUpdatedOn": 1743494735.479000000,
"images": [
{
"name": "Issued",
"fileSvcHandle": "qwer-8634-8938",
"url": "https://firebasestorage.googleapis.com/v0/b/createbadges.appspot.com/o/images%2Fsuccess1.jpg?alt=media&token=66b2f0bc-9c55-4e33-a5e9-c6be96d94f2d",
"tag": "EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": 1743494913.679000000,
"startsOn": 1735715131.000000000,
"expiresOn": 1764572731.000000000,
"earnCount": 1,
"ownership": {
"restrictedToOwners": [
"Milestones",
"Audience_Campaigns",
"Historical_Import",
"Journeys",
"Loyalty",
"Rewards_Catalog",
"Loyalty_Promotion",
"Goodwill_Module",
"Referral_Campaigns"
],
"claims": [
{
"ownerType": "Loyalty",
"referenceId": "12341234",
"isActive": true
}
]
},
"issueStatus": null,
"lastEarnedOnDate": 1743494923.451000000,
"lastEarnEventDate": 1743494913.679000000,
"active": true
}
],
"pagination": {
"page": 0,
"size": 1,
"total": 1,
"totalPages": 1
}
},
"errors": [],
"warnings": []
}{
"data": {
"customerBadges": [
{
"name": "badge issual3",
"description": "Purchase products worth minimum 1K in the month of March and get this badge",
"badgeMetaId": "6673b08c39c6a546eb054726",
"badgeType": "EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": 1,
"createdOn": 1718857868.451,
"lastUpdatedOn": 1718857868.451,
"images": [],
"badgeStatus": "UPCOMING",
"lastEarnedOn": null,
"startsOn": 1818857606,
"expiresOn": 1828857606,
"earnCount": 0,
"ownership": {
"restrictedToOwners": [
"Loyalty"
],
"claims": []
},
"issueStatus": null,
"active": true
}
],
"pagination": {
"page": 0,
"size": 1,
"total": 1,
"totalPages": 1
}
},
"errors": [],
"warnings": []
}{
"data": {
"customerBadges": [
{
"name": "demoName",
"description": "demoDescription",
"badgeMetaId": "6655729a8be1b54e57d602f1",
"badgeType": "EARN",
"badgeGroupId": null,
"badgeGroupName": null,
"badgeRank": null,
"createdOn": 1716875930.419,
"lastUpdatedOn": 1716875930.419,
"images": [
{
"name": "string",
"fileSvcHandle": "string",
"url": "string",
"tag": "UN_EARNED"
}
],
"badgeStatus": "EXPIRED",
"lastEarnedOn": null,
"startsOn": 1707523237.192,
"expiresOn": 1711756837.192,
"earnCount": 0,
"ownership": {
"restrictedToOwners": [
"Loyalty_Promotion"
],
"claims": []
},
"issueStatus": null,
"active": true
}
],
"pagination": {
"page": 0,
"size": 10,
"total": 17,
"totalPages": 2
}
},
"errors": [],
"warnings": []
}{
"data": {
"customerBadges": [
{
"name": "Birthday Badge",
"description": "Make a purchase during your birthday month and get a 40% discount coupon",
"badgeMetaId": "653dea07b3cda7078c7c68ee",
"badgeType": "ISSUE_EARN",
"badgeGroupId": "65c3600c60d9261bdd8a6410",
"badgeGroupName": "2024 Badges",
"badgeRank": 2,
"createdOn": 1698556674.481000000,
"lastUpdatedOn": 1716454946.522000000,
"images": [
{
"name": "",
"fileSvcHandle": "6d5bbab0-e75c-46c4-ac61-e9f7efeb8863",
"url": "https://storage.crm.eu.content-cdn.io/fs.capillary.eu/incentives_assets/badges/images/100606/653dea07b3cda7078c7c68ee_EARNED_P-Hmb96D.png",
"tag": "EARNED"
},
{
"name": "",
"fileSvcHandle": "8be2b78e-b1d6-4127-926a-2cbed7eb2785",
"url": "https://storage.crm.eu.content-cdn.io/fs.capillary.eu/incentives_assets/badges/images/100606/653dea07b3cda7078c7c68ee_UN_EARNED_vDx_DRdk.png",
"tag": "UN_EARNED"
}
],
"badgeStatus": "LIVE",
"lastEarnedOn": null,
"startsOn": 1698557400.000000000,
"expiresOn": 1828754110.000000000,
"earnCount": null,
"ownership": {
"restrictedToOwners": [
"Loyalty"
],
"claims": [
{
"ownerType": "Loyalty",
"referenceId": "626",
"isActive": true
},
{
"ownerType": "Loyalty",
"referenceId": "626_TransactionAdd",
"isActive": true
},
{
"ownerType": "Loyalty",
"referenceId": "123",
"isActive": true
}
]
},
"issueStatus": null,
"active": true
}
],
"pagination": {
"page": 0,
"size": 2,
"total": 2,
"totalPages": 1
}
},
"errors": [],
"warnings": []
}