Loyalty Core Platform API (1.0)
Download OpenAPI specification:Download
Get all the coupon books for an organization
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| loyaltyProgramId | number |
| search | string Filter by full text search |
| tags | string |
| status | string Enum: "draft" "published" "disabled" "archived" The status of the coupon book |
| locale | string Translation locale requested for the coupon |
| audiences | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}
]
}Creates a new coupon book
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| loyaltyProgramId | number |
| externalId | string |
| rankingIndex | number |
| audienceKeys | Array of strings |
| name required | string |
| description | string |
| subtitle | string |
| pictureUrl | string |
| detailPictureUrl | string |
| customAttributes | object |
| condition | object |
| type required | string |
| discountAmount | number |
| discountType | string |
| tags | Array of strings |
| tiers | Array of strings |
| publishingStatus required | string Enum: "archived" "draft" "disabled" "published" |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| maxAssignedPerMember | number |
| maxAssignedPerCoupon | number |
| maxCouponCount | number |
| defaultLocale | string |
| assignmentRequiredPoints | number |
| usageRequiredPoints | number |
| contentSchemaId | number |
| contentSchemaVersionId | number |
| locale | string Locale |
| content | object Content of the coupon book |
| isDefaultLocale | boolean Is the locale default |
| requiredPointsConfig required | object (RequiredPointsConfig) |
Responses
Request samples
- Payload
{- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "locale": "string",
- "content": { },
- "isDefaultLocale": true,
- "requiredPointsConfig": { }
}Response samples
- 201
{- "couponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}
}Get an existing coupon book details
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
query Parameters
| locale | string Translation locale requested for the coupon |
Responses
Response samples
- 200
{- "couponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}
}Updates an existing coupon book
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
Request Body schema: application/jsonrequired
| loyaltyProgramId | number |
| externalId | string |
| rankingIndex | number |
| audienceKeys | Array of strings |
| description | string |
| subtitle | string |
| pictureUrl | string |
| detailPictureUrl | string |
| customAttributes | object |
| condition | object |
| discountAmount | number |
| discountType | string |
| tags | Array of strings |
| tiers | Array of strings |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| maxAssignedPerMember | number |
| maxAssignedPerCoupon | number |
| maxCouponCount | number |
| defaultLocale | string |
| assignmentRequiredPoints | number |
| usageRequiredPoints | number |
| contentSchemaId | number |
| contentSchemaVersionId | number |
| locale | string Locale |
| content | object Content of the coupon book |
| isDefaultLocale | boolean Is the locale default |
| requiredPointsConfig required | object (RequiredPointsConfig) |
| publishingStatus | string The status of the coupon book |
| name | string The name of the coupon book |
| extraFields | object content extra fields |
Responses
Request samples
- Payload
{- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "locale": "string",
- "content": { },
- "isDefaultLocale": true,
- "requiredPointsConfig": { },
- "publishingStatus": "string",
- "name": "string",
- "extraFields": { }
}Response samples
- 200
{- "couponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}
}Use a coupon from the coupon book
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
Request Body schema: application/jsonrequired
| systemUniqueKey | string System Unique Key by Organization ID |
| customAttributes | object |
| memberId required | number |
| code | string Code to be used |
| pendingCaptureLedgerTransactionId | string Ledger transaction ID |
Responses
Request samples
- Payload
{- "systemUniqueKey": "string",
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "memberId": 0,
- "code": "string",
- "pendingCaptureLedgerTransactionId": "1234"
}Response samples
- 201
{- "couponUsages": [
- {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "revertedUsageId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Assign a coupon from the coupon book
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
Request Body schema: application/jsonrequired
| systemUniqueKeys | Array of strings System Unique Key by Organization ID |
| customAttributes | object |
| memberId required | number |
| numberOfCodes | object Default: 1 Number of codes to use |
| amount | object Default: 1 Amount to be assigned for each code |
| codes | Array of strings Codes to be assigned |
| strictMode | boolean Default: false Strict mode gets the exact number of codes or fails |
| expiredAt | string <date-time> Expiration date for the assigned codes |
| pendingCaptureLedgerTransactionId | string Ledger transaction ID |
Responses
Request samples
- Payload
{- "systemUniqueKeys": [
- "string"
], - "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "memberId": 0,
- "numberOfCodes": 1,
- "amount": 1,
- "codes": [
- "string"
], - "strictMode": false,
- "expiredAt": "2019-08-24T14:15:22Z",
- "pendingCaptureLedgerTransactionId": "1234"
}Response samples
- 201
{- "couponUsages": [
- {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "revertedUsageId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Revert a coupon usage
Authorizations:
path Parameters
| organizationId required | number |
| couponUsageId required | number |
Responses
Response samples
- 200
{- "couponUsages": [
- {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "revertedUsageId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get all the coupon codes in a coupon books for an organization
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "couponId": 0,
- "couponBookId": 0,
- "code": "string",
- "totalAssigned": 0,
- "totalUsages": 0,
- "customAttributes": { },
- "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Adds a new coupons to the coupon-book
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
Request Body schema: application/jsonrequired
| codes required | Array of strings Codes to be added |
Responses
Request samples
- Payload
{- "codes": [
- "string"
]
}Response samples
- 201
{- "codes": [
- {
- "couponId": 0,
- "couponBookId": 0,
- "code": "string",
- "totalAssigned": 0,
- "totalUsages": 0,
- "customAttributes": { },
- "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get an existing coupon book code details
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
| couponId required | number |
Responses
Response samples
- 200
{- "couponCode": {
- "couponId": 0,
- "couponBookId": 0,
- "code": "string",
- "totalAssigned": 0,
- "totalUsages": 0,
- "customAttributes": { },
- "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Updates an existing coupon
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
| couponId required | number |
Request Body schema: application/jsonrequired
| code required | string Code to be updated |
Responses
Request samples
- Payload
{- "code": "string"
}Response samples
- 200
{- "couponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}
}Use the specified coupon from the coupon-book
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
| couponId required | number |
Request Body schema: application/jsonrequired
| systemUniqueKey | string System Unique Key by Organization ID |
| customAttributes | object |
| memberId required | number |
| pendingCaptureLedgerTransactionId | string Ledger transaction ID |
Responses
Request samples
- Payload
{- "systemUniqueKey": "string",
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "memberId": 0,
- "pendingCaptureLedgerTransactionId": "1234"
}Response samples
- 201
{- "couponUsage": {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "revertedUsageId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Assign the specified coupon from the coupon-book
Authorizations:
path Parameters
| organizationId required | number |
| couponBookId required | number |
| couponId required | number |
Request Body schema: application/jsonrequired
| customAttributes | object |
| memberId required | number |
| amount | object Default: 1 Amount to be assigned for each code |
| strictMode | boolean Default: false Strict mode gets the exact number of codes or fails |
| pendingCaptureLedgerTransactionId | string Ledger transaction ID |
| systemUniqueKey | string System Unique Key by Organization ID |
Responses
Request samples
- Payload
{- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "memberId": 0,
- "amount": 1,
- "strictMode": false,
- "pendingCaptureLedgerTransactionId": "1234",
- "systemUniqueKey": "string"
}Response samples
- 201
{- "couponUsages": [
- {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "revertedUsageId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get all the coupon books from a member ID
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
| memberId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| tags | string |
| couponBookId | number |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| tiers | number |
| audiences | string |
| outOfStock | boolean |
| includeLastUsage | boolean |
| locale | string Translation locale requested for the coupon |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}
]
}Get all the coupons from a member ID
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
| memberId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| couponBookId | number |
| notUsedOnly | boolean |
| couponBookTags | string |
| couponCodeId | number |
| couponCode | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "couponBookId": 0,
- "couponId": 0,
- "code": "string",
- "amountAssigned": 0,
- "amountUsed": 0,
- "customAttributes": { },
- "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "couponBook": { }
}
]
}Get all the coupons usages count from a member ID
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
| memberId required | number |
query Parameters
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
Responses
Response samples
- 200
{- "amountUsed": 0,
- "amountAssigned": 0
}Gets all offerings for the current organization
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| status | string Enum: "pending" "accepted" "rejected" The status of the offering |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "couponBookOfferingId": 0,
- "partnershipId": 0,
- "organizationId": 0,
- "partnerOrganizationId": 0,
- "offeredCouponBookId": 0,
- "acceptedCouponBookId": 0,
- "status": "pending",
- "partnerOrganization": {
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string"
}, - "offeredCouponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}, - "acceptedCouponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}
}
]
}Creates a new offering
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| partnershipId required | number |
| offeredCouponBookId required | number |
| status required | string Enum: "pending" "accepted" "rejected" |
Responses
Request samples
- Payload
{- "partnershipId": 0,
- "offeredCouponBookId": 0,
- "status": "pending"
}Response samples
- 200
- 201
{- "couponBookOfferingId": 0,
- "partnershipId": 0,
- "organizationId": 0,
- "partnerOrganizationId": 0,
- "offeredCouponBookId": 0,
- "acceptedCouponBookId": 0,
- "status": "pending",
- "partnerOrganization": {
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string"
}, - "offeredCouponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}, - "acceptedCouponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "rankingIndex": 0,
- "audienceKeys": [
- "string"
], - "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "customAttributes": { },
- "condition": { },
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "publishingStatus": "archived",
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "content": { },
- "defaultLocale": "string",
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "contentSchemaId": 0,
- "contentSchemaVersionId": 0
}
}Updates the approval status of an offering
path Parameters
| organizationId required | number |
| couponBookOfferingId required | number |
Request Body schema: application/jsonrequired
| approved required | boolean Confirms or rejects the offering |
Responses
Request samples
- Payload
{- "approved": true
}Response samples
- 200
{- "message": "string"
}Get all the matchers for an organization
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| type | string Value: "item-matcher" |
| matcherKey | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "matcherId": 0,
- "organizationId": 0,
- "name": "string",
- "matcherKey": "string",
- "type": "item-matcher",
- "matcher": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Creates a new matcher
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| organizationId | number |
| name required | string |
| type required | string Value: "item-matcher" |
| matcher required | object |
Responses
Request samples
- Payload
{- "organizationId": 0,
- "name": "string",
- "type": "item-matcher",
- "matcher": { }
}Response samples
- 201
{- "organizationId": 0,
- "name": "string",
- "type": "item-matcher",
- "matcher": { }
}Get an existing macther details
Authorizations:
path Parameters
| organizationId required | number |
| matcherId required | string |
Responses
Response samples
- 200
{- "matcher": {
- "matcherId": 0,
- "organizationId": 0,
- "name": "string",
- "matcherKey": "string",
- "type": "item-matcher",
- "matcher": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Updates an existing matcher
Authorizations:
path Parameters
| organizationId required | number |
| matcherId required | number |
Request Body schema: application/jsonrequired
| organizationId | number |
| name required | string |
| type required | string Value: "item-matcher" |
| matcher required | object |
Responses
Request samples
- Payload
{- "organizationId": 0,
- "name": "string",
- "type": "item-matcher",
- "matcher": { }
}Response samples
- 200
{- "matcher": {
- "matcherId": 0,
- "organizationId": 0,
- "name": "string",
- "matcherKey": "string",
- "type": "item-matcher",
- "matcher": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Get an existing matcher details by key
Authorizations:
path Parameters
| organizationId required | number |
| matcherKey required | string |
Responses
Response samples
- 200
{- "matcher": {
- "matcherId": 0,
- "organizationId": 0,
- "name": "string",
- "matcherKey": "string",
- "type": "item-matcher",
- "matcher": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Get all the effects for an organization
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "organizationId": "2",
- "effectId": "4",
- "name": "Another editting",
- "supportedEventTypes": {
- "PurchaseOrderCreated": "member-purchase-order-created",
- "PurchaseOrderConfirmed": "member-purchase-order-confirmed",
- "PurchaseOrderCancelled": "member-purchase-order-cancelled",
- "PurchaseOrderReturned": "member-purchase-order-returned",
- "PurchaseOrderPartiallyReturned": "member-purchase-order-partially-returned",
- "MemberCreated": "member-created",
- "MemberUpdated": "member-updated",
- "MemberSetTier": "member-tier-set",
- "MemberTierRemoved": "member-tier-removed",
- "MemberProfileDeactivated": "member-profile-deactivated",
- "MemberGenericEvent": "member-generic-event",
- "MemberBenefitUsed": "benefit-used",
- "CouponCodeAssigned": "coupon-code-assigned",
- "CouponCodeUsed": "coupon-code-used",
- "MemberBadgeMinted": "badge-minted",
- "MissionStatusUpdate": "mission-status-updated",
- "LedgerTransactionCreated": "ledger-transaction-created"
}, - "params": [
- {
- "id": "city",
- "label": "City",
- "type": "string",
- "defaultValue": "default",
- "isOptional": true
}
]
}
]
}Get an existing effect details
Authorizations:
path Parameters
| organizationId required | number |
| effectId required | string |
Responses
Response samples
- 200
{- "effect": {
- "organizationId": "2",
- "effectId": "4",
- "name": "Another editting",
- "supportedEventTypes": {
- "PurchaseOrderCreated": "member-purchase-order-created",
- "PurchaseOrderConfirmed": "member-purchase-order-confirmed",
- "PurchaseOrderCancelled": "member-purchase-order-cancelled",
- "PurchaseOrderReturned": "member-purchase-order-returned",
- "PurchaseOrderPartiallyReturned": "member-purchase-order-partially-returned",
- "MemberCreated": "member-created",
- "MemberUpdated": "member-updated",
- "MemberSetTier": "member-tier-set",
- "MemberTierRemoved": "member-tier-removed",
- "MemberProfileDeactivated": "member-profile-deactivated",
- "MemberGenericEvent": "member-generic-event",
- "MemberBenefitUsed": "benefit-used",
- "CouponCodeAssigned": "coupon-code-assigned",
- "CouponCodeUsed": "coupon-code-used",
- "MemberBadgeMinted": "badge-minted",
- "MissionStatusUpdate": "mission-status-updated",
- "LedgerTransactionCreated": "ledger-transaction-created"
}, - "params": [
- {
- "id": "city",
- "label": "City",
- "type": "string",
- "defaultValue": "default",
- "isOptional": true
}
]
}
}Tracks a loyalty event
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| systemUniqueKey required | string [ 3 .. 255 ] characters The unique key of the event |
| externalId | string [ 3 .. 255 ] characters The external id of the event |
| memberId required | number >= 1 The member Id |
| eventType required | string >= 3 characters The type of the event |
| description | string The description of the event |
| payload | object The payload of the event |
| organizationId required | number >= 1 The organization Id |
| externalEventDate | string <date-time> The date the event was created |
| tags | Array of strings The tags of the event |
Responses
Request samples
- Payload
{- "systemUniqueKey": "string",
- "externalId": "string",
- "memberId": 1,
- "eventType": "string",
- "description": "string",
- "payload": { },
- "organizationId": 1,
- "externalEventDate": "2019-08-24T14:15:22Z",
- "tags": [
- "string"
]
}Response samples
- 200
{- "systemUniqueKey": "string",
- "effects": [
- {
- "actionId": 1,
- "actionIndex": 1,
- "campaignId": 1,
- "campaignCode": "string",
- "actionName": "string",
- "effectId": "string",
- "status": { },
- "error": "string",
- "params": [
- {
- "id": "string",
- "value": { }
}
]
}
]
}Gets all loyalty event types
Authorizations:
path Parameters
| organizationId required | number |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "organizationId": 0,
- "name": "string",
- "apiCode": "string",
- "customAttributes": { },
- "description": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "isCustomType": true,
- "schemaType": "builtin"
}
]
}Creates a new loyalty event type
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| apiCode required | string |
| customAttributes | object |
| description | string |
| active | boolean |
| schemaType required | string Enum: "builtin" "string" "number" "url" "custom" The type of schema that this event type uses. |
Responses
Request samples
- Payload
{- "name": "string",
- "apiCode": "string",
- "customAttributes": { },
- "description": "string",
- "active": true,
- "schemaType": "builtin"
}Response samples
- 200
{- "eventType": {
- "organizationId": 0,
- "name": "string",
- "apiCode": "string",
- "customAttributes": { },
- "description": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "isCustomType": true,
- "schemaType": "builtin"
}
}Creates a new loyalty event type
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| apiCode required | string |
| customAttributes | object |
| description | string |
| active | boolean |
| schemaType required | string Enum: "builtin" "string" "number" "url" "custom" The type of schema that this event type uses. |
Responses
Request samples
- Payload
{- "name": "string",
- "apiCode": "string",
- "customAttributes": { },
- "description": "string",
- "active": true,
- "schemaType": "builtin"
}Response samples
- 200
{- "eventType": {
- "organizationId": 0,
- "name": "string",
- "apiCode": "string",
- "customAttributes": { },
- "description": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "isCustomType": true,
- "schemaType": "builtin"
}
}Gets a loyalty event type by its api code
Authorizations:
path Parameters
| organizationId required | number |
| apiCode required | string |
Responses
Response samples
- 200
{- "eventType": {
- "organizationId": 0,
- "name": "string",
- "apiCode": "string",
- "customAttributes": { },
- "description": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "isCustomType": true,
- "schemaType": "builtin"
}
}LoyaltyEventTriggerController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| type | string Value: "WebHook" |
| active | boolean |
| name | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "triggerId": 0,
- "organizationId": 0,
- "type": "WebHook",
- "name": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}LoyaltyEventTriggerController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| type required | string Value: "WebHook" |
| name required | string |
| settings required | object |
| active | boolean |
Responses
Request samples
- Payload
{- "type": "WebHook",
- "name": "string",
- "active": true
}Response samples
- 200
{- "trigger": {
- "triggerId": 0,
- "organizationId": 0,
- "type": "WebHook",
- "name": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}LoyaltyEventTriggerController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| triggerId required | number |
Responses
Response samples
- 200
{- "trigger": {
- "triggerId": 0,
- "organizationId": 0,
- "type": "WebHook",
- "name": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}LoyaltyEventTriggerController_update
Authorizations:
path Parameters
| organizationId required | number |
| triggerId required | number |
Request Body schema: application/jsonrequired
| type required | string Value: "WebHook" |
| name required | string |
| settings required | object |
| active | boolean |
Responses
Request samples
- Payload
{- "type": "WebHook",
- "name": "string",
- "active": true
}Response samples
- 200
{- "trigger": {
- "triggerId": 0,
- "organizationId": 0,
- "type": "WebHook",
- "name": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Imports new Purchase Orders for Loyalty Members
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
required | Array of objects (CreateLoyaltyMemberPurchaseOrderDto) | ||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "orders": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "loyaltyProgramId": 0,
- "customAttributes": { },
- "type": "string",
- "tags": [
- "string"
], - "total": 0,
- "discountedTotal": 0,
- "status": "created",
- "items": [
- {
- "productCode": "string",
- "description": "string",
- "customAttributes": { },
- "total": 0,
- "amount": 0,
- "discountedTotal": 0
}
], - "loyaltyMemberId": "string"
}
]
}Response samples
- 200
{- "results": [
- {
- "result": [
- {
- "order": {
- "orderId": "string",
- "memberId": 0,
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "loyaltyEventId": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "customAttributes": { },
- "type": "string",
- "tags": [
- "string"
], - "total": 0,
- "discountedTotal": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "items": [
- {
- "orderItemId": "string",
- "orderId": "string",
- "productCode": "string",
- "description": "string",
- "customAttributes": { },
- "total": 0,
- "amount": 0,
- "discountedTotal": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "status": "created"
}, - "evaluationResults": {
- "systemUniqueKey": "string",
- "effects": [
- {
- "actionId": 1,
- "actionIndex": 1,
- "campaignId": 1,
- "campaignCode": "string",
- "actionName": "string",
- "effectId": "string",
- "status": { },
- "error": "string",
- "params": [
- {
- "id": null,
- "value": { }
}
]
}
]
}
}
], - "error": "string",
- "externalId": "string"
}
]
}List Purchase Orders
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "orderId": "string",
- "memberId": 0,
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "loyaltyEventId": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "customAttributes": { },
- "type": "string",
- "tags": [
- "string"
], - "total": 0,
- "discountedTotal": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "items": [
- {
- "orderItemId": "string",
- "orderId": "string",
- "productCode": "string",
- "description": "string",
- "customAttributes": { },
- "total": 0,
- "amount": 0,
- "discountedTotal": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "status": "created"
}
]
}Updates or Create a new Purchase Order
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
Request Body schema: application/jsonrequired
| externalEventDate | string <date-time> |
| externalId required | string |
| description | string |
| loyaltyProgramId | number |
| customAttributes | object |
| type required | string |
| tags | Array of strings |
| total required | number |
| discountedTotal | number |
| status required | string Enum: "created" "confirmed" "cancelled" "returned" "partially-returned" |
Array of objects (CreateMemberPurchaseOrderItemDto) |
Responses
Request samples
- Payload
{- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "loyaltyProgramId": 0,
- "customAttributes": { },
- "type": "string",
- "tags": [
- "string"
], - "total": 0,
- "discountedTotal": 0,
- "status": "created",
- "items": [
- {
- "productCode": "string",
- "description": "string",
- "customAttributes": { },
- "total": 0,
- "amount": 0,
- "discountedTotal": 0
}
]
}Response samples
- 200
{- "order": {
- "orderId": "string",
- "memberId": 0,
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "loyaltyEventId": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "customAttributes": { },
- "type": "string",
- "tags": [
- "string"
], - "total": 0,
- "discountedTotal": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "items": [
- {
- "orderItemId": "string",
- "orderId": "string",
- "productCode": "string",
- "description": "string",
- "customAttributes": { },
- "total": 0,
- "amount": 0,
- "discountedTotal": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "status": "created"
}, - "evaluationResults": {
- "systemUniqueKey": "string",
- "effects": [
- {
- "actionId": 1,
- "actionIndex": 1,
- "campaignId": 1,
- "campaignCode": "string",
- "actionName": "string",
- "effectId": "string",
- "status": { },
- "error": "string",
- "params": [
- {
- "id": "string",
- "value": { }
}
]
}
]
}
}Gets a Single Purchase Order details
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
| orderId required | number |
Responses
Response samples
- 200
{- "order": {
- "orderId": "string",
- "memberId": 0,
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "loyaltyEventId": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "customAttributes": { },
- "type": "string",
- "tags": [
- "string"
], - "total": 0,
- "discountedTotal": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "items": [
- {
- "orderItemId": "string",
- "orderId": "string",
- "productCode": "string",
- "description": "string",
- "customAttributes": { },
- "total": 0,
- "amount": 0,
- "discountedTotal": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "status": "created"
}
}Gets members events
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| fromCreatedAt | string <date-time> Filter events created from this date |
| toCreatedAt | string <date-time> Filter events created up to this date |
| eventType | string Enum: "member-purchase-order-created" "member-purchase-order-confirmed" "member-purchase-order-cancelled" "member-purchase-order-returned" "member-purchase-order-partially-returned" "member-created" "member-updated" "member-tier-set" "member-tier-removed" "member-profile-deactivated" "member-generic-event" "benefit-used" "coupon-code-assigned" "coupon-code-used" "badge-minted" "mission-status-updated" "ledger-transaction-created" Filter events by type |
| status | string Enum: "pending" "running" "failed" "success" Filter events by status |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "loyaltyEventId": "string",
- "loyaltyEventKey": "string",
- "organizationId": 0,
- "externalId": "string",
- "memberId": 0,
- "externalEventDate": "2019-08-24T14:15:22Z",
- "eventType": "string",
- "lastError": "string",
- "description": "string",
- "systemUniqueKey": "string",
- "tags": [
- "string"
], - "evaluationResults": { },
- "executionResults": { },
- "payload": { },
- "location": "string",
- "evaluationStatus": 0,
- "status": "pending",
- "limitDiscardedTotalAmount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}MissionController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| loyaltyProgramId | number >= 1 The loyalty program id |
| type | string |
| codes | string |
| tags | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "missionId": 0,
- "missionKey": "string",
- "campaignId": 0,
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "type": "string",
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "matcherId": 0,
- "eventType": "string",
- "active": true,
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "maxRepetitions": 0,
- "repetitionPeriod": "string",
- "periodLimit": 0,
- "goalCount": 0,
- "pointsAccrual": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}MissionController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| loyaltyProgramId required | number |
| name required | string |
| shortDescription | string |
| description | string |
| pictureUrl | string |
| customAttributes | object |
| type | string |
| audienceId | number |
| tags | Array of strings |
| code required | string |
| active | boolean |
| validFrom | string <date-time> |
| validTo | string <date-time> |
| repetitionPeriod | string |
| periodLimit | number |
| pointsAccrual | number |
| ledgerId | number |
| ledgerAccountId | number |
| eventType required | string Enum: "member-purchase-order-created" "member-purchase-order-confirmed" "member-purchase-order-cancelled" "member-purchase-order-returned" "member-purchase-order-partially-returned" "member-created" "member-updated" "member-tier-set" "member-tier-removed" "member-profile-deactivated" "member-generic-event" "benefit-used" "coupon-code-assigned" "coupon-code-used" "badge-minted" "mission-status-updated" "ledger-transaction-created" Event Type to match |
| maxRepetitions required | number >= 1 Max number of repetitions |
| goalCount required | number >= 1 Goal count |
| matcherId | number >= 1 Related matcher id |
Responses
Request samples
- Payload
{- "loyaltyProgramId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "type": "string",
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "active": true,
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "repetitionPeriod": "string",
- "periodLimit": 0,
- "pointsAccrual": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "eventType": "member-purchase-order-confirmed",
- "maxRepetitions": 10,
- "goalCount": 3,
- "matcherId": 1
}Response samples
- 200
{- "mission": {
- "missionId": 0,
- "missionKey": "string",
- "campaignId": 0,
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "type": "string",
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "matcherId": 0,
- "eventType": "string",
- "active": true,
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "maxRepetitions": 0,
- "repetitionPeriod": "string",
- "periodLimit": 0,
- "goalCount": 0,
- "pointsAccrual": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}MissionController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| missionId required | number |
Responses
Response samples
- 200
{- "mission": {
- "missionId": 0,
- "missionKey": "string",
- "campaignId": 0,
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "type": "string",
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "matcherId": 0,
- "eventType": "string",
- "active": true,
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "maxRepetitions": 0,
- "repetitionPeriod": "string",
- "periodLimit": 0,
- "goalCount": 0,
- "pointsAccrual": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}MissionController_update
Authorizations:
path Parameters
| organizationId required | number |
| missionId required | number |
Request Body schema: application/jsonrequired
| loyaltyProgramId required | number |
| name required | string |
| shortDescription | string |
| description | string |
| pictureUrl | string |
| customAttributes | object |
| type | string |
| audienceId | number |
| tags | Array of strings |
| code required | string |
| active | boolean |
| validFrom | string <date-time> |
| validTo | string <date-time> |
| pointsAccrual | number |
| ledgerId | number |
| ledgerAccountId | number |
| eventType required | string Enum: "member-purchase-order-created" "member-purchase-order-confirmed" "member-purchase-order-cancelled" "member-purchase-order-returned" "member-purchase-order-partially-returned" "member-created" "member-updated" "member-tier-set" "member-tier-removed" "member-profile-deactivated" "member-generic-event" "benefit-used" "coupon-code-assigned" "coupon-code-used" "badge-minted" "mission-status-updated" "ledger-transaction-created" Event Type to match |
| maxRepetitions required | number >= 1 Max number of repetitions |
| goalCount required | number >= 1 Goal count |
| matcherId | number >= 1 Related matcher id |
Responses
Request samples
- Payload
{- "loyaltyProgramId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "type": "string",
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "active": true,
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "pointsAccrual": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "eventType": "member-purchase-order-confirmed",
- "maxRepetitions": 10,
- "goalCount": 3,
- "matcherId": 1
}Response samples
- 200
{- "mission": {
- "missionId": 0,
- "missionKey": "string",
- "campaignId": 0,
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "type": "string",
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "matcherId": 0,
- "eventType": "string",
- "active": true,
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "maxRepetitions": 0,
- "repetitionPeriod": "string",
- "periodLimit": 0,
- "goalCount": 0,
- "pointsAccrual": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Gets organization's members details
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
string Filter by email | |
| loyaltyMemberId | string Filter by loyalty member id |
| walletId | number >= 1 Optional Wallet Id |
| fromCreatedAt | string <date-time> Filter members created from this date |
| toCreatedAt | string <date-time> Filter members created up to this date |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "onChain": {
- "wallets": [
- [
- "string"
]
]
}, - "profile": {
- "name": "string",
- "lastName": "string",
- "email": "string",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "2019-08-24T14:15:22Z",
- "phoneNumber": "string",
- "pictureUrl": "string",
- "nickname": "string",
- "emails": [
- "string"
], - "locations": [
- "string"
], - "gender": "string",
- "country": "string",
- "state": "string",
- "city": "string",
- "address": {
- "addressLine": "string",
- "floor": "string",
- "apartment": "string",
- "zipCode": "string"
}, - "tags": [
- "string"
], - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}
}, - "active": true,
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "publicLoyaltyMemberId": "11111-11111",
- "memberId": 123456,
- "organizationId": 123456,
- "tiers": [
- {
- "loyaltyTierId": 1,
- "expiresAt": "2024-02-26T02:18:13.117Z",
- "loyaltyProgramId": 123456
}
], - "ledgerWalletId": 123456,
- "ledgerWalletKey": "wal_2iNSGK6kGqEsZ2tPGgIu1a1nRaO",
- "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Creates a new Member in the current organization
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| loyaltyMemberId required | string Loyalty Member Id within Organization and Loyalty Program |
| memberType | string Type of the member. |
| publicLoyaltyMemberId | string Optional Public Loyalty Member Id within Organization and Loyalty Program |
object Member's Onchain Info. | |
object Member's Profile Info. | |
| customAttributes | object Custom dynamic attributes for organization member. |
| active | boolean |
| referralCode | string An Optional Referral Code |
Responses
Request samples
- Payload
{- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "publicLoyaltyMemberId": "11111-11111",
- "onChain": {
- "wallets": [
- [
- "string"
]
]
}, - "profile": {
- "name": "string",
- "lastName": "string",
- "email": "string",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "2019-08-24T14:15:22Z",
- "phoneNumber": "string",
- "pictureUrl": "string",
- "nickname": "string",
- "emails": [
- "string"
], - "locations": [
- "string"
], - "gender": "string",
- "country": "string",
- "state": "string",
- "city": "string",
- "address": {
- "addressLine": "string",
- "floor": "string",
- "apartment": "string",
- "zipCode": "string"
}, - "tags": [
- "string"
], - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}
}, - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "active": true,
- "referralCode": "test@email.com"
}Response samples
- 200
{- "loyalMember": {
- "onChain": {
- "wallets": [
- [
- "string"
]
]
}, - "profile": {
- "name": "string",
- "lastName": "string",
- "email": "string",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "2019-08-24T14:15:22Z",
- "phoneNumber": "string",
- "pictureUrl": "string",
- "nickname": "string",
- "emails": [
- "string"
], - "locations": [
- "string"
], - "gender": "string",
- "country": "string",
- "state": "string",
- "city": "string",
- "address": {
- "addressLine": "string",
- "floor": "string",
- "apartment": "string",
- "zipCode": "string"
}, - "tags": [
- "string"
], - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}
}, - "active": true,
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "publicLoyaltyMemberId": "11111-11111",
- "memberId": 123456,
- "organizationId": 123456,
- "tiers": [
- {
- "loyaltyTierId": 1,
- "expiresAt": "2024-02-26T02:18:13.117Z",
- "loyaltyProgramId": 123456
}
], - "ledgerWalletId": 123456,
- "ledgerWalletKey": "wal_2iNSGK6kGqEsZ2tPGgIu1a1nRaO",
- "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Get members by batch
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| memberIds required | Array of numbers |
Responses
Request samples
- Payload
{- "memberIds": [
- 0
]
}Response samples
- 200
{- "members": [
- {
- "onChain": {
- "wallets": [
- [
- "string"
]
]
}, - "profile": {
- "name": "string",
- "lastName": "string",
- "email": "string",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "2019-08-24T14:15:22Z",
- "phoneNumber": "string",
- "pictureUrl": "string",
- "nickname": "string",
- "emails": [
- "string"
], - "locations": [
- "string"
], - "gender": "string",
- "country": "string",
- "state": "string",
- "city": "string",
- "address": {
- "addressLine": "string",
- "floor": "string",
- "apartment": "string",
- "zipCode": "string"
}, - "tags": [
- "string"
], - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}
}, - "active": true,
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "publicLoyaltyMemberId": "11111-11111",
- "memberId": 123456,
- "organizationId": 123456,
- "tiers": [
- {
- "loyaltyTierId": 1,
- "expiresAt": "2024-02-26T02:18:13.117Z",
- "loyaltyProgramId": 123456
}
], - "ledgerWalletId": 123456,
- "ledgerWalletKey": "wal_2iNSGK6kGqEsZ2tPGgIu1a1nRaO",
- "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "notFound": [
- 0
]
}Gets organization's Member details
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
Responses
Response samples
- 200
{- "loyalMember": {
- "onChain": {
- "wallets": [
- [
- "string"
]
]
}, - "profile": {
- "name": "string",
- "lastName": "string",
- "email": "string",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "2019-08-24T14:15:22Z",
- "phoneNumber": "string",
- "pictureUrl": "string",
- "nickname": "string",
- "emails": [
- "string"
], - "locations": [
- "string"
], - "gender": "string",
- "country": "string",
- "state": "string",
- "city": "string",
- "address": {
- "addressLine": "string",
- "floor": "string",
- "apartment": "string",
- "zipCode": "string"
}, - "tags": [
- "string"
], - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}
}, - "active": true,
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "publicLoyaltyMemberId": "11111-11111",
- "memberId": 123456,
- "organizationId": 123456,
- "tiers": [
- {
- "loyaltyTierId": 1,
- "expiresAt": "2024-02-26T02:18:13.117Z",
- "loyaltyProgramId": 123456
}
], - "ledgerWalletId": 123456,
- "ledgerWalletKey": "wal_2iNSGK6kGqEsZ2tPGgIu1a1nRaO",
- "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Updates a existing Member details
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
Request Body schema: application/jsonrequired
object Member's Onchain Info. | |
object Member's Profile Info. | |
| customAttributes | object Custom dynamic attributes for organization member. |
| active | boolean |
| publicLoyaltyMemberId | string Optional Public Loyalty Member Id within Organization and Loyalty Program |
| loyaltyMemberId | string Loyalty Member Id within Organization and Loyalty Program |
| memberType | string Type of the member. |
| updateReason | string Reason for updating the member |
Responses
Request samples
- Payload
{- "onChain": {
- "wallets": [
- [
- "string"
]
]
}, - "profile": {
- "name": "string",
- "lastName": "string",
- "email": "string",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "2019-08-24T14:15:22Z",
- "phoneNumber": "string",
- "pictureUrl": "string",
- "nickname": "string",
- "emails": [
- "string"
], - "locations": [
- "string"
], - "gender": "string",
- "country": "string",
- "state": "string",
- "city": "string",
- "address": {
- "addressLine": "string",
- "floor": "string",
- "apartment": "string",
- "zipCode": "string"
}, - "tags": [
- "string"
], - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}
}, - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "active": true,
- "publicLoyaltyMemberId": "11111-11111",
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "updateReason": "Updated member profile information"
}Response samples
- 200
{- "loyalMember": {
- "onChain": {
- "wallets": [
- [
- "string"
]
]
}, - "profile": {
- "name": "string",
- "lastName": "string",
- "email": "string",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "2019-08-24T14:15:22Z",
- "phoneNumber": "string",
- "pictureUrl": "string",
- "nickname": "string",
- "emails": [
- "string"
], - "locations": [
- "string"
], - "gender": "string",
- "country": "string",
- "state": "string",
- "city": "string",
- "address": {
- "addressLine": "string",
- "floor": "string",
- "apartment": "string",
- "zipCode": "string"
}, - "tags": [
- "string"
], - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}
}, - "active": true,
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "publicLoyaltyMemberId": "11111-11111",
- "memberId": 123456,
- "organizationId": 123456,
- "tiers": [
- {
- "loyaltyTierId": 1,
- "expiresAt": "2024-02-26T02:18:13.117Z",
- "loyaltyProgramId": 123456
}
], - "ledgerWalletId": 123456,
- "ledgerWalletKey": "wal_2iNSGK6kGqEsZ2tPGgIu1a1nRaO",
- "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Sets Member's Loyalty Tier for Program
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
| loyaltyProgramId required | number |
Request Body schema: application/jsonrequired
| loyaltyTierId | number >= 1 The ID of the loyalty tier. If not specified, tier is unassigned |
| expiresAt | string <date-time> Optional Expiration Date of the Tier. At that expiration Tier will be re-evaluated. |
Responses
Request samples
- Payload
{- "loyaltyTierId": 1,
- "expiresAt": "2027-02-26T02:18:13.117Z"
}Response samples
- 200
{- "loyaltyTierId": 1
}Get Member's Loyalty Tier History for Program
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
| loyaltyProgramId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "organizationId": 1,
- "memberId": 1,
- "loyaltyProgramId": 1,
- "loyaltyTierId": 2,
- "createdAt": "2024-02-26T02:18:13.117Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Get member's missions and status
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| loyaltyProgramId | number >= 1 The loyalty program id |
| type | string |
| codes | string |
| tags | string |
| minTimesAchieved | number >= 0 Min number of times it has been achieved |
| minCounterCount | number >= 0 Min number of times the event has been triggered |
| available | boolean Filter available missions |
| inProgress | boolean If member started the mission but has not achieved it yet (even if she completed it in the past) |
| active | boolean Filter missions with active status |
| validFrom | string <date-time> Filter missions with valid from date |
| validTo | string <date-time> Filter missions with valid to date |
| missionKey | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "missionId": 0,
- "missionKey": "string",
- "campaignId": 0,
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "shortDescription": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "type": "string",
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "matcherId": 0,
- "eventType": "string",
- "active": true,
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "maxRepetitions": 0,
- "repetitionPeriod": "string",
- "periodLimit": 0,
- "goalCount": 0,
- "pointsAccrual": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "balance": {
- "memberId": 1,
- "timesAchieved": 0,
- "lastCounterCountWhenAchieved": 0,
- "currentCounterCount": 0,
- "lastAchievedAt": "2019-08-24T14:15:22Z"
}
}
]
}Increment member's mission counter
Authorizations:
path Parameters
| organizationId required | number |
| memberId required | number |
| missionId required | number |
Request Body schema: application/jsonrequired
| amount required | number >= 0 |
| systemUniqueKey | string |
| externalId | string |
| tags | Array of strings |
| description | string |
| externalEventDate | string <date-time> |
Responses
Request samples
- Payload
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalId": "string",
- "tags": [
- "stamp"
], - "description": "string",
- "externalEventDate": "2024-08-01T00:00:00.000Z"
}Response samples
- 200
{- "balance": {
- "memberId": 1,
- "timesAchieved": 0,
- "lastCounterCountWhenAchieved": 0,
- "currentCounterCount": 0,
- "lastAchievedAt": "2019-08-24T14:15:22Z",
- "lastGoalsAchieved": 0
}
}Parse string expressions to AST Expression Node
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
required | Array of objects (ParseRequestInputDto) The expressions to parse. |
| annotate | boolean Whether to annotate the AST. |
Responses
Request samples
- Payload
{- "inputs": [
- {
- "expression": "string",
- "isEffectExpression": true
}
], - "annotate": true
}Response samples
- 200
{- "nodes": [
- {
- "node": { },
- "expression": "string",
- "labelledExpression": "string",
- "errors": [
- "string"
], - "isEffectExpression": true
}
]
}Convert AST nodes to expressions
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
required | Array of objects (AST2ExpressionInputDto) The AST nodes. |
| annotate | boolean Whether to annotate the AST. |
Responses
Request samples
- Payload
{- "inputs": [
- {
- "node": { },
- "isEffectExpression": true
}
], - "annotate": true
}Response samples
- 200
{- "nodes": [
- {
- "node": { },
- "expression": "string",
- "labelledExpression": "string",
- "errors": [
- "string"
], - "isEffectExpression": true
}
]
}Gets organization's Loyalty Member details
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyMemberId required | string |
Responses
Response samples
- 200
{- "loyalMember": {
- "onChain": {
- "wallets": [
- [
- "string"
]
]
}, - "profile": {
- "name": "string",
- "lastName": "string",
- "email": "string",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "2019-08-24T14:15:22Z",
- "phoneNumber": "string",
- "pictureUrl": "string",
- "nickname": "string",
- "emails": [
- "string"
], - "locations": [
- "string"
], - "gender": "string",
- "country": "string",
- "state": "string",
- "city": "string",
- "address": {
- "addressLine": "string",
- "floor": "string",
- "apartment": "string",
- "zipCode": "string"
}, - "tags": [
- "string"
], - "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}
}, - "active": true,
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "publicLoyaltyMemberId": "11111-11111",
- "memberId": 123456,
- "organizationId": 123456,
- "tiers": [
- {
- "loyaltyTierId": 1,
- "expiresAt": "2024-02-26T02:18:13.117Z",
- "loyaltyProgramId": 123456
}
], - "ledgerWalletId": 123456,
- "ledgerWalletKey": "wal_2iNSGK6kGqEsZ2tPGgIu1a1nRaO",
- "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ledgerBalances": [
- {
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "walletId": 0,
- "balance": 0
}
]
}
}Sets organization's Loyalty Member tier
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyMemberId required | string |
Request Body schema: application/jsonrequired
| loyaltyTierId | number >= 1 The ID of the loyalty tier. If not specified, tier is unassigned |
| expiresAt | string <date-time> Optional Expiration Date of the Tier. At that expiration Tier will be re-evaluated. |
| loyaltyProgramId required | number The ID of the loyalty program |
Responses
Request samples
- Payload
{- "loyaltyTierId": 1,
- "expiresAt": "2027-02-26T02:18:13.117Z",
- "loyaltyProgramId": 0
}Response samples
- 200
{- "loyaltyTierId": 1
}Mints loyalty points to organization's Loyalty Member
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyMemberId required | string |
Request Body schema: application/jsonrequired
| ledgerId | number The ID of the ledger. If not specified, default ledger for organization is resolved. |
| ledgerAccountId | number The ID of the ledger account. If not specified, default ledger and ledger account for organization is resolved. |
| amount required | number >= 0 The amount to mint or burn |
| description | string The description of the mint/burn operation |
| tags | Array of strings Tags associated with the mint/burn operation |
| systemUniqueKey | string A unique key for the system |
| externalEventDate | string <date-time> The date of the external event |
| externalId | string The ID of the external event |
Responses
Request samples
- Payload
{- "ledgerId": 0,
- "ledgerAccountId": 0,
- "amount": 0,
- "description": "string",
- "tags": [
- "string"
], - "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string"
}Response samples
- 200
{- "ledgerTransactions": [
- {
- "ledgerTransactionId": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "organizationId": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "atomicSetId": 0,
- "revertedLedgerTransactionId": "string",
- "tags": [
- "string"
]
}
]
}Burns loyalty points to organization's Loyalty Member
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyMemberId required | string |
Request Body schema: application/jsonrequired
| ledgerId | number The ID of the ledger. If not specified, default ledger for organization is resolved. |
| ledgerAccountId | number The ID of the ledger account. If not specified, default ledger and ledger account for organization is resolved. |
| amount required | number >= 0 The amount to mint or burn |
| description | string The description of the mint/burn operation |
| tags | Array of strings Tags associated with the mint/burn operation |
| systemUniqueKey | string A unique key for the system |
| externalEventDate | string <date-time> The date of the external event |
| externalId | string The ID of the external event |
Responses
Request samples
- Payload
{- "ledgerId": 0,
- "ledgerAccountId": 0,
- "amount": 0,
- "description": "string",
- "tags": [
- "string"
], - "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string"
}Response samples
- 200
{- "ledgerTransactions": [
- {
- "ledgerTransactionId": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "organizationId": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "atomicSetId": 0,
- "revertedLedgerTransactionId": "string",
- "tags": [
- "string"
]
}
]
}ReferralsController_create
Authorizations:
path Parameters
| organizationId required | number |
| referralProgramId required | number |
Request Body schema: application/jsonrequired
| memberId required | number ID of the member referring the new member |
| codes required | Array of strings[ items ] |
Responses
Request samples
- Payload
{- "memberId": 111,
- "codes": [
- [
- "ABC111, XYZ999"
]
]
}Response samples
- 200
- 201
{- "referrals": [
- {
- "referralCodeId": 0,
- "memberId": 0,
- "referralProgramId": 0,
- "code": "string",
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}ReferralsController_findAllReferralCodes
Authorizations:
path Parameters
| organizationId required | number |
| referralProgramId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| memberId | number Example: memberId=111 ID of the member whose referral codes are being requested |
Responses
Response samples
- 200
{- "referrals": [
- {
- "referralCodeId": 0,
- "memberId": 0,
- "referralProgramId": 0,
- "code": "string",
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}ReferralsController_findAllReferred
Authorizations:
path Parameters
| organizationId required | number |
| referralProgramId required | number |
| referralCodeId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "referralLogId": 0,
- "referralCodeId": 0,
- "referredMemberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}ReferralsProgramController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "referralProgramId": 0,
- "referralProgramKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "active": true,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxPerCode": 0,
- "maxReferralsPerMember": 10,
- "maxRedeemsPerReferredMemberPerCode": 0,
- "campaignId": 0,
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "eventType": "string",
- "referrerPointsAccrual": 0,
- "referrerLedgerId": 0,
- "referrerLedgerAccountId": 0,
- "referredPointsAccrual": 0,
- "referredLedgerId": 0,
- "referredLedgerAccountId": 0,
- "referredCount": 0,
- "totalCodes": 0,
- "totalLogs": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}ReferralsProgramController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| loyaltyProgramId | number |
| name required | string |
| description | string |
| pictureUrl | string |
| customAttributes | object |
| active required | boolean |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| maxPerCode required | number |
| maxReferralsPerMember required | number Default: 9007199254740991 The maximum number of referrals per member |
| maxRedeemsPerReferredMemberPerCode | number |
| audienceId | number |
| tags | Array of strings |
| code required | string |
| eventType required | string |
| referrerPointsAccrual | number |
| referrerLedgerId | number |
| referrerLedgerAccountId | number |
| referredPointsAccrual | number |
| referredLedgerId | number |
| referredLedgerAccountId | number |
| referredCount | number |
Responses
Request samples
- Payload
{- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "active": true,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxPerCode": 0,
- "maxReferralsPerMember": 10,
- "maxRedeemsPerReferredMemberPerCode": 0,
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "eventType": "string",
- "referrerPointsAccrual": 0,
- "referrerLedgerId": 0,
- "referrerLedgerAccountId": 0,
- "referredPointsAccrual": 0,
- "referredLedgerId": 0,
- "referredLedgerAccountId": 0,
- "referredCount": 0
}Response samples
- 200
- 201
{- "referralProgram": {
- "referralProgramId": 0,
- "referralProgramKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "active": true,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxPerCode": 0,
- "maxReferralsPerMember": 10,
- "maxRedeemsPerReferredMemberPerCode": 0,
- "campaignId": 0,
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "eventType": "string",
- "referrerPointsAccrual": 0,
- "referrerLedgerId": 0,
- "referrerLedgerAccountId": 0,
- "referredPointsAccrual": 0,
- "referredLedgerId": 0,
- "referredLedgerAccountId": 0,
- "referredCount": 0,
- "totalCodes": 0,
- "totalLogs": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}ReferralsProgramController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| referralProgramId required | number |
Responses
Response samples
- 200
{- "referralProgram": {
- "referralProgramId": 0,
- "referralProgramKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "active": true,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxPerCode": 0,
- "maxReferralsPerMember": 10,
- "maxRedeemsPerReferredMemberPerCode": 0,
- "campaignId": 0,
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "eventType": "string",
- "referrerPointsAccrual": 0,
- "referrerLedgerId": 0,
- "referrerLedgerAccountId": 0,
- "referredPointsAccrual": 0,
- "referredLedgerId": 0,
- "referredLedgerAccountId": 0,
- "referredCount": 0,
- "totalCodes": 0,
- "totalLogs": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}ReferralsProgramController_update
Authorizations:
path Parameters
| organizationId required | number |
| referralProgramId required | number |
Request Body schema: application/jsonrequired
| loyaltyProgramId | number |
| name required | string |
| description | string |
| pictureUrl | string |
| customAttributes | object |
| active required | boolean |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| maxPerCode required | number |
| maxReferralsPerMember required | number Default: 9007199254740991 The maximum number of referrals per member |
| maxRedeemsPerReferredMemberPerCode | number |
| audienceId | number |
| tags | Array of strings |
| code required | string |
| eventType required | string |
| referrerPointsAccrual | number |
| referrerLedgerId | number |
| referrerLedgerAccountId | number |
| referredPointsAccrual | number |
| referredLedgerId | number |
| referredLedgerAccountId | number |
| referredCount | number |
Responses
Request samples
- Payload
{- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "active": true,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxPerCode": 0,
- "maxReferralsPerMember": 10,
- "maxRedeemsPerReferredMemberPerCode": 0,
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "eventType": "string",
- "referrerPointsAccrual": 0,
- "referrerLedgerId": 0,
- "referrerLedgerAccountId": 0,
- "referredPointsAccrual": 0,
- "referredLedgerId": 0,
- "referredLedgerAccountId": 0,
- "referredCount": 0
}Response samples
- 200
{- "referralProgram": {
- "referralProgramId": 0,
- "referralProgramKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "active": true,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxPerCode": 0,
- "maxReferralsPerMember": 10,
- "maxRedeemsPerReferredMemberPerCode": 0,
- "campaignId": 0,
- "audienceId": 0,
- "tags": [
- "string"
], - "code": "string",
- "eventType": "string",
- "referrerPointsAccrual": 0,
- "referrerLedgerId": 0,
- "referrerLedgerAccountId": 0,
- "referredPointsAccrual": 0,
- "referredLedgerId": 0,
- "referredLedgerAccountId": 0,
- "referredCount": 0,
- "totalCodes": 0,
- "totalLogs": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}ReferralsProgramController_getReferralMembersReport
Authorizations:
path Parameters
| organizationId required | number |
| referralProgramId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "memberId": 0,
- "name": "string",
- "email": "string",
- "invites": 0,
- "acceptedInvites": 0,
- "pointsAccumulated": 0
}
]
}Get all the actions for an organization
Authorizations:
path Parameters
| organizationId required | number |
| campaignId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| status | string Enum: "disabled" "running" "draft" The status of the action |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "campaignId": 0,
- "actionId": 0,
- "actionKey": "string",
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "organizationId": 0,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Creates a new action
Authorizations:
path Parameters
| organizationId required | number |
| campaignId required | number |
Request Body schema: application/jsonrequired
| actionIndex | number |
| abortEvaluationIfFalse | boolean |
| abortEvaluationOnError | boolean |
| name required | string |
| rules | object |
| effects required | object |
| status required | string Enum: "disabled" "running" "draft" |
Responses
Request samples
- Payload
{- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled"
}Response samples
- 201
{- "action": {
- "campaignId": 0,
- "actionId": 0,
- "actionKey": "string",
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "organizationId": 0,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Get an existing action details
Authorizations:
path Parameters
| organizationId required | number |
| campaignId required | number |
| actionId required | number |
Responses
Response samples
- 200
{- "action": {
- "campaignId": 0,
- "actionId": 0,
- "actionKey": "string",
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "organizationId": 0,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Updates an existing action
Authorizations:
path Parameters
| organizationId required | number |
| campaignId required | number |
| actionId required | number |
Request Body schema: application/jsonrequired
| actionIndex | number |
| abortEvaluationIfFalse | boolean |
| abortEvaluationOnError | boolean |
| name required | string |
| rules | object |
| effects required | object |
| status required | string Enum: "disabled" "running" "draft" |
Responses
Request samples
- Payload
{- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled"
}Response samples
- 200
{- "action": {
- "campaignId": 0,
- "actionId": 0,
- "actionKey": "string",
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "organizationId": 0,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}CampaignController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| loyaltyProgramId | number >= 1 The loyalty program id |
| type | string |
| tags | string |
| codes | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "campaignId": 0,
- "campaignKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "smartRewards": { },
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "code": "string",
- "active": true,
- "audienceKeys": [
- "string"
], - "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "eventType": "string",
- "minSpendValue": 0,
- "loyaltyTierKeys": [
- "string"
], - "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}CampaignController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| loyaltyProgramId | number |
| name required | string |
| description | string |
| pictureUrl | string |
| customAttributes | object |
| smartRewards | object |
| type | string |
| tags | Array of strings |
| enabledTopics | Array of strings |
| code required | string |
| active | boolean |
| audienceKeys | Array of strings |
| pointsMonthlyLimitPerMember | number |
| allowPartialApplicationOnLimit | boolean |
| daysOfWeek | Array of strings |
| locationCodes | Array of strings |
| eventType | string |
| minSpendValue | number |
| loyaltyTierKeys | Array of strings |
| validFrom | string <date-time> |
| validTo | string <date-time> |
Responses
Request samples
- Payload
{- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "smartRewards": { },
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "code": "string",
- "active": true,
- "audienceKeys": [
- "string"
], - "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "eventType": "string",
- "minSpendValue": 0,
- "loyaltyTierKeys": [
- "string"
], - "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}Response samples
- 200
- 201
{- "campaign": {
- "campaignId": 0,
- "campaignKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "smartRewards": { },
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "code": "string",
- "active": true,
- "audienceKeys": [
- "string"
], - "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "eventType": "string",
- "minSpendValue": 0,
- "loyaltyTierKeys": [
- "string"
], - "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}CampaignController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| campaignId required | number |
Responses
Response samples
- 200
{- "campaign": {
- "campaignId": 0,
- "campaignKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "smartRewards": { },
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "code": "string",
- "active": true,
- "audienceKeys": [
- "string"
], - "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "eventType": "string",
- "minSpendValue": 0,
- "loyaltyTierKeys": [
- "string"
], - "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}CampaignController_update
Authorizations:
path Parameters
| organizationId required | number |
| campaignId required | number |
Request Body schema: application/jsonrequired
| loyaltyProgramId | number |
| name required | string |
| description | string |
| pictureUrl | string |
| customAttributes | object |
| smartRewards | object |
| type | string |
| tags | Array of strings |
| enabledTopics | Array of strings |
| code required | string |
| active | boolean |
| audienceKeys | Array of strings |
| pointsMonthlyLimitPerMember | number |
| allowPartialApplicationOnLimit | boolean |
| daysOfWeek | Array of strings |
| locationCodes | Array of strings |
| eventType | string |
| minSpendValue | number |
| loyaltyTierKeys | Array of strings |
| validFrom | string <date-time> |
| validTo | string <date-time> |
Responses
Request samples
- Payload
{- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "smartRewards": { },
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "code": "string",
- "active": true,
- "audienceKeys": [
- "string"
], - "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "eventType": "string",
- "minSpendValue": 0,
- "loyaltyTierKeys": [
- "string"
], - "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}Response samples
- 200
{- "campaign": {
- "campaignId": 0,
- "campaignKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "customAttributes": { },
- "smartRewards": { },
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "code": "string",
- "active": true,
- "audienceKeys": [
- "string"
], - "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "eventType": "string",
- "minSpendValue": 0,
- "loyaltyTierKeys": [
- "string"
], - "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Get all the members indexes
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| loyaltyTierId | number >= 1 |
| loyaltyProgramId | number >= 1 |
| query | string Filter by full text search |
| sinceFrom | string <date-time> |
| sinceTo | string <date-time> |
| memberType | string |
| loyaltyTierKey | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "organizationId": 1,
- "memberId": 42,
- "loyaltyProgramId": 1,
- "loyaltyTierId": 1,
- "loyaltyMemberId": "AR-2312315-SD",
- "data": {
- "phoneNumber": "1234567890",
- "govId": {
- "id": "string",
- "type": "string",
- "issuingCountry": "string"
}, - "birthdate": "1990-01-01T00:00:00.000Z",
- "locations": [
- "location1",
- "location2"
], - "tags": [
- "tag1",
- "tag2"
], - "publicLoyaltyMemberId": "1234567890",
- "ledgerWalletId": 42
}, - "name": "John",
- "lastName": "Doe",
- "email": "email@example.com",
- "active": true,
- "since": "2021-01-01T00:00:00.000Z"
}
]
}Get stats for member creation
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
Responses
Response samples
- 200
{- "results": [
- {
- "date": "2024-01-01",
- "amount": 42
}
]
}Get stats for benefits usages by date
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
Responses
Response samples
- 200
{- "results": [
- {
- "date": "2024-01-01",
- "assigned": 42,
- "usages": 24
}
]
}Get stats for benefits performance
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
| limit | number Example: limit=10 |
| orderByUsage | boolean Example: orderByUsage=true If true it will order by usage, if not present it will order by assign |
Responses
Response samples
- 200
{- "results": [
- {
- "key": 23,
- "name": "name",
- "assigned": 42,
- "usages": 24,
- "type": "welcome"
}
]
}Get stats for coupon book usages
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
| tag | string Example: tag=cash |
Responses
Response samples
- 200
{- "results": [
- {
- "couponBookId": 1,
- "couponBookKey": "couponBookKey",
- "name": "name",
- "assigned": 42,
- "usages": 24,
- "discountAmount": 100
}
]
}Get top members for mission
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
| limit | number Example: limit=10 |
| tag | string Example: tag=stamp |
Responses
Response samples
- 200
{- "results": [
- {
- "key": 32,
- "amount": 42,
- "name": "John",
- "lastname": "Doe",
}
]
}Get stats for mission
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
| tag | string Example: tag=stamp |
Responses
Response samples
- 200
{- "results": [
- {
- "date": "2024-01-01",
- "amount": 42
}
]
}Get totals for mission
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
| tag | string Example: tag=stamp |
Responses
Response samples
- 200
{- "result": {
- "amount": 42
}
}Get stats for ledger accounts
Authorizations:
path Parameters
| organizationId required | number |
| ledgerAccountId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
Responses
Response samples
- 200
{- "result": {
- "totalAmount": 1000,
- "avgAmountPerUser": 50.5
}
}Get stats for events
Authorizations:
path Parameters
| organizationId required | number |
| eventType required | string |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
Responses
Response samples
- 200
{- "result": {
- "totalCount": 1500
}
}Get stats for coupon book discount amounts
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
| discountType | string Example: discountType=fixed |
Responses
Response samples
- 200
{- "result": {
- "totalDiscountAmountAssigned": 5000,
- "totalDiscountAmountUsed": 2500
}
}Get total mission completions by members
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| limit | number Example: limit=4 |
Responses
Response samples
- 200
{- "results": [
- {
- "name": "name",
- "totalMembersAchievedMission": 42,
- "totalActiveMissions": 20,
- "totalMembers": 42
}
]
}Get all the audiences for an organization
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| matcherType | string Enum: "attribute-matcher" "list-matcher" "null-matcher" Filter by matcher type |
| search | string Example: search=VIP customers Search audiences by name or description |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "audienceId": 0,
- "audienceKey": "string",
- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": { },
- "segmentKey": "string",
- "version": 0,
- "refreshedAt": "2019-08-24T14:15:22Z",
- "memberCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Creates a new audience
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| active required | boolean |
| organizationId required | number |
| name required | string |
| description | string |
| matcherType required | string Enum: "attribute-matcher" "list-matcher" "null-matcher" |
| matcher | object |
| segmentKey | string |
| refreshedAt | string <date-time> |
| memberCount | number |
Responses
Request samples
- Payload
{- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": { },
- "segmentKey": "string",
- "refreshedAt": "2019-08-24T14:15:22Z",
- "memberCount": 0
}Response samples
- 201
{- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": { },
- "segmentKey": "string",
- "refreshedAt": "2019-08-24T14:15:22Z",
- "memberCount": 0
}Get an existing audience details
Authorizations:
path Parameters
| organizationId required | number |
| audienceId required | number |
Responses
Response samples
- 200
{- "audience": {
- "audienceId": 0,
- "audienceKey": "string",
- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": { },
- "segmentKey": "string",
- "version": 0,
- "refreshedAt": "2019-08-24T14:15:22Z",
- "memberCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Updates an existing audience
Authorizations:
path Parameters
| organizationId required | number |
| audienceId required | number |
Request Body schema: application/jsonrequired
| active | boolean |
| organizationId | number |
| name | string |
| description | string |
| matcherType | string Enum: "attribute-matcher" "list-matcher" "null-matcher" |
| matcher | object |
| segmentKey | string |
| refreshedAt | string <date-time> |
| memberCount | number |
Responses
Request samples
- Payload
{- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": { },
- "segmentKey": "string",
- "refreshedAt": "2019-08-24T14:15:22Z",
- "memberCount": 0
}Response samples
- 200
{- "audience": {
- "audienceId": 0,
- "audienceKey": "string",
- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": { },
- "segmentKey": "string",
- "version": 0,
- "refreshedAt": "2019-08-24T14:15:22Z",
- "memberCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Gets matching audiences for a member
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| audienceIds required | Array of numbers |
required | object (MemberOrganizationAssociationDto) |
Responses
Request samples
- Payload
{- "audienceIds": [
- 0
], - "member": {
- "memberId": 123456,
- "organizationId": 123456,
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "publicLoyaltyMemberId": "11111-11111",
- "active": true,
- "customAttributes": {
- "address1": "Some address and street number",
- "phone": "+1-1234-56789"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Response samples
- 200
- 201
{- "audienceIds": [
- 0
]
}Gets a single Ledger
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
Responses
Response samples
- 200
{- "ledger": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "organizationId": 0,
- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "defaultAccountId": 0
}
}Updates a single Ledger
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| description | string |
| defaultAccountId | number |
Responses
Request samples
- Payload
{- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "defaultAccountId": 0
}Response samples
- 200
{- "ledger": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "organizationId": 0,
- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "defaultAccountId": 0
}
}Gets all Ledgers
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| ledgerKey | string Ledger Key |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "ledgerId": 0,
- "ledgerKey": "string",
- "organizationId": 0,
- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "defaultAccountId": 0
}
]
}Creates a single Ledger
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| description | string |
Responses
Request samples
- Payload
{- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger"
}Response samples
- 200
{- "ledger": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "organizationId": 0,
- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "defaultAccountId": 0
}
}Gets a single Ledger Account
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
Responses
Response samples
- 200
{- "ledgerAccount": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "name": "Main Ledger Account",
- "active": true,
- "isCurrency": true,
- "decimals": 0,
- "formatString": "string",
- "algorandAssetId": "string",
- "maxSupply": 0,
- "isRevolving": true,
- "pointTrackingEnabled": true,
- "syncAlgorand": true,
- "expiresInMonths": 0,
- "issued": 0,
- "isDefaultAccount": true
}
}Updates a single Ledger Account
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| active required | boolean |
| isCurrency | boolean Optional Is a currency? for account |
| decimals | number Optional decimals |
| formatString | string Optional Format string for points |
| isRevolving required | boolean |
| pointTrackingEnabled | boolean |
| syncAlgorand required | boolean Enable algorand blockchain syncing |
| expiresInMonths | number Points expiration in months |
| isDefaultAccount | boolean Is default account for ledger |
Responses
Request samples
- Payload
{- "name": "Main Ledger Account",
- "active": true,
- "isCurrency": true,
- "decimals": 0,
- "formatString": "string",
- "isRevolving": true,
- "pointTrackingEnabled": true,
- "syncAlgorand": true,
- "expiresInMonths": 0,
- "isDefaultAccount": true
}Response samples
- 200
{- "ledgerAccount": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "name": "Main Ledger Account",
- "active": true,
- "isCurrency": true,
- "decimals": 0,
- "formatString": "string",
- "algorandAssetId": "string",
- "maxSupply": 0,
- "isRevolving": true,
- "pointTrackingEnabled": true,
- "syncAlgorand": true,
- "expiresInMonths": 0,
- "issued": 0,
- "isDefaultAccount": true
}
}Gets a single Ledger Account Wallet Balance
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| walletId required | number |
Responses
Response samples
- 200
{- "wallet": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "isDefaultAccount": true,
- "ledgerAccountName": "string",
- "ledgerAccountKey": "string",
- "walletId": 0,
- "currentBalance": 0,
- "pendingCreditBalance": 0,
- "pendingDebitBalance": 0,
- "lastTransactionDate": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
}Gets all Ledger's Accounts
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| name | string |
| ledgerAccountKey | string Ledger Account Key |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "name": "Main Ledger Account",
- "active": true,
- "isCurrency": true,
- "decimals": 0,
- "formatString": "string",
- "algorandAssetId": "string",
- "maxSupply": 0,
- "isRevolving": true,
- "pointTrackingEnabled": true,
- "syncAlgorand": true,
- "expiresInMonths": 0,
- "issued": 0,
- "isDefaultAccount": true
}
]
}Creates a single Ledger Account
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| active required | boolean |
| isCurrency | boolean Optional Is a currency? for account |
| decimals | number Optional decimals |
| formatString | string Optional Format string for points |
| maxSupply | number Max points supply available (max allowed 18446744073709) |
| isRevolving required | boolean |
| pointTrackingEnabled | boolean |
| syncAlgorand required | boolean Enable algorand blockchain syncing |
| expiresInMonths | number Points expiration in months |
| isDefaultAccount | boolean Is default account for ledger |
Responses
Request samples
- Payload
{- "name": "Main Ledger Account",
- "active": true,
- "isCurrency": true,
- "decimals": 0,
- "formatString": "string",
- "maxSupply": 0,
- "isRevolving": true,
- "pointTrackingEnabled": true,
- "syncAlgorand": true,
- "expiresInMonths": 0,
- "isDefaultAccount": true
}Response samples
- 200
{- "ledgerAccount": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "name": "Main Ledger Account",
- "active": true,
- "isCurrency": true,
- "decimals": 0,
- "formatString": "string",
- "algorandAssetId": "string",
- "maxSupply": 0,
- "isRevolving": true,
- "pointTrackingEnabled": true,
- "syncAlgorand": true,
- "expiresInMonths": 0,
- "issued": 0,
- "isDefaultAccount": true
}
}Updates a single Ledger Account's Supply
Use an empty maxSupply or body {} to increase to an infinite supply.
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
Request Body schema: application/jsonrequired
| externalEventDate | string <date-time> Optional Reference Event Date |
| systemUniqueKey | string System Unique Key for tracking |
| externalId | string Event Id for tracking |
| description | string |
| tags | Array of arrays |
| maxSupply | number Max points supply available (max allowed 18446744073709) |
Responses
Request samples
- Payload
{- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "maxSupply": 0
}Response samples
- 200
{- "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}List Ledger's Account Transactions
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| fromExternalEventDate | string <date-time> Optional Reference From Event Date |
| toExternalEventDate | string <date-time> Optional Reference To Event Date |
| fromLedgerTransactionId | number Optional Starting ledgerTransactionId |
| toLedgerTransactionId | number Optional Ending ledgerTransactionId |
| systemUniqueKey | string Optional System Unique Key for tracking |
| walletId | number Optional Wallet Id |
| tags | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}Transfer points from/to Account Wallets
Amount must be a large integer (bigint or number, max allowed 18446744073709)
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
Request Body schema: application/jsonrequired
| externalEventDate | string <date-time> Optional Reference Event Date |
| systemUniqueKey | string System Unique Key for tracking |
| externalId | string Event Id for tracking |
| description | string |
| tags | Array of arrays |
| amount required | number Amount to mint or burn to account (max allowed 18446744073709) |
| fromWalletId required | number |
| toWalletId required | number |
| captureMethod | string Default: "auto" Enum: "manual" "auto" Capture method for the transaction |
Responses
Request samples
- Payload
{- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "captureMethod": "auto"
}Response samples
- 200
{- "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}Transfer multiple points from different Accounts from/to Wallets in a single all or nothing transaction
Amount must be a large integer (bigint or number, max allowed 18446744073709)
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
Request Body schema: application/jsonrequired
required | Array of objects (CreateLedgerTransactionSetItemDto) | ||||||||||||||||||||
Array
| |||||||||||||||||||||
Responses
Request samples
- Payload
{- "create": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "captureMethod": "auto",
- "ledgerAccountId": 0
}
]
}Response samples
- 200
{- "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}Reverts an existing Transaction
Amount must be a large integer (bigint or number, max allowed 18446744073709)
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
Request Body schema: application/jsonrequired
| externalEventDate | string <date-time> Optional Reference Event Date |
| systemUniqueKey | string System Unique Key for tracking |
| externalId | string Event Id for tracking |
| description | string |
| tags | Array of arrays |
Responses
Request samples
- Payload
{- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
]
}Response samples
- 200
{- "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}Burn points from Wallet
Amount must be a large integer (bigint or number, max allowed 18446744073709)
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| walletId required | number |
Request Body schema: application/jsonrequired
| amount required | number Amount to mint or burn to account (max allowed 18446744073709) |
| systemUniqueKey | string System Unique Key for tracking |
| externalEventDate | string <date-time> External event date |
| externalId | string External event id |
| description | string Description of the burn transaction |
| tags | Array of strings Tags |
| captureMethod | string Default: "auto" Enum: "manual" "auto" Capture method for the transaction |
Responses
Request samples
- Payload
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "tags": [
- "string"
], - "captureMethod": "auto"
}Response samples
- 200
{- "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}Mint points from Wallet
Amount must be a large integer (bigint or number, max allowed 18446744073709)
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| walletId required | number |
Request Body schema: application/jsonrequired
| amount required | number Amount to mint or burn to account (max allowed 18446744073709) |
| systemUniqueKey | string System Unique Key for tracking |
| externalEventDate | string <date-time> External event date |
| externalId | string External event id |
| description | string Description of the burn transaction |
| tags | Array of strings Tags |
Responses
Request samples
- Payload
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "tags": [
- "string"
]
}Response samples
- 200
{- "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}Capture pending transactions
Capture pending transactions for the given ledger account. Transactions must be in pending state.
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
Request Body schema: application/jsonrequired
required | Array of objects (CaptureTransactionDto) Ledger transactions to capture | ||||
Array
| |||||
Responses
Request samples
- Payload
{- "transactions": [
- {
- "ledgerTransactionId": "string",
- "captureAmount": 0
}
]
}Response samples
- 200
{- "ok": true
}Process a batch of transactions for a given organization Id
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
required | Array of objects (LedgerTransactionBatchItemRequestDto) | ||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "items": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "captureMethod": "auto",
- "organizationId": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "atomicSetId": 0
}
]
}Response samples
- 200
{- "processed": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "captureMethod": "auto",
- "organizationId": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "atomicSetId": 0,
- "error": "string",
- "ledgerAccountKey": "string",
- "ledgerKey": "string",
- "processedStatus": [
- "ok",
- "failed"
], - "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}
], - "failed": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "captureMethod": "auto",
- "organizationId": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "atomicSetId": 0,
- "error": "string",
- "ledgerAccountKey": "string",
- "ledgerKey": "string",
- "processedStatus": [
- "ok",
- "failed"
], - "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}
]
}Gets all wallet balances
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| walletId required | number |
Responses
Response samples
- 200
{- "wallets": [
- {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "isDefaultAccount": true,
- "ledgerAccountName": "string",
- "ledgerAccountKey": "string",
- "walletId": 0,
- "currentBalance": 0,
- "pendingCreditBalance": 0,
- "pendingDebitBalance": 0,
- "lastTransactionDate": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}Mints points to a wallet using default account for organization
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| walletId required | number |
Request Body schema: application/jsonrequired
| amount required | number Amount to mint or burn to account (max allowed 18446744073709) |
| systemUniqueKey | string System Unique Key for tracking |
| externalEventDate | string <date-time> External event date |
| externalId | string External event id |
| description | string Description of the burn transaction |
| tags | Array of strings Tags |
Responses
Request samples
- Payload
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "tags": [
- "string"
]
}Response samples
- 200
{- "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}Burns points from a wallet using default account for organization
Authorizations:
path Parameters
| organizationId required | number |
| ledgerId required | number |
| walletId required | number |
Request Body schema: application/jsonrequired
| amount required | number Amount to mint or burn to account (max allowed 18446744073709) |
| systemUniqueKey | string System Unique Key for tracking |
| externalEventDate | string <date-time> External event date |
| externalId | string External event id |
| description | string Description of the burn transaction |
| tags | Array of strings Tags |
| captureMethod | string Default: "auto" Enum: "manual" "auto" Capture method for the transaction |
Responses
Request samples
- Payload
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "tags": [
- "string"
], - "captureMethod": "auto"
}Response samples
- 200
{- "transactions": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "ledgerTransactionId": 1,
- "revertedLedgerTransactionId": 0,
- "reversalLedgerTransactionId": 0,
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "transactionType": [
- "0",
- "1",
- "2",
- "3",
- "transfer",
- "mint",
- "burn",
- "revert"
], - "status": [
- 0,
- 1,
- 2
], - "amount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "walletId": 0,
- "fromWalletId": 0,
- "ledgerTransactionDetailIndex": 0,
- "toWalletId": 0,
- "updatedBalance": 0
}
]
}Gets an existing Organization details
Authorizations:
path Parameters
| organizationId required | string |
Responses
Response samples
- 200
{- "organization": {
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "organizationKey": "string",
- "organizationId": 0,
- "defaultLoyaltyProgramId": 0,
- "subscriptionLevel": "not-initialized",
- "stripeCustomerId": "string",
- "defaultLocale": "string",
- "locales": [
- "string"
], - "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "createdAt": "string",
- "updatedAt": "string",
- "subscriptionExpirationDate": "2019-08-24T14:15:22Z"
}
}Updates an existing Organization
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| description required | string |
| pictureUrl required | string |
| defaultLoyaltyProgramId required | number |
| defaultLocale required | string |
| locales | Array of strings |
| customAttributes | object |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "defaultLoyaltyProgramId": 123456,
- "defaultLocale": "string",
- "locales": [
- "string"
], - "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}
}Response samples
- 200
{- "organization": {
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "organizationKey": "string",
- "organizationId": 0,
- "defaultLoyaltyProgramId": 0,
- "subscriptionLevel": "not-initialized",
- "stripeCustomerId": "string",
- "defaultLocale": "string",
- "locales": [
- "string"
], - "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "createdAt": "string",
- "updatedAt": "string",
- "subscriptionExpirationDate": "2019-08-24T14:15:22Z"
}
}List of Loyalty Tiers
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| loyaltyTierKey | string Loyalty Tier Key |
| onlyActive | boolean Only active loyalty tiers |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "organizationId": 123456,
- "loyaltyTierId": 123456,
- "loyaltyTierKey": "string",
- "name": "Silver",
- "loyaltyProgramId": 123456,
- "loyaltyProgramKey": "string",
- "active": true,
- "minRequiredPoints": 1000,
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "tierOrder": 1,
- "isDefault": true
}
]
}Creates a new Loyalty Tier
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
Request Body schema: application/jsonrequired
| name required | string Descriptive name for this Level. |
| active required | boolean |
| minRequiredPoints required | number Minimun balance in Point Accrual Account to move to this Tier Level |
| tierOrder required | number Order between all the program tiers. |
| customAttributes | object |
| pictureUrl | string Descriptive image url for this tier. |
| isDefault | boolean Boolean to set tier as default |
Responses
Request samples
- Payload
{- "name": "Silver",
- "active": true,
- "minRequiredPoints": 1000,
- "tierOrder": 1,
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "isDefault": true
}Response samples
- 200
{- "tier": {
- "organizationId": 123456,
- "loyaltyTierId": 123456,
- "loyaltyTierKey": "string",
- "name": "Silver",
- "loyaltyProgramId": 123456,
- "loyaltyProgramKey": "string",
- "active": true,
- "minRequiredPoints": 1000,
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "tierOrder": 1,
- "isDefault": true
}
}Gets a Single Loyalty Tier details
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
| loyaltyTierId required | number |
Responses
Response samples
- 200
{- "tier": {
- "organizationId": 123456,
- "loyaltyTierId": 123456,
- "loyaltyTierKey": "string",
- "name": "Silver",
- "loyaltyProgramId": 123456,
- "loyaltyProgramKey": "string",
- "active": true,
- "minRequiredPoints": 1000,
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "tierOrder": 1,
- "isDefault": true
}
}Updates an existing Loyalty Tier
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
| loyaltyTierId required | number |
Request Body schema: application/jsonrequired
| name required | string Descriptive name for this Level. |
| active required | boolean |
| minRequiredPoints required | number Minimun balance in Point Accrual Account to move to this Tier Level |
| tierOrder required | number Order between all the program tiers. |
| customAttributes | object |
| pictureUrl | string Descriptive image url for this tier. |
| isDefault | boolean Boolean to set tier as default |
Responses
Request samples
- Payload
{- "name": "Silver",
- "active": true,
- "minRequiredPoints": 1000,
- "tierOrder": 1,
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "isDefault": true
}Response samples
- 200
{- "tier": {
- "organizationId": 123456,
- "loyaltyTierId": 123456,
- "loyaltyTierKey": "string",
- "name": "Silver",
- "loyaltyProgramId": 123456,
- "loyaltyProgramKey": "string",
- "active": true,
- "minRequiredPoints": 1000,
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "tierOrder": 1,
- "isDefault": true
}
}LoyaltyProgramController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
Responses
Response samples
- 200
{- "loyaltyProgram": {
- "active": true,
- "name": "My Super Loyalty Program",
- "ledgerId": "123456",
- "tierPointsLedgerAccountId": "123456",
- "mainLedgerAccountId": "123456",
- "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt...",
- "setAsDefault": true,
- "mainPortalId": "123456",
- "defaultTierId": "123456",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "loyaltyProgramKey": "string"
}
}LoyaltyProgramController_update
Authorizations:
path Parameters
| organizationId required | number |
| loyaltyProgramId required | number |
Request Body schema: application/jsonrequired
| active required | boolean |
| name required | string |
| ledgerId required | number |
| tierPointsLedgerAccountId | number |
| mainLedgerAccountId | number |
| description required | string Loyalty Program short Description |
| setAsDefault required | boolean Sets as organization's default Loyalty Program |
| mainPortalId | number |
Responses
Request samples
- Payload
{- "active": true,
- "name": "My Super Loyalty Program",
- "ledgerId": "123456",
- "tierPointsLedgerAccountId": "123456",
- "mainLedgerAccountId": "123456",
- "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt...",
- "setAsDefault": true,
- "mainPortalId": "123456"
}Response samples
- 200
{- "loyaltyProgram": {
- "active": true,
- "name": "My Super Loyalty Program",
- "ledgerId": "123456",
- "tierPointsLedgerAccountId": "123456",
- "mainLedgerAccountId": "123456",
- "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt...",
- "setAsDefault": true,
- "mainPortalId": "123456",
- "defaultTierId": "123456",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "loyaltyProgramKey": "string"
}
}LoyaltyProgramController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| default | boolean Default: true |
| loyaltyProgramKey | string Loyalty Program Key |
Responses
Response samples
- 200
{- "loyaltyPrograms": [
- {
- "active": true,
- "name": "My Super Loyalty Program",
- "ledgerId": "123456",
- "tierPointsLedgerAccountId": "123456",
- "mainLedgerAccountId": "123456",
- "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt...",
- "setAsDefault": true,
- "mainPortalId": "123456",
- "defaultTierId": "123456",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "loyaltyProgramKey": "string"
}
]
}LoyaltyProgramController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| active required | boolean |
| name required | string |
| ledgerId required | number |
| tierPointsLedgerAccountId | number |
| mainLedgerAccountId | number |
| description required | string Loyalty Program short Description |
| setAsDefault required | boolean Sets as organization's default Loyalty Program |
| mainPortalId | number |
| defaultTierId | number |
Responses
Request samples
- Payload
{- "active": true,
- "name": "My Super Loyalty Program",
- "ledgerId": "123456",
- "tierPointsLedgerAccountId": "123456",
- "mainLedgerAccountId": "123456",
- "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt...",
- "setAsDefault": true,
- "mainPortalId": "123456",
- "defaultTierId": "123456"
}Response samples
- 200
{- "loyaltyProgram": {
- "active": true,
- "name": "My Super Loyalty Program",
- "ledgerId": "123456",
- "tierPointsLedgerAccountId": "123456",
- "mainLedgerAccountId": "123456",
- "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt...",
- "setAsDefault": true,
- "mainPortalId": "123456",
- "defaultTierId": "123456",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "loyaltyProgramKey": "string"
}
}OrganizationUserController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
string | |
| userName | string Filter by user name |
| active | boolean |
| authClientId | string Filter by auth client id |
| includeAPIUsers | boolean |
| includeCognitoUsers | boolean |
| search | string Filter by full text search |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "customAttributes": {
- "key": "value"
}, - "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "userId": "USER-123456",
- "authClientId": "CLIENT-123456",
- "userName": "johnconnor",
- "email": "john@connor.com",
- "isApiUser": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}OrganizationUserController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| active required | boolean |
| name required | string |
| nickname required | string |
| profilePictureUrl required | string |
| isSystemAdmin required | boolean |
| pendingProvisioning required | boolean |
| customAttributes required | object |
| passwordIsTemporary | boolean Create password as temporary |
| password | string User temporary password |
| sendInvite | boolean Send invite to user |
| isAdmin required | boolean |
| roles required | Array of strings Items Enum: "ledgers:write" "ledgers:read" "orders:write" "orders:read" "campaigns:write" "campaigns:read" "badges:write" "badges:read" "benefits:write" "benefits:read" "tiers:write" "tiers:read" "members:write" "members:read" "coupons:write" "coupons:read" "partnerships:write" "partnerships:read" "users:write" "users:read" |
| emailIsVerified | boolean Set email as verified |
| userName required | string Unique User Name |
| email required | string User email address |
| authClientId required | string Auth Client Id of the App that created the user |
Responses
Request samples
- Payload
{- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "customAttributes": {
- "key": "value"
}, - "passwordIsTemporary": false,
- "password": "my-secret-password",
- "sendInvite": false,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
], - "emailIsVerified": true,
- "userName": "johnconnor",
- "email": "john@connor.com",
- "authClientId": "CLIENT-123456"
}Response samples
- 200
{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "customAttributes": {
- "key": "value"
}, - "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "userId": "USER-123456",
- "authClientId": "CLIENT-123456",
- "userName": "johnconnor",
- "email": "john@connor.com",
- "isApiUser": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "password": "my-secret-password"
}OrganizationUserController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| userId required | string |
Responses
Response samples
- 200
{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "customAttributes": {
- "key": "value"
}, - "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "userId": "USER-123456",
- "authClientId": "CLIENT-123456",
- "userName": "johnconnor",
- "email": "john@connor.com",
- "isApiUser": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}OrganizationUserController_update
Authorizations:
path Parameters
| organizationId required | number |
| userId required | string |
Request Body schema: application/jsonrequired
| active required | boolean |
| name required | string |
| nickname required | string |
| profilePictureUrl required | string |
| isSystemAdmin required | boolean |
| pendingProvisioning required | boolean |
| customAttributes required | object |
| organizations required | Array of strings Related organizations |
Responses
Request samples
- Payload
{- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "customAttributes": {
- "key": "value"
}, - "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
]
}Response samples
- 200
{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "customAttributes": {
- "key": "value"
}, - "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "userId": "USER-123456",
- "authClientId": "CLIENT-123456",
- "userName": "johnconnor",
- "email": "john@connor.com",
- "isApiUser": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}OrganizationUserController_updatePermissions
Authorizations:
path Parameters
| organizationId required | number |
| userId required | string |
Request Body schema: application/jsonrequired
| isAdmin required | boolean |
| roles required | Array of strings Items Enum: "ledgers:write" "ledgers:read" "orders:write" "orders:read" "campaigns:write" "campaigns:read" "badges:write" "badges:read" "benefits:write" "benefits:read" "tiers:write" "tiers:read" "members:write" "members:read" "coupons:write" "coupons:read" "partnerships:write" "partnerships:read" "users:write" "users:read" |
Responses
Request samples
- Payload
{- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}Response samples
- 200
{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "customAttributes": {
- "key": "value"
}, - "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "userId": "USER-123456",
- "authClientId": "CLIENT-123456",
- "userName": "johnconnor",
- "email": "john@connor.com",
- "isApiUser": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}OrganizationUserController_adminSetPassword
Authorizations:
path Parameters
| organizationId required | number |
| userId required | string |
Request Body schema: application/jsonrequired
| permanent | boolean Indicates if the password is permanent |
| password required | string The new password |
Responses
Request samples
- Payload
{- "permanent": true,
- "password": "string"
}Response samples
- 200
{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "customAttributes": {
- "key": "value"
}, - "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "userId": "USER-123456",
- "authClientId": "CLIENT-123456",
- "userName": "johnconnor",
- "email": "john@connor.com",
- "isApiUser": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Get all portals
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| publicId | string |
Responses
Response samples
- 200
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "portalId": 0,
- "name": "string",
- "publicId": "string",
- "organizationId": 0,
- "customAttributes": { },
- "links": { },
- "theme": { },
- "forms": { },
- "metadata": { },
- "active": true,
- "loyaltyProgramId": 0,
- "authRedirectUrl": "string",
- "authValidScopes": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Create portal
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| customAttributes | object |
| links | object |
| theme | object |
| forms | object |
| metadata | object |
| active required | boolean |
| loyaltyProgramId | number |
| authRedirectUrl | string |
| authValidScopes | Array of strings |
| createdAt | string <date-time> |
| updatedAt | string <date-time> |
Responses
Request samples
- Payload
{- "name": "string",
- "customAttributes": { },
- "links": { },
- "theme": { },
- "forms": { },
- "metadata": { },
- "active": true,
- "loyaltyProgramId": 0,
- "authRedirectUrl": "string",
- "authValidScopes": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Response samples
- 201
{- "portal": {
- "portalId": 0,
- "name": "string",
- "publicId": "string",
- "organizationId": 0,
- "customAttributes": { },
- "links": { },
- "theme": { },
- "forms": { },
- "metadata": { },
- "active": true,
- "loyaltyProgramId": 0,
- "authRedirectUrl": "string",
- "authValidScopes": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Get portal by id
Authorizations:
path Parameters
| organizationId required | number |
| portalId required | number |
Responses
Response samples
- 200
{- "portal": {
- "portalId": 0,
- "name": "string",
- "publicId": "string",
- "organizationId": 0,
- "customAttributes": { },
- "links": { },
- "theme": { },
- "forms": { },
- "metadata": { },
- "active": true,
- "loyaltyProgramId": 0,
- "authRedirectUrl": "string",
- "authValidScopes": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Update portal
Authorizations:
path Parameters
| organizationId required | number |
| portalId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| publicId required | string |
| customAttributes | object |
| links | object |
| theme | object |
| forms | object |
| metadata | object |
| active required | boolean |
| loyaltyProgramId | number |
| authRedirectUrl | string |
| authValidScopes | Array of strings |
| createdAt | string <date-time> |
| updatedAt | string <date-time> |
Responses
Request samples
- Payload
{- "name": "string",
- "publicId": "string",
- "customAttributes": { },
- "links": { },
- "theme": { },
- "forms": { },
- "metadata": { },
- "active": true,
- "loyaltyProgramId": 0,
- "authRedirectUrl": "string",
- "authValidScopes": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Response samples
- 200
{- "portal": {
- "portalId": 0,
- "name": "string",
- "publicId": "string",
- "organizationId": 0,
- "customAttributes": { },
- "links": { },
- "theme": { },
- "forms": { },
- "metadata": { },
- "active": true,
- "loyaltyProgramId": 0,
- "authRedirectUrl": "string",
- "authValidScopes": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Response samples
- 200
{- "portal": {
- "portalId": 0,
- "name": "string",
- "publicId": "string",
- "organizationId": 0,
- "customAttributes": { },
- "links": { },
- "theme": { },
- "forms": { },
- "metadata": { },
- "active": true,
- "loyaltyProgramId": 0,
- "authRedirectUrl": "string",
- "authValidScopes": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}OrderLocationController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| orderLocationCodes | Array of strings Example: orderLocationCodes=argentina&orderLocationCodes=chile Filter by order location codes |
Responses
Response samples
- 200
{- "results": [
- {
- "orderLocationCode": "argentina",
- "organizationId": 1,
- "orderLocationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
], - "totalCount": 25,
- "limit": 10,
- "page": 1
}OrderLocationController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| orderLocationCode required | string Order location code identifier |
| orderLocationLabel required | string Order location display label |
| tags | Array of strings Order location tags |
Responses
Request samples
- Payload
{- "orderLocationCode": "argentina",
- "orderLocationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
]
}Response samples
- 201
{- "orderLocation": {
- "orderLocationCode": "argentina",
- "organizationId": 1,
- "orderLocationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}OrderLocationController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| orderLocationCode required | string |
Responses
Response samples
- 200
{- "orderLocation": {
- "orderLocationCode": "argentina",
- "organizationId": 1,
- "orderLocationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}OrderLocationController_update
Authorizations:
path Parameters
| organizationId required | number |
| orderLocationCode required | string |
Request Body schema: application/jsonrequired
| orderLocationLabel | string Order location display label |
| tags | Array of strings Order location tags |
Responses
Request samples
- Payload
{- "orderLocationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
]
}Response samples
- 200
{- "orderLocation": {
- "orderLocationCode": "argentina",
- "organizationId": 1,
- "orderLocationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}ProductCategoryController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| productCategoryCodes | Array of strings Example: productCategoryCodes=electronics&productCategoryCodes=clothing&productCategoryCodes=food Filter by product category codes |
Responses
Response samples
- 200
{- "results": [
- {
- "productCategoryCode": "electronics",
- "organizationId": 1,
- "productCategoryLabel": "Electronics",
- "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
], - "totalCount": 25,
- "limit": 10,
- "page": 1
}ProductCategoryController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| productCategoryCode required | string Unique product category code |
| productCategoryLabel required | string Human-readable product category label |
| tags | Array of strings Product category tags |
Responses
Request samples
- Payload
{- "productCategoryCode": "electronics",
- "productCategoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
]
}Response samples
- 201
{- "productCategory": {
- "productCategoryCode": "electronics",
- "organizationId": 1,
- "productCategoryLabel": "Electronics",
- "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}ProductCategoryController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| productCategoryCode required | string |
Responses
Response samples
- 200
{- "productCategory": {
- "productCategoryCode": "electronics",
- "organizationId": 1,
- "productCategoryLabel": "Electronics",
- "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}ProductCategoryController_update
Authorizations:
path Parameters
| organizationId required | number |
| productCategoryCode required | string |
Request Body schema: application/jsonrequired
| productCategoryLabel | string Human-readable product category label |
| tags | Array of strings Product category tags |
Responses
Request samples
- Payload
{- "productCategoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
]
}Response samples
- 200
{- "productCategory": {
- "productCategoryCode": "electronics",
- "organizationId": 1,
- "productCategoryLabel": "Electronics",
- "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}LocationController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| locationCodes | Array of strings Example: locationCodes=argentina&locationCodes=chile Filter by location codes |
Responses
Response samples
- 200
{- "results": [
- {
- "locationCode": "argentina",
- "organizationId": 1,
- "locationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
], - "totalCount": 25,
- "limit": 10,
- "page": 1
}LocationController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| locationCode required | string Location code identifier |
| locationLabel required | string Location display label |
| tags | Array of strings Location tags |
Responses
Request samples
- Payload
{- "locationCode": "argentina",
- "locationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
]
}Response samples
- 201
{- "location": {
- "locationCode": "argentina",
- "organizationId": 1,
- "locationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}LocationController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| locationCode required | string |
Responses
Response samples
- 200
{- "location": {
- "locationCode": "argentina",
- "organizationId": 1,
- "locationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}LocationController_update
Authorizations:
path Parameters
| organizationId required | number |
| locationCode required | string |
Request Body schema: application/jsonrequired
| locationLabel | string Location display label |
| tags | Array of strings Location tags |
Responses
Request samples
- Payload
{- "locationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
]
}Response samples
- 200
{- "location": {
- "locationCode": "argentina",
- "organizationId": 1,
- "locationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}CategoryController_findAll
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| categoryCodes | Array of strings Example: categoryCodes=electronics&categoryCodes=clothing&categoryCodes=food Filter by category codes |
Responses
Response samples
- 200
{- "results": [
- {
- "categoryCode": "electronics",
- "organizationId": 1,
- "categoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
], - "totalCount": 25,
- "limit": 10,
- "page": 1
}CategoryController_create
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| categoryCode required | string Unique category code |
| categoryLabel required | string Human-readable category label |
| tags | Array of strings Category tags |
Responses
Request samples
- Payload
{- "categoryCode": "electronics",
- "categoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
]
}Response samples
- 201
{- "category": {
- "categoryCode": "electronics",
- "organizationId": 1,
- "categoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}CategoryController_findOne
Authorizations:
path Parameters
| organizationId required | number |
| categoryCode required | string |
Responses
Response samples
- 200
{- "category": {
- "categoryCode": "electronics",
- "organizationId": 1,
- "categoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}CategoryController_update
Authorizations:
path Parameters
| organizationId required | number |
| categoryCode required | string |
Request Body schema: application/jsonrequired
| categoryLabel | string Human-readable category label |
| tags | Array of strings Category tags |
Responses
Request samples
- Payload
{- "categoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
]
}Response samples
- 200
{- "category": {
- "categoryCode": "electronics",
- "organizationId": 1,
- "categoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}Create a new content schema
Authorizations:
path Parameters
| organizationId required | number |
Request Body schema: application/jsonrequired
| name required | string |
| description | string |
| pictureUrl | string |
| type required | number |
| active required | boolean |
| schema required | string |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "schema": "string"
}Response samples
- 200
{- "contentSchemaId": 0,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "contentSchemaVersionId": 0,
- "schema": "string"
}Retrieve all content schemas
Authorizations:
path Parameters
| organizationId required | number |
query Parameters
| page | number >= 0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=10 The limit of items to return per page |
| order | string Order of columns in result in the format 'column,asc|desc?'. Samples: ?order=col1 or ?order=col1,asc |
| type | number |
| active | boolean |
| includeLastSchema | boolean |
Responses
Response samples
- 200
[- {
- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "contentSchemaId": 0,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "contentSchemaVersionId": 0,
- "schema": "string"
}
]
}
]Retrieve a content schema by ID
Authorizations:
path Parameters
| organizationId required | number |
| id required | string |
Responses
Response samples
- 200
{- "contentSchemaId": 0,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "contentSchemaVersionId": 0,
- "schema": "string"
}Update a content schema
Authorizations:
path Parameters
| organizationId required | number |
| id required | string |
Request Body schema: application/jsonrequired
| name | string |
| description | string |
| pictureUrl | string |
| type | number |
| active | boolean |
| schema | string |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "schema": "string"
}Response samples
- 200
{- "contentSchemaId": 0,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "contentSchemaVersionId": 0,
- "schema": "string"
}Retrieve a content schema by ID and version
Authorizations:
path Parameters
| organizationId required | number |
| id required | string |
| versionId required | string |
Responses
Response samples
- 200
{- "contentSchemaId": 0,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "contentSchemaVersionId": 0,
- "schema": "string"
}