Download OpenAPI specification:Download
| organizationId required | number |
| 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 results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| loyaltyProgramId | number |
| search | string Case-insensitive substring match across the coupon book's name, description, and externalId. |
| tags | string Filter by all of these tags (AND logic). Comma-separated. |
| tagsAny | string Filter by any of these tags (OR logic). Comma-separated. |
| status | Array of strings Items Enum: "draft" "published" "disabled" "archived" The status of the coupon book. Accepts a single value or comma-separated list (e.g. 'draft,disabled'). |
| locale | string Deprecated Translation locale requested for the coupon |
| audiences | string |
| locations | string |
| categories | string |
| productCategories | string |
| paymentMethods | string |
| channels | string |
| channelsMatch | string Default: "effective" Enum: "effective" "exact" How the channels filter treats books with no channel restriction. 'effective' (default): they match. 'exact': they are excluded. |
| daysOfWeek | string |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| validFromDateMin | string <date-time> Admin filter: return only books whose validFromDate >= this value (future start). NULL validFromDate values are excluded. |
| validToDateMax | string <date-time> Admin filter: return only books whose validToDate <= this value (already expired). Books with no validToDate are excluded. |
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "publishingStatus": "archived",
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentVersionId": 0,
- "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "images": { },
- "rankingIndex": 0,
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxDiscountPerPeriod": 0,
- "discountPeriodType": "daily",
- "maxUsagesPerPeriod": 0,
- "usagePeriodType": "daily",
- "timezone": "string",
- "maxDiscountPerUse": 0,
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "audienceKeys": [
- "string"
], - "locations": [
- "string"
], - "categories": [
- "string"
], - "productCategories": [
- "string"
], - "paymentMethods": [
- "string"
], - "channels": [
- "string"
], - "daysOfWeek": [
- "string"
], - "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "customAttributes": { },
- "condition": { }
}
]
}| organizationId required | number |
| loyaltyProgramId | number |
| externalId | string |
| publishingStatus required | string Enum: "draft" "published" "disabled" Publishing status of the coupon book |
| maxCouponCount | number |
| currentVersionId | number |
| name required | string |
| description | string |
| subtitle | string |
| pictureUrl | string |
| detailPictureUrl | string |
| images | object |
| rankingIndex | number |
| type required | string Enum: "single" "list" "generated" "codeless" Type of coupon book |
| discountAmount | number |
| discountType | string |
| maxAssignedPerMember | number |
| maxAssignedPerCoupon | number |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| maxDiscountPerPeriod | number |
| discountPeriodType | string Enum: "daily" "weekly" "monthly" |
| maxUsagesPerPeriod | number |
| usagePeriodType | string Enum: "daily" "weekly" "monthly" |
| timezone | string |
| maxDiscountPerUse | number Maximum discount amount allowed per use |
| assignmentRequiredPoints | number |
| usageRequiredPoints | number |
| tags | Array of strings |
| tiers | Array of strings |
| audienceKeys | Array of strings |
| locations | Array of strings or null Locations for filtering coupon books by location |
| categories | Array of strings or null Categories for filtering coupon books by category |
| productCategories | Array of strings or null Product categories for filtering coupon books by product category |
| paymentMethods | Array of strings or null Payment methods for filtering coupon books by payment method |
| channels | Array of strings or null Channels for filtering coupon books by channel |
| daysOfWeek | Array of numbers Days of week when coupon book is available (1=Monday, 7=Sunday) |
| contentSchemaId | number |
| contentSchemaVersionId | number |
| customAttributes | object |
| condition | object |
| locale | string Deprecated Locale |
| content | object Deprecated Content of the coupon book |
| isDefaultLocale | boolean Deprecated Is the locale default |
| defaultLocale | string Deprecated Default locale |
| requiredPointsConfig required | object (RequiredPointsConfig) |
{- "loyaltyProgramId": 0,
- "externalId": "string",
- "publishingStatus": "draft",
- "maxCouponCount": 0,
- "currentVersionId": 0,
- "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "images": { },
- "rankingIndex": 0,
- "type": "single",
- "discountAmount": 0,
- "discountType": "string",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxDiscountPerPeriod": 0,
- "discountPeriodType": "daily",
- "maxUsagesPerPeriod": 0,
- "usagePeriodType": "daily",
- "timezone": "string",
- "maxDiscountPerUse": 1000,
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "audienceKeys": [
- "string"
], - "locations": [
- "string"
], - "categories": [
- "string"
], - "productCategories": [
- "string"
], - "paymentMethods": [
- "string"
], - "channels": [
- "string"
], - "daysOfWeek": [
- 1,
- 2,
- 3,
- 4,
- 5
], - "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "customAttributes": { },
- "condition": { },
- "locale": "string",
- "content": { },
- "isDefaultLocale": true,
- "defaultLocale": "string",
- "requiredPointsConfig": { }
}{- "couponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "publishingStatus": "archived",
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentVersionId": 0,
- "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "images": { },
- "rankingIndex": 0,
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxDiscountPerPeriod": 0,
- "discountPeriodType": "daily",
- "maxUsagesPerPeriod": 0,
- "usagePeriodType": "daily",
- "timezone": "string",
- "maxDiscountPerUse": 0,
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "audienceKeys": [
- "string"
], - "locations": [
- "string"
], - "categories": [
- "string"
], - "productCategories": [
- "string"
], - "paymentMethods": [
- "string"
], - "channels": [
- "string"
], - "daysOfWeek": [
- "string"
], - "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "customAttributes": { },
- "condition": { }
}
}| organizationId required | number |
| couponBookId required | number |
{- "couponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "publishingStatus": "archived",
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentVersionId": 0,
- "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "images": { },
- "rankingIndex": 0,
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxDiscountPerPeriod": 0,
- "discountPeriodType": "daily",
- "maxUsagesPerPeriod": 0,
- "usagePeriodType": "daily",
- "timezone": "string",
- "maxDiscountPerUse": 0,
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "audienceKeys": [
- "string"
], - "locations": [
- "string"
], - "categories": [
- "string"
], - "productCategories": [
- "string"
], - "paymentMethods": [
- "string"
], - "channels": [
- "string"
], - "daysOfWeek": [
- "string"
], - "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "customAttributes": { },
- "condition": { }
}
}| organizationId required | number |
| couponBookId required | number |
| loyaltyProgramId | number |
| externalId | string |
| maxCouponCount | number |
| currentVersionId | number |
| description | string |
| subtitle | string |
| pictureUrl | string |
| detailPictureUrl | string |
| images | object |
| rankingIndex | number |
| discountAmount | number |
| discountType | string |
| maxAssignedPerMember | number |
| maxAssignedPerCoupon | number |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| maxDiscountPerPeriod | number |
| discountPeriodType | string Enum: "daily" "weekly" "monthly" |
| maxUsagesPerPeriod | number |
| usagePeriodType | string Enum: "daily" "weekly" "monthly" |
| timezone | string |
| maxDiscountPerUse | number Maximum discount amount allowed per use |
| assignmentRequiredPoints | number |
| usageRequiredPoints | number |
| tags | Array of strings |
| tiers | Array of strings |
| audienceKeys | Array of strings |
| locations | Array of strings or null Locations for filtering coupon books by location |
| categories | Array of strings or null Categories for filtering coupon books by category |
| productCategories | Array of strings or null Product categories for filtering coupon books by product category |
| paymentMethods | Array of strings or null Payment methods for filtering coupon books by payment method |
| channels | Array of strings or null Channels for filtering coupon books by channel |
| daysOfWeek | Array of numbers Days of week when coupon book is available (1=Monday, 7=Sunday) |
| contentSchemaId | number |
| contentSchemaVersionId | number |
| customAttributes | object |
| condition | object |
| locale | string Deprecated Locale |
| content | object Deprecated Content of the coupon book |
| isDefaultLocale | boolean Deprecated Is the locale default |
| defaultLocale | string Deprecated Default locale |
| requiredPointsConfig required | object (RequiredPointsConfig) |
| name | string The name of the coupon book |
| extraFields | object content extra fields |
{- "loyaltyProgramId": 0,
- "externalId": "string",
- "maxCouponCount": 0,
- "currentVersionId": 0,
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "images": { },
- "rankingIndex": 0,
- "discountAmount": 0,
- "discountType": "string",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxDiscountPerPeriod": 0,
- "discountPeriodType": "daily",
- "maxUsagesPerPeriod": 0,
- "usagePeriodType": "daily",
- "timezone": "string",
- "maxDiscountPerUse": 1000,
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "audienceKeys": [
- "string"
], - "locations": [
- "string"
], - "categories": [
- "string"
], - "productCategories": [
- "string"
], - "paymentMethods": [
- "string"
], - "channels": [
- "string"
], - "daysOfWeek": [
- 1,
- 2,
- 3,
- 4,
- 5
], - "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "customAttributes": { },
- "condition": { },
- "locale": "string",
- "content": { },
- "isDefaultLocale": true,
- "defaultLocale": "string",
- "requiredPointsConfig": { },
- "name": "string",
- "extraFields": { }
}{- "couponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "publishingStatus": "archived",
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentVersionId": 0,
- "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "images": { },
- "rankingIndex": 0,
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxDiscountPerPeriod": 0,
- "discountPeriodType": "daily",
- "maxUsagesPerPeriod": 0,
- "usagePeriodType": "daily",
- "timezone": "string",
- "maxDiscountPerUse": 0,
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "audienceKeys": [
- "string"
], - "locations": [
- "string"
], - "categories": [
- "string"
], - "productCategories": [
- "string"
], - "paymentMethods": [
- "string"
], - "channels": [
- "string"
], - "daysOfWeek": [
- "string"
], - "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "customAttributes": { },
- "condition": { }
}
}| organizationId required | number |
| couponBookId required | string |
| systemUniqueKey | string System Unique Key by Organization ID |
| customAttributes | object |
| memberId required | number |
| code | string Code to be used |
| pendingCaptureLedgerTransactionId | string Ledger transaction ID |
| externalId | string External ID for tracking |
| pointsOverride | number Optional points override. Positive values burn points, negative values mint points, zero skips point transaction. When absent, uses coupon book configured points. |
{- "systemUniqueKey": "string",
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "memberId": 0,
- "code": "string",
- "pendingCaptureLedgerTransactionId": "1234",
- "externalId": "ext-123",
- "pointsOverride": 100
}{- "couponUsages": [
- {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "couponBookId": 0,
- "couponBookVersionId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "reversalUsageId": 0,
- "revertedUsageId": 0,
- "amountDiscounted": 0,
- "ledgerTransactionId": "string",
- "externalId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| couponBookId required | string |
| 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 |
| externalId | string External ID for tracking |
| pointsOverride | number Optional points override. Positive values burn points, negative values mint points, zero skips point transaction. When absent, uses coupon book configured points. |
{- "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",
- "externalId": "ext-456",
- "pointsOverride": 50
}{- "couponUsages": [
- {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "couponBookId": 0,
- "couponBookVersionId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "reversalUsageId": 0,
- "revertedUsageId": 0,
- "amountDiscounted": 0,
- "ledgerTransactionId": "string",
- "externalId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| couponBookId required | string |
required | Array of objects (BatchAssignItemDto) Members to assign a coupon to (1-100). |
| pointsOverride | number Optional points override applied to every member in the batch. Positive values burn points, negative values mint points, zero skips the point transaction. When absent, uses coupon book configured points. |
{- "items": [
- {
- "memberId": 0,
- "systemUniqueKey": "string",
- "loyaltyMemberId": "string"
}
], - "pointsOverride": 0
}{- "results": [
- {
- "memberId": 0,
- "systemUniqueKey": "string",
- "status": "assigned",
- "couponUsageId": 0,
- "error": "string"
}
], - "successCount": 0,
- "failureCount": 0,
- "totalAttempted": 0
}| organizationId required | number |
| couponUsageId required | number |
| forceRevert | boolean Default: false Skip validation that prevents reverting assignments when usedBalance would exceed assignedBalance |
{- "forceRevert": false
}{- "couponUsages": [
- {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "couponBookId": 0,
- "couponBookVersionId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "reversalUsageId": 0,
- "revertedUsageId": 0,
- "amountDiscounted": 0,
- "ledgerTransactionId": "string",
- "externalId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| couponBookId required | number |
| 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 results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
{- "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"
}
]
}| organizationId required | number |
| couponBookId required | number |
| codes required | Array of strings Codes to be added |
{- "codes": [
- "string"
]
}{- "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"
}
]
}| organizationId required | number |
| couponBookId required | number |
| couponId required | number |
{- "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"
}
}| organizationId required | number |
| couponBookId required | number |
| couponId required | number |
| code required | string Code to be updated |
{- "code": "string"
}{- "couponBook": {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "publishingStatus": "archived",
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentVersionId": 0,
- "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "images": { },
- "rankingIndex": 0,
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxDiscountPerPeriod": 0,
- "discountPeriodType": "daily",
- "maxUsagesPerPeriod": 0,
- "usagePeriodType": "daily",
- "timezone": "string",
- "maxDiscountPerUse": 0,
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "audienceKeys": [
- "string"
], - "locations": [
- "string"
], - "categories": [
- "string"
], - "productCategories": [
- "string"
], - "paymentMethods": [
- "string"
], - "channels": [
- "string"
], - "daysOfWeek": [
- "string"
], - "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "customAttributes": { },
- "condition": { }
}
}| organizationId required | number |
| couponBookId required | number |
| couponId required | number |
| systemUniqueKey | string System Unique Key by Organization ID |
| customAttributes | object |
| memberId required | number |
| pendingCaptureLedgerTransactionId | string Ledger transaction ID |
| externalId | string External ID for tracking |
| pointsOverride | number Optional points override. Positive values burn points, negative values mint points, zero skips point transaction. When absent, uses coupon book configured points. |
{- "systemUniqueKey": "string",
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "memberId": 0,
- "pendingCaptureLedgerTransactionId": "1234",
- "externalId": "ext-123",
- "pointsOverride": 100
}{- "couponUsage": {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "couponBookId": 0,
- "couponBookVersionId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "reversalUsageId": 0,
- "revertedUsageId": 0,
- "amountDiscounted": 0,
- "ledgerTransactionId": "string",
- "externalId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| couponBookId required | number |
| couponId required | number |
| 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 |
| externalId | string External ID for tracking |
| pointsOverride | number Optional points override. Positive values burn points, negative values mint points, zero skips point transaction. When absent, uses coupon book configured points. |
| systemUniqueKey | string System Unique Key by Organization ID |
{- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "memberId": 0,
- "amount": 1,
- "strictMode": false,
- "pendingCaptureLedgerTransactionId": "1234",
- "externalId": "ext-456",
- "pointsOverride": 50,
- "systemUniqueKey": "string"
}{- "couponUsages": [
- {
- "couponUsageId": 0,
- "couponUsageKey": "string",
- "couponId": 0,
- "couponBookId": 0,
- "couponBookVersionId": 0,
- "memberId": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "amountUsed": 0,
- "amountAssigned": 0,
- "updatedTotalUsages": 0,
- "updatedTotalAssigned": 0,
- "reversalUsageId": 0,
- "revertedUsageId": 0,
- "amountDiscounted": 0,
- "ledgerTransactionId": "string",
- "externalId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| loyaltyProgramId required | number |
| memberId required | number |
| 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 results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| tags | string Filter by all of these tags (AND logic). Comma-separated. |
| tagsAny | string Filter by any of these tags (OR logic). Comma-separated. |
| couponBookId | number |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| tiers | number |
| audiences | string |
| outOfStock | boolean |
| includeLastUsage | boolean |
| locale | string Deprecated Translation locale requested for the coupon |
| locations | string |
| categories | string |
| productCategories | string |
| paymentMethods | string |
| channels | string |
| channelsMatch | string Default: "effective" Enum: "effective" "exact" How the channels filter treats books with no channel restriction. 'effective' (default): they match. 'exact': they are excluded. |
| daysOfWeek | string |
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "couponBookId": 0,
- "couponBookKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "externalId": "string",
- "publishingStatus": "archived",
- "maxCouponCount": 0,
- "totalAssigned": 0,
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentVersionId": 0,
- "name": "string",
- "description": "string",
- "subtitle": "string",
- "pictureUrl": "string",
- "detailPictureUrl": "string",
- "images": { },
- "rankingIndex": 0,
- "type": "string",
- "discountAmount": 0,
- "discountType": "string",
- "maxAssignedPerMember": 0,
- "maxAssignedPerCoupon": 0,
- "validFromDate": "2019-08-24T14:15:22Z",
- "validToDate": "2019-08-24T14:15:22Z",
- "maxDiscountPerPeriod": 0,
- "discountPeriodType": "daily",
- "maxUsagesPerPeriod": 0,
- "usagePeriodType": "daily",
- "timezone": "string",
- "maxDiscountPerUse": 0,
- "assignmentRequiredPoints": 0,
- "usageRequiredPoints": 0,
- "requiredPointsConfig": { },
- "tags": [
- "string"
], - "tiers": [
- "string"
], - "audienceKeys": [
- "string"
], - "locations": [
- "string"
], - "categories": [
- "string"
], - "productCategories": [
- "string"
], - "paymentMethods": [
- "string"
], - "channels": [
- "string"
], - "daysOfWeek": [
- "string"
], - "contentSchemaId": 0,
- "contentSchemaVersionId": 0,
- "customAttributes": { },
- "condition": { }
}
]
}| organizationId required | number |
| loyaltyProgramId required | number |
| memberId required | number |
| 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 results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| couponBookId | number |
| notUsedOnly | boolean |
| couponBookTags | string Filter by coupon books with all of these tags (AND logic). Comma-separated. |
| couponBookTagsAny | string Filter by coupon books with any of these tags (OR logic). Comma-separated. |
| couponCodeId | number |
| couponCode | string |
{- "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": { }
}
]
}| organizationId required | number |
| loyaltyProgramId required | number |
| memberId required | number |
| validFromDate | string <date-time> |
| validToDate | string <date-time> |
| tags | string Filter by all of these tags (AND logic). Comma-separated. |
| tagsAny | string Filter by any of these tags (OR logic). Comma-separated. |
{- "amountUsed": 0,
- "amountAssigned": 0
}| organizationId required | number |
| memberIdentifier required | string |
| badgeIdentifier required | string |
{- "balance": {
- "badgeId": 0,
- "badgeKey": "string",
- "memberId": 0,
- "loyaltyMemberId": "string",
- "assignedBalance": 0
}
}| organizationId required | number |
| memberIdentifier required | string |
| badgeIdentifier required | string |
| amount | number >= 1 Default: 1 Amount to assign |
| systemUniqueKey | string System unique key for idempotency |
| customAttributes | object Custom attributes |
| externalId | string External ID for tracking |
{- "amount": 1,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "externalId": "string"
}{- "badgeTracking": {
- "badgeTrackingId": 0,
- "badgeTrackingKey": "string",
- "badgeKey": "string",
- "amountAssigned": 0,
- "updatedTotalAssigned": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "externalId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| memberIdentifier required | string |
| badgeIdentifier required | string |
| amount | number >= 1 Default: 1 Amount to unassign |
| systemUniqueKey | string System unique key for idempotency |
| customAttributes | object Custom attributes |
| externalId | string External ID for tracking |
{- "amount": 1,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "externalId": "string"
}{- "badgeTracking": {
- "badgeTrackingId": 0,
- "badgeTrackingKey": "string",
- "badgeKey": "string",
- "amountAssigned": 0,
- "updatedTotalAssigned": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "externalId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| memberIdentifier required | string |
| badgeTrackingIdentifier required | string |
{- "badgeTracking": {
- "badgeTrackingId": 0,
- "badgeTrackingKey": "string",
- "badgeKey": "string",
- "amountAssigned": 0,
- "updatedTotalAssigned": 0,
- "systemUniqueKey": "string",
- "customAttributes": { },
- "externalId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| type | string Value: "item-matcher" |
| matcherKey | string |
{- "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"
}
]
}| organizationId required | number |
| organizationId | number |
| name required | string |
| type required | string Value: "item-matcher" |
| matcher required | object |
{- "organizationId": 0,
- "name": "string",
- "type": "item-matcher",
- "matcher": { }
}{- "organizationId": 0,
- "name": "string",
- "type": "item-matcher",
- "matcher": { }
}| organizationId required | number |
| matcherId required | string |
{- "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"
}
}| organizationId required | number |
| matcherId required | number |
| organizationId | number |
| name required | string |
| type required | string Value: "item-matcher" |
| matcher required | object |
{- "organizationId": 0,
- "name": "string",
- "type": "item-matcher",
- "matcher": { }
}{- "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"
}
}| organizationId required | number |
| matcherKey required | string |
{- "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"
}
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
{- "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",
- "PurchaseOrderRejected": "member-purchase-order-rejected",
- "PurchaseOrderReturned": "member-purchase-order-returned",
- "PurchaseOrderPartiallyReturned": "member-purchase-order-partially-returned",
- "MemberCreated": "member-created",
- "MemberUpdated": "member-updated",
- "MemberProfileCompleted": "member-profile-completed",
- "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",
- "BadgeAssigned": "badge-assigned",
- "BadgeUnassigned": "badge-unassigned",
- "MissionStatusUpdate": "mission-status-updated",
- "LedgerTransactionCreated": "ledger-transaction-created",
- "PaymentConfirmed": "member-payment-confirmed"
}, - "params": [
- {
- "id": "city",
- "label": "City",
- "type": "string",
- "defaultValue": "default",
- "isOptional": true
}
]
}
]
}| organizationId required | number |
| effectId required | string |
{- "effect": {
- "organizationId": "2",
- "effectId": "4",
- "name": "Another editting",
- "supportedEventTypes": {
- "PurchaseOrderCreated": "member-purchase-order-created",
- "PurchaseOrderConfirmed": "member-purchase-order-confirmed",
- "PurchaseOrderCancelled": "member-purchase-order-cancelled",
- "PurchaseOrderRejected": "member-purchase-order-rejected",
- "PurchaseOrderReturned": "member-purchase-order-returned",
- "PurchaseOrderPartiallyReturned": "member-purchase-order-partially-returned",
- "MemberCreated": "member-created",
- "MemberUpdated": "member-updated",
- "MemberProfileCompleted": "member-profile-completed",
- "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",
- "BadgeAssigned": "badge-assigned",
- "BadgeUnassigned": "badge-unassigned",
- "MissionStatusUpdate": "mission-status-updated",
- "LedgerTransactionCreated": "ledger-transaction-created",
- "PaymentConfirmed": "member-payment-confirmed"
}, - "params": [
- {
- "id": "city",
- "label": "City",
- "type": "string",
- "defaultValue": "default",
- "isOptional": true
}
]
}
}| organizationId required | number |
| 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 |
{- "systemUniqueKey": "string",
- "externalId": "string",
- "memberId": 1,
- "eventType": "string",
- "description": "string",
- "payload": { },
- "organizationId": 1,
- "externalEventDate": "2019-08-24T14:15:22Z",
- "tags": [
- "string"
]
}{- "systemUniqueKey": "string",
- "effects": [
- {
- "actionId": 1,
- "actionIndex": 1,
- "campaignId": 1,
- "campaignCode": "string",
- "actionName": "string",
- "effectId": "string",
- "status": { },
- "error": "string",
- "params": [
- {
- "id": "string",
- "value": { }
}
]
}
]
}| organizationId required | number |
{- "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"
}
]
}| organizationId required | number |
| name 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. |
| apiCode required | string [ 1 .. 255 ] characters /^[a-z0-9\-_.]+$/ Unique identifier within the organization. Must be non-empty and contain only lowercase alphanumeric characters, hyphens, underscores, and periods. |
{- "name": "string",
- "customAttributes": { },
- "description": "string",
- "active": true,
- "schemaType": "builtin",
- "apiCode": "app-install"
}{- "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"
}
}| organizationId required | number |
| name 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. |
| apiCode required | string [ 1 .. 255 ] characters /^[a-z0-9\-_.]+$/ Unique identifier within the organization. Must be non-empty and contain only lowercase alphanumeric characters, hyphens, underscores, and periods. |
{- "name": "string",
- "customAttributes": { },
- "description": "string",
- "active": true,
- "schemaType": "builtin",
- "apiCode": "app-install"
}{- "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"
}
}| organizationId required | number |
| apiCode required | string |
{- "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"
}
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| type | string Enum: "WebHook" "EntityChangeWebhook" "AsyncTrackWebhook" |
| active | boolean |
| name | string |
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "triggerId": 0,
- "organizationId": 0,
- "triggerKey": "string",
- "type": "WebHook",
- "name": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| triggerKey required | string |
| type required | string Enum: "WebHook" "EntityChangeWebhook" "AsyncTrackWebhook" |
| name required | string |
| settings required | object |
| active | boolean |
{- "triggerKey": "string",
- "type": "WebHook",
- "name": "string",
- "active": true
}{- "trigger": {
- "triggerId": 0,
- "organizationId": 0,
- "triggerKey": "string",
- "type": "WebHook",
- "name": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| triggerId required | number |
{- "trigger": {
- "triggerId": 0,
- "organizationId": 0,
- "triggerKey": "string",
- "type": "WebHook",
- "name": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| triggerId required | number |
| triggerKey required | string |
| type required | string Enum: "WebHook" "EntityChangeWebhook" "AsyncTrackWebhook" |
| name required | string |
| settings required | object |
| active | boolean |
{- "triggerKey": "string",
- "type": "WebHook",
- "name": "string",
- "active": true
}{- "trigger": {
- "triggerId": 0,
- "organizationId": 0,
- "triggerKey": "string",
- "type": "WebHook",
- "name": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
required | Array of objects (CreateLoyaltyMemberPurchaseOrderDto) | ||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||
{- "orders": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "loyaltyProgramId": 0,
- "customAttributes": { },
- "type": "string",
- "tags": [
- "string"
], - "total": 0,
- "discountedTotal": 0,
- "subTotal": 0,
- "merchantId": "string",
- "paymentMethod": "string",
- "locationCode": "string",
- "referralCode": "string",
- "channel": "string",
- "coupons": { },
- "status": "created",
- "items": [
- {
- "productCode": "string",
- "description": "string",
- "customAttributes": { },
- "total": 0,
- "amount": 0,
- "quantity": { },
- "discountedTotal": 0,
- "subTotal": 0,
- "categoryCode": "string"
}
], - "loyaltyMemberId": "string"
}
]
}{- "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,
- "subTotal": 0,
- "merchantId": "string",
- "paymentMethod": "string",
- "locationCode": "string",
- "referralCode": "string",
- "channel": "string",
- "coupons": { },
- "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,
- "quantity": { },
- "discountedTotal": 0,
- "subTotal": 0,
- "categoryCode": "string",
- "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"
}
]
}| organizationId required | number |
| memberId required | number |
{- "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,
- "subTotal": 0,
- "merchantId": "string",
- "paymentMethod": "string",
- "locationCode": "string",
- "referralCode": "string",
- "channel": "string",
- "coupons": { },
- "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,
- "quantity": { },
- "discountedTotal": 0,
- "subTotal": 0,
- "categoryCode": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "status": "created"
}
]
}| organizationId required | number |
| memberId required | number |
| 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 |
| subTotal | number |
| merchantId | string |
| paymentMethod | string |
| locationCode | string |
| referralCode | string |
| channel | string |
| coupons | object |
| status required | string Enum: "created" "confirmed" "cancelled" "rejected" "returned" "partially-returned" |
Array of objects (CreateMemberPurchaseOrderItemDto) |
{- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "loyaltyProgramId": 0,
- "customAttributes": { },
- "type": "string",
- "tags": [
- "string"
], - "total": 0,
- "discountedTotal": 0,
- "subTotal": 0,
- "merchantId": "string",
- "paymentMethod": "string",
- "locationCode": "string",
- "referralCode": "string",
- "channel": "string",
- "coupons": { },
- "status": "created",
- "items": [
- {
- "productCode": "string",
- "description": "string",
- "customAttributes": { },
- "total": 0,
- "amount": 0,
- "quantity": { },
- "discountedTotal": 0,
- "subTotal": 0,
- "categoryCode": "string"
}
]
}{- "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,
- "subTotal": 0,
- "merchantId": "string",
- "paymentMethod": "string",
- "locationCode": "string",
- "referralCode": "string",
- "channel": "string",
- "coupons": { },
- "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,
- "quantity": { },
- "discountedTotal": 0,
- "subTotal": 0,
- "categoryCode": "string",
- "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": { }
}
]
}
]
}
}| organizationId required | number |
| memberId required | number |
| orderId required | number |
{- "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,
- "subTotal": 0,
- "merchantId": "string",
- "paymentMethod": "string",
- "locationCode": "string",
- "referralCode": "string",
- "channel": "string",
- "coupons": { },
- "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,
- "quantity": { },
- "discountedTotal": 0,
- "subTotal": 0,
- "categoryCode": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "status": "created"
}
}| organizationId required | number |
| memberId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=25 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| 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-rejected" "member-purchase-order-returned" "member-purchase-order-partially-returned" "member-created" "member-updated" "member-profile-completed" "member-tier-set" "member-tier-removed" "member-profile-deactivated" "member-generic-event" "benefit-used" "coupon-code-assigned" "coupon-code-used" "badge-assigned" "badge-unassigned" "mission-status-updated" "ledger-transaction-created" "member-payment-confirmed" Filter events by type |
| status | string Enum: "pending" "running" "failed" "success" Filter events by status |
{- "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",
- "reason": "string",
- "systemUniqueKey": "string",
- "tags": [
- "string"
], - "location": "string",
- "e2eTrackingId": "string",
- "revertedLoyaltyEventId": "string",
- "reversalLoyaltyEventId": "string",
- "evaluationStatus": 0,
- "status": "pending",
- "limitDiscardedTotalAmount": 0,
- "limitCounters": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| loyaltyProgramId | number >= 1 The loyalty program id |
| type | string |
| codes | string |
| tags | string |
{- "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,
- "couponBookKey": "string",
- "badgeKey": "string",
- "ledgerTransactionDescription": "string",
- "inlineMatcher": { },
- "badgeMatcher": { },
- "minSpendValue": 0,
- "manualExpiration": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| 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 |
| couponBookKey | string |
| badgeKey | string Badge key to assign to the member when the mission is achieved |
| ledgerTransactionDescription | string Custom ledger transaction description used when mission accrues points |
Array of strings or InlineMatcherDto (any) Inline matcher. Can be a simple array of category codes (e.g. ['bebidas', 'snacks']) which means at least 1 of each (AND), or a full object with operator and conditions. Cannot be used together with matcherId. | |
object Badge matcher. Only supported for badge-assigned / badge-unassigned event types. Defines badge balance conditions combined with AND/OR. Cannot be used together with matcherId or inlineMatcher. | |
| minSpendValue | number >= 0 Minimum order total (payload.total) required for an event to count towards mission progress. Only supported for purchase-order and member-payment-confirmed event types. Matches the |
object Optional manual expiration applied to every mint produced by the mission's points reward. Same shape and semantics as the campaign-level manualExpiration: | |
| eventType required | string <= 255 characters Event Type to match. Accepts built-in event types (e.g. member-purchase-order-confirmed) and organization-scoped custom event apiCodes. |
| maxRepetitions required | number >= 1 Max number of repetitions |
| goalCount required | number >= 1 Goal count |
| matcherId | number >= 1 Related matcher id |
{- "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,
- "couponBookKey": "string",
- "badgeKey": "string",
- "ledgerTransactionDescription": "string",
- "inlineMatcher": [
- "string"
], - "badgeMatcher": {
- "operator": "AND",
- "conditions": [
- {
- "badgeKey": "string",
- "value": 0,
- "operator": "="
}
]
}, - "minSpendValue": 50,
- "manualExpiration": {
- "value": 30,
- "unit": "days"
}, - "eventType": "member-purchase-order-confirmed",
- "maxRepetitions": 10,
- "goalCount": 3,
- "matcherId": 1
}{- "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,
- "couponBookKey": "string",
- "badgeKey": "string",
- "ledgerTransactionDescription": "string",
- "inlineMatcher": { },
- "badgeMatcher": { },
- "minSpendValue": 0,
- "manualExpiration": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| missionId required | number |
{- "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,
- "couponBookKey": "string",
- "badgeKey": "string",
- "ledgerTransactionDescription": "string",
- "inlineMatcher": { },
- "badgeMatcher": { },
- "minSpendValue": 0,
- "manualExpiration": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| missionId required | number |
| 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 |
| couponBookKey | string |
| badgeKey | string Badge key to assign to the member when the mission is achieved |
| ledgerTransactionDescription | string Custom ledger transaction description used when mission accrues points |
Array of strings or InlineMatcherDto (any) Inline matcher. Can be a simple array of category codes (e.g. ['bebidas', 'snacks']) which means at least 1 of each (AND), or a full object with operator and conditions. Cannot be used together with matcherId. | |
object Badge matcher. Only supported for badge-assigned / badge-unassigned event types. Defines badge balance conditions combined with AND/OR. Cannot be used together with matcherId or inlineMatcher. | |
| minSpendValue | number >= 0 Minimum order total (payload.total) required for an event to count towards mission progress. Only supported for purchase-order and member-payment-confirmed event types. Matches the |
object Optional manual expiration applied to every mint produced by the mission's points reward. Same shape and semantics as the campaign-level manualExpiration: | |
| eventType required | string <= 255 characters Event Type to match. Accepts built-in event types (e.g. member-purchase-order-confirmed) and organization-scoped custom event apiCodes. |
| maxRepetitions required | number >= 1 Max number of repetitions |
| goalCount required | number >= 1 Goal count |
| matcherId | number >= 1 Related matcher id |
{- "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,
- "couponBookKey": "string",
- "badgeKey": "string",
- "ledgerTransactionDescription": "string",
- "inlineMatcher": [
- "string"
], - "badgeMatcher": {
- "operator": "AND",
- "conditions": [
- {
- "badgeKey": "string",
- "value": 0,
- "operator": "="
}
]
}, - "minSpendValue": 50,
- "manualExpiration": {
- "value": 30,
- "unit": "days"
}, - "eventType": "member-purchase-order-confirmed",
- "maxRepetitions": 10,
- "goalCount": 3,
- "matcherId": 1
}{- "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,
- "couponBookKey": "string",
- "badgeKey": "string",
- "ledgerTransactionDescription": "string",
- "inlineMatcher": { },
- "badgeMatcher": { },
- "minSpendValue": 0,
- "manualExpiration": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 25 ] Example: limit=25 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
string Filter by email | |
| loyaltyMemberId | string Filter by loyalty member id |
| govId | string Filter by government id (matches the id inside the gov_id field) |
| 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 |
{- "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",
- "channelAcquisition": "mobile_app",
- "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"
}
]
}| organizationId required | number |
| loyaltyMemberId required | string Loyalty Member Id within Organization and Loyalty Program |
| memberType | string Type of the member. |
| channelAcquisition | string Source 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 |
| notifications | object Notification preferences |
{- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "channelAcquisition": "mobile_app",
- "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",
- "notifications": {
- "email": true,
- "phone": false,
- "push": true
}
}{- "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",
- "channelAcquisition": "mobile_app",
- "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"
}
}| organizationId required | number |
| memberIds required | Array of numbers |
{- "memberIds": [
- 0
]
}{- "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",
- "channelAcquisition": "mobile_app",
- "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
]
}| organizationId required | number |
| memberId required | number |
{- "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",
- "channelAcquisition": "mobile_app",
- "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"
}
}| organizationId required | number |
| memberId required | number |
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. |
| channelAcquisition | string Source of the member. |
| notifications | object Notification preferences |
| updateReason | string Reason for updating the member |
| emitEvent | boolean Default: true If |
{- "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",
- "channelAcquisition": "mobile_app",
- "notifications": {
- "email": true,
- "phone": false,
- "push": true
}, - "updateReason": "Updated member profile information",
- "emitEvent": true
}{- "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",
- "channelAcquisition": "mobile_app",
- "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"
}
}| organizationId required | number |
| memberId required | number |
| loyaltyProgramId required | number |
| 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. |
| externalId | string The ID of the external event |
| systemUniqueKey | string A unique key for the system |
| description | string Description associated with the tier change |
| tags | Array of strings Tags associated with the tier change |
{- "loyaltyTierId": 1,
- "expiresAt": "2027-02-26T02:18:13.117Z",
- "externalId": "string",
- "systemUniqueKey": "string",
- "description": "string",
- "tags": [
- "string"
]
}{- "loyaltyTierId": 1,
- "memberTierTrackingId": 0
}| organizationId required | number |
| memberId required | number |
| loyaltyProgramId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
{- "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"
}
]
}| organizationId required | number |
| memberId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| 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 |
{- "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,
- "couponBookKey": "string",
- "badgeKey": "string",
- "ledgerTransactionDescription": "string",
- "inlineMatcher": { },
- "badgeMatcher": { },
- "minSpendValue": 0,
- "manualExpiration": { },
- "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"
}
}
]
}| organizationId required | number |
| memberId required | number |
| missionId required | number |
| amount required | number >= 0 |
| systemUniqueKey | string |
| externalId | string |
| tags | Array of strings |
| description | string |
| externalEventDate | string <date-time> |
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalId": "string",
- "tags": [
- "stamp"
], - "description": "string",
- "externalEventDate": "2024-08-01T00:00:00.000Z"
}{- "balance": {
- "memberId": 1,
- "timesAchieved": 0,
- "lastCounterCountWhenAchieved": 0,
- "currentCounterCount": 0,
- "lastAchievedAt": "2019-08-24T14:15:22Z",
- "lastGoalsAchieved": 0
}
}| organizationId required | number |
required | Array of objects (ParseRequestInputDto) The expressions to parse. |
| annotate | boolean Whether to annotate the AST. |
{- "inputs": [
- {
- "expression": "string",
- "isEffectExpression": true
}
], - "annotate": true
}{- "nodes": [
- {
- "node": { },
- "expression": "string",
- "labelledExpression": "string",
- "errors": [
- "string"
], - "isEffectExpression": true
}
]
}| organizationId required | number |
required | Array of objects (AST2ExpressionInputDto) The AST nodes. |
| annotate | boolean Whether to annotate the AST. |
{- "inputs": [
- {
- "node": { },
- "isEffectExpression": true
}
], - "annotate": true
}{- "nodes": [
- {
- "node": { },
- "expression": "string",
- "labelledExpression": "string",
- "errors": [
- "string"
], - "isEffectExpression": true
}
]
}| organizationId required | number |
| loyaltyMemberId required | string |
| includeBalance | boolean Default: true When false, skips the wallet-balance lookup and returns the member without ledger balances. Defaults to true. |
{- "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",
- "channelAcquisition": "mobile_app",
- "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
}
]
}
}| organizationId required | number |
| loyaltyMemberId required | string |
| 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. |
| externalId | string The ID of the external event |
| systemUniqueKey | string A unique key for the system |
| description | string Description associated with the tier change |
| tags | Array of strings Tags associated with the tier change |
| loyaltyProgramId required | number The ID of the loyalty program |
{- "loyaltyTierId": 1,
- "expiresAt": "2027-02-26T02:18:13.117Z",
- "externalId": "string",
- "systemUniqueKey": "string",
- "description": "string",
- "tags": [
- "string"
], - "loyaltyProgramId": 0
}{- "loyaltyTierId": 1,
- "memberTierTrackingId": 0
}| organizationId required | number |
| loyaltyMemberId required | string |
| 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 |
{- "ledgerId": 0,
- "ledgerAccountId": 0,
- "amount": 0,
- "description": "string",
- "tags": [
- "string"
], - "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string"
}{- "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"
]
}
]
}| organizationId required | number |
| loyaltyMemberId required | string |
| 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 |
{- "ledgerId": 0,
- "ledgerAccountId": 0,
- "amount": 0,
- "description": "string",
- "tags": [
- "string"
], - "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string"
}{- "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"
]
}
]
}| organizationId required | number |
| referralProgramId required | number |
| memberId required | number ID of the member referring the new member |
| codes required | Array of strings[ items ] |
{- "memberId": 111,
- "codes": [
- [
- "ABC111, XYZ999"
]
]
}{- "referrals": [
- {
- "referralCodeId": 0,
- "memberId": 0,
- "referralProgramId": 0,
- "code": "string",
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| referralProgramId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| memberId | number Example: memberId=111 ID of the member whose referral codes are being requested |
{- "referrals": [
- {
- "referralCodeId": 0,
- "memberId": 0,
- "referralProgramId": 0,
- "code": "string",
- "totalUsages": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| referralProgramId required | number |
| referralCodeId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
{- "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"
}
]
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
{- "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,
- "referrerCouponBookKey": "string",
- "referredCouponBookKey": "string",
- "totalCodes": 0,
- "totalLogs": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| 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 |
| referrerCouponBookKey | string |
| referredCouponBookKey | string |
{- "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,
- "referrerCouponBookKey": "string",
- "referredCouponBookKey": "string"
}{- "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,
- "referrerCouponBookKey": "string",
- "referredCouponBookKey": "string",
- "totalCodes": 0,
- "totalLogs": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| referralProgramId required | number |
{- "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,
- "referrerCouponBookKey": "string",
- "referredCouponBookKey": "string",
- "totalCodes": 0,
- "totalLogs": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| referralProgramId required | number |
| 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 |
| referrerCouponBookKey | string |
| referredCouponBookKey | string |
{- "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,
- "referrerCouponBookKey": "string",
- "referredCouponBookKey": "string"
}{- "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,
- "referrerCouponBookKey": "string",
- "referredCouponBookKey": "string",
- "totalCodes": 0,
- "totalLogs": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| referralProgramId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "memberId": 0,
- "name": "string",
- "email": "string",
- "invites": 0,
- "acceptedInvites": 0,
- "pointsAccumulated": 0
}
]
}| organizationId required | number |
| campaignId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| status | string Enum: "disabled" "running" "draft" The status of the action |
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "campaignId": 0,
- "campaignVersionId": 0,
- "actionId": 0,
- "actionKey": "string",
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "organizationId": 0,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "priority": 0,
- "exclusiveGroup": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| campaignId required | number |
| campaignVersionId | number |
| actionIndex | number |
| abortEvaluationIfFalse | boolean |
| abortEvaluationOnError | boolean |
| name required | string |
| rules | object |
| effects required | object |
| status required | string Enum: "disabled" "running" "draft" |
| priority required | number |
| exclusiveGroup | string |
{- "campaignVersionId": 0,
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "priority": 0,
- "exclusiveGroup": "string"
}{- "action": {
- "campaignId": 0,
- "campaignVersionId": 0,
- "actionId": 0,
- "actionKey": "string",
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "organizationId": 0,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "priority": 0,
- "exclusiveGroup": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| campaignId required | number |
| actionId required | number |
{- "action": {
- "campaignId": 0,
- "campaignVersionId": 0,
- "actionId": 0,
- "actionKey": "string",
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "organizationId": 0,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "priority": 0,
- "exclusiveGroup": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| campaignId required | number |
| actionId required | number |
| campaignVersionId | number |
| actionIndex | number |
| abortEvaluationIfFalse | boolean |
| abortEvaluationOnError | boolean |
| name required | string |
| rules | object |
| effects required | object |
| status required | string Enum: "disabled" "running" "draft" |
| priority required | number |
| exclusiveGroup | string |
{- "campaignVersionId": 0,
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "priority": 0,
- "exclusiveGroup": "string"
}{- "action": {
- "campaignId": 0,
- "campaignVersionId": 0,
- "actionId": 0,
- "actionKey": "string",
- "actionIndex": 0,
- "abortEvaluationIfFalse": true,
- "abortEvaluationOnError": true,
- "organizationId": 0,
- "name": "string",
- "rules": { },
- "effects": { },
- "status": "disabled",
- "priority": 0,
- "exclusiveGroup": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| loyaltyProgramId | number >= 1 The loyalty program id |
| type | string |
| tags | string |
| codes | string |
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "campaignId": 0,
- "campaignKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "code": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "audienceKeys": [
- "string"
], - "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "loyaltyTierKeys": [
- "string"
], - "eventType": "string",
- "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "maxTransactionsPerMember": 0,
- "limitRules": { },
- "minSpendValue": 0,
- "customAttributes": { },
- "smartRewards": { },
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| loyaltyProgramId | number |
| code required | string |
| active | boolean |
| name required | string |
| description | string |
| pictureUrl | string |
| type | string |
| tags | Array of strings |
| enabledTopics | Array of strings |
| audienceKeys | Array of strings |
| daysOfWeek | Array of strings |
| locationCodes | Array of strings |
| loyaltyTierKeys | Array of strings |
| eventType | string |
| pointsMonthlyLimitPerMember | number |
| allowPartialApplicationOnLimit | boolean |
| maxTransactionsPerMember | number |
Array of objects (CampaignLimitRuleDto) Unified campaign limit rules — one entry per | |
| minSpendValue | number |
| customAttributes | object |
| smartRewards | object |
| validFrom | string <date-time> |
| validTo | string <date-time> |
{- "loyaltyProgramId": 0,
- "code": "string",
- "active": true,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "audienceKeys": [
- "string"
], - "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "loyaltyTierKeys": [
- "string"
], - "eventType": "string",
- "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "maxTransactionsPerMember": 0,
- "limitRules": [
- {
- "scope": "member",
- "type": "transactions",
- "period": "monthly",
- "limit": 3,
- "ledgerAccountKey": "acc_01J8X7QK9ZC8M3VR2N0YT4WB6D"
}
], - "minSpendValue": 0,
- "customAttributes": { },
- "smartRewards": { },
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}{- "campaign": {
- "campaignId": 0,
- "campaignKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "code": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "audienceKeys": [
- "string"
], - "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "loyaltyTierKeys": [
- "string"
], - "eventType": "string",
- "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "maxTransactionsPerMember": 0,
- "limitRules": { },
- "minSpendValue": 0,
- "customAttributes": { },
- "smartRewards": { },
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| campaignId required | number |
{- "campaign": {
- "campaignId": 0,
- "campaignKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "code": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "audienceKeys": [
- "string"
], - "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "loyaltyTierKeys": [
- "string"
], - "eventType": "string",
- "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "maxTransactionsPerMember": 0,
- "limitRules": { },
- "minSpendValue": 0,
- "customAttributes": { },
- "smartRewards": { },
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| campaignId required | number |
| loyaltyProgramId | number |
| code required | string |
| active | boolean |
| name required | string |
| description | string |
| pictureUrl | string |
| type | string |
| tags | Array of strings |
| enabledTopics | Array of strings |
| audienceKeys | Array of strings |
| daysOfWeek | Array of strings |
| locationCodes | Array of strings |
| loyaltyTierKeys | Array of strings |
| eventType | string |
| pointsMonthlyLimitPerMember | number |
| allowPartialApplicationOnLimit | boolean |
| maxTransactionsPerMember | number |
Array of objects (CampaignLimitRuleDto) Unified campaign limit rules — one entry per | |
| minSpendValue | number |
| customAttributes | object |
| smartRewards | object |
| validFrom | string <date-time> |
| validTo | string <date-time> |
{- "loyaltyProgramId": 0,
- "code": "string",
- "active": true,
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "audienceKeys": [
- "string"
], - "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "loyaltyTierKeys": [
- "string"
], - "eventType": "string",
- "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "maxTransactionsPerMember": 0,
- "limitRules": [
- {
- "scope": "member",
- "type": "transactions",
- "period": "monthly",
- "limit": 3,
- "ledgerAccountKey": "acc_01J8X7QK9ZC8M3VR2N0YT4WB6D"
}
], - "minSpendValue": 0,
- "customAttributes": { },
- "smartRewards": { },
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}{- "campaign": {
- "campaignId": 0,
- "campaignKey": "string",
- "organizationId": 0,
- "loyaltyProgramId": 0,
- "code": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": "string",
- "tags": [
- "string"
], - "enabledTopics": [
- "string"
], - "audienceKeys": [
- "string"
], - "daysOfWeek": [
- "string"
], - "locationCodes": [
- "string"
], - "loyaltyTierKeys": [
- "string"
], - "eventType": "string",
- "pointsMonthlyLimitPerMember": 0,
- "allowPartialApplicationOnLimit": true,
- "maxTransactionsPerMember": 0,
- "limitRules": { },
- "minSpendValue": 0,
- "customAttributes": { },
- "smartRewards": { },
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| loyaltyTierId | number >= 1 |
| loyaltyProgramId | number >= 1 |
| query | string Filter by full text search |
| sinceFrom | string <date-time> |
| sinceTo | string <date-time> |
| memberType | string |
| channelAcquisition | string |
| loyaltyTierKey | string |
{- "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"
}
]
}| organizationId required | number |
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
{- "results": [
- {
- "date": "2024-01-01",
- "amount": 42
}
]
}| organizationId required | number |
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
{- "results": [
- {
- "date": "2024-01-01",
- "assigned": 42,
- "usages": 24
}
]
}| organizationId required | number |
| 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 |
{- "results": [
- {
- "key": 23,
- "name": "name",
- "assigned": 42,
- "usages": 24,
- "type": "welcome"
}
]
}| organizationId required | number |
| 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 |
{- "results": [
- {
- "couponBookId": 1,
- "couponBookKey": "couponBookKey",
- "name": "name",
- "assigned": 42,
- "usages": 24,
- "discountAmount": 100
}
]
}| organizationId required | number |
| 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 |
{- "results": [
- {
- "key": 32,
- "amount": 42,
- "name": "John",
- "lastname": "Doe",
}
]
}| organizationId required | number |
| 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 |
{- "results": [
- {
- "date": "2024-01-01",
- "amount": 42
}
]
}| organizationId required | number |
| 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 |
{- "result": {
- "amount": 42
}
}| organizationId required | number |
| ledgerAccountId required | number |
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
{- "result": {
- "totalAmount": 1000,
- "avgAmountPerUser": 50.5
}
}| organizationId required | number |
| eventType required | string |
| sinceFrom | string <date-time> Example: sinceFrom=2024-01-01T00:00:00.000Z |
| sinceTo | string <date-time> Example: sinceTo=2024-08-01T00:00:00.000Z |
{- "result": {
- "totalCount": 1500
}
}| organizationId required | number |
| 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 |
{- "result": {
- "totalDiscountAmountAssigned": 5000,
- "totalDiscountAmountUsed": 2500
}
}| organizationId required | number |
| limit | number Example: limit=4 |
{- "results": [
- {
- "name": "name",
- "totalMembersAchievedMission": 42,
- "totalActiveMissions": 20,
- "totalMembers": 42
}
]
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| matcherType | string Enum: "attribute-matcher" "list-matcher" "null-matcher" Filter by matcher type |
| active | boolean Filter audiences by active status. When |
| search | string Example: search=VIP customers Search audiences by name or description |
| audienceKeys | string Example: audienceKeys=aud_123,aud_456,aud_789 Filter audiences by specific audience keys (comma-separated) |
{- "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",
- "expiresAt": "2019-08-24T14:15:22Z",
- "memberCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| active required | boolean |
| organizationId required | number |
| name required | string |
| description | string |
| matcherType required | string Enum: "attribute-matcher" "list-matcher" "null-matcher" |
AttributeMatcherDto (object) Matcher configuration. Required when matcherType is attribute-matcher. | |
| segmentKey | string |
| refreshedAt | string <date-time> |
| expiresAt | string <date-time> |
| memberCount | number |
{- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": {
- "customAttributes": {
- "values": {
- "creditUnion": "union1"
}, - "notInclude": false
}, - "tags": [
- "vip"
], - "locations": [
- "new york"
], - "emailDomains": [
- "example.com"
], - "memberTypes": {
- "values": [
- "premium"
], - "notInclude": false
}, - "createdAt": {
- "since": "2023-01-01",
- "until": "2023-12-31"
}, - "tierKeys": [
- "tir_123",
- "tir_456",
- "tir_789"
], - "channelAcquisition": [
- "web",
- "mobile",
- "referral"
]
}, - "segmentKey": "string",
- "refreshedAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "memberCount": 0
}{- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": {
- "customAttributes": {
- "values": {
- "creditUnion": "union1"
}, - "notInclude": false
}, - "tags": [
- "vip"
], - "locations": [
- "new york"
], - "emailDomains": [
- "example.com"
], - "memberTypes": {
- "values": [
- "premium"
], - "notInclude": false
}, - "createdAt": {
- "since": "2023-01-01",
- "until": "2023-12-31"
}, - "tierKeys": [
- "tir_123",
- "tir_456",
- "tir_789"
], - "channelAcquisition": [
- "web",
- "mobile",
- "referral"
]
}, - "segmentKey": "string",
- "refreshedAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "memberCount": 0
}| organizationId required | number |
| audienceId required | number |
{- "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",
- "expiresAt": "2019-08-24T14:15:22Z",
- "memberCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| audienceId required | number |
| active | boolean |
| organizationId | number |
| name | string |
| description | string |
| matcherType | string Enum: "attribute-matcher" "list-matcher" "null-matcher" |
AttributeMatcherDto (object) Matcher configuration. Required when matcherType is attribute-matcher. | |
| segmentKey | string |
| refreshedAt | string <date-time> |
| expiresAt | string <date-time> |
| memberCount | number |
{- "active": true,
- "organizationId": 0,
- "name": "string",
- "description": "string",
- "matcherType": "attribute-matcher",
- "matcher": {
- "customAttributes": {
- "values": {
- "creditUnion": "union1"
}, - "notInclude": false
}, - "tags": [
- "vip"
], - "locations": [
- "new york"
], - "emailDomains": [
- "example.com"
], - "memberTypes": {
- "values": [
- "premium"
], - "notInclude": false
}, - "createdAt": {
- "since": "2023-01-01",
- "until": "2023-12-31"
}, - "tierKeys": [
- "tir_123",
- "tir_456",
- "tir_789"
], - "channelAcquisition": [
- "web",
- "mobile",
- "referral"
]
}, - "segmentKey": "string",
- "refreshedAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "memberCount": 0
}{- "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",
- "expiresAt": "2019-08-24T14:15:22Z",
- "memberCount": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| audienceIds required | Array of numbers |
required | object (MemberOrganizationAssociationDto) |
{- "audienceIds": [
- 0
], - "member": {
- "memberId": 123456,
- "organizationId": 123456,
- "loyaltyMemberId": "11111-11111",
- "memberType": "organization",
- "channelAcquisition": "mobile_app",
- "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"
}
}{- "audienceIds": [
- 0
]
}| organizationId required | number |
| ledgerId required | number |
{- "ledger": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "organizationId": 0,
- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "createdAt": "string",
- "updatedAt": "string",
- "defaultAccountId": 0
}
}| organizationId required | number |
| ledgerId required | number |
| name required | string |
| description | string |
| defaultAccountId | number |
{- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "defaultAccountId": 0
}{- "ledger": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "organizationId": 0,
- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "createdAt": "string",
- "updatedAt": "string",
- "defaultAccountId": 0
}
}| organizationId required | number |
| 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 results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| ledgerKey | string Ledger Key |
{- "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": "string",
- "updatedAt": "string",
- "defaultAccountId": 0
}
]
}| organizationId required | number |
| name required | string |
| description | string |
{- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger"
}{- "ledger": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "organizationId": 0,
- "name": "Main Loyalty Program Ledger",
- "description": "This is the main Loyalty Program Ledger",
- "createdAt": "string",
- "updatedAt": "string",
- "defaultAccountId": 0
}
}| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
{- "ledgerAccount": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "alias": "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,
- "expirationPolicies": [
- {
- "expirationType": "lastTransaction",
- "period": 0
}
], - "issued": 0,
- "isDefaultAccount": true,
- "overdraftLimit": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| alias | string Account alias for easier lookup |
| name | string |
| active | boolean |
| isCurrency | boolean Optional Is a currency? for account |
| decimals | number Optional decimals |
| formatString | string Optional Format string for points |
| isRevolving | boolean |
| pointTrackingEnabled | boolean |
| syncAlgorand | boolean Enable algorand blockchain syncing |
| expiresInMonths | number Points expiration in months |
Array of objects (ExpirationPolicyDto) Expiration policies for the account | |
| overdraftLimit | number Outstanding-debt cap for overdraft on this account. NULL or <= 0 disables overdraft. > 0 enables it (only on revolving accounts; pending transfers are not supported when overdraft is enabled). |
| isDefaultAccount | boolean Is default account for ledger |
{- "alias": "string",
- "name": "Main Ledger Account",
- "active": true,
- "isCurrency": true,
- "decimals": 0,
- "formatString": "string",
- "isRevolving": true,
- "pointTrackingEnabled": true,
- "syncAlgorand": true,
- "expiresInMonths": 0,
- "expirationPolicies": [
- {
- "expirationType": "lastTransaction",
- "period": 0
}
], - "overdraftLimit": 0,
- "isDefaultAccount": true
}{- "ledgerAccount": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "alias": "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,
- "expirationPolicies": [
- {
- "expirationType": "lastTransaction",
- "period": 0
}
], - "issued": 0,
- "isDefaultAccount": true,
- "overdraftLimit": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| walletId required | number |
{- "wallet": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "isDefaultAccount": true,
- "ledgerAccountName": "string",
- "ledgerAccountKey": "string",
- "walletId": 0,
- "currentBalance": 0,
- "pendingCreditBalance": 0,
- "pendingDebitBalance": 0,
- "currentOverdraftBalance": 0,
- "totalOverdraftCreditBalance": 0,
- "lastTransactionDate": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "totalFiatValue": 0
}
}| organizationId required | number |
| ledgerId required | number |
| 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 results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| name | string |
| ledgerAccountKey | string Ledger Account Key |
| alias | string Account Alias |
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "alias": "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,
- "expirationPolicies": [
- {
- "expirationType": "lastTransaction",
- "period": 0
}
], - "issued": 0,
- "isDefaultAccount": true,
- "overdraftLimit": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| ledgerId required | number |
| alias | string Account alias for easier lookup |
| 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 |
Array of objects (ExpirationPolicyDto) Expiration policies for the account | |
| overdraftLimit | number Outstanding-debt cap for overdraft on this account. NULL or <= 0 disables overdraft. > 0 enables it (only on revolving accounts; pending transfers are not supported when overdraft is enabled). |
| isDefaultAccount | boolean Is default account for ledger |
{- "alias": "string",
- "name": "Main Ledger Account",
- "active": true,
- "isCurrency": true,
- "decimals": 0,
- "formatString": "string",
- "maxSupply": 0,
- "isRevolving": true,
- "pointTrackingEnabled": true,
- "syncAlgorand": true,
- "expiresInMonths": 0,
- "expirationPolicies": [
- {
- "expirationType": "lastTransaction",
- "period": 0
}
], - "overdraftLimit": 0,
- "isDefaultAccount": true
}{- "ledgerAccount": {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "alias": "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,
- "expirationPolicies": [
- {
- "expirationType": "lastTransaction",
- "period": 0
}
], - "issued": 0,
- "isDefaultAccount": true,
- "overdraftLimit": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}Use an empty maxSupply or body {} to increase to an infinite supply.
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| 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) |
{- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "maxSupply": 0
}{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| 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 results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| 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 |
{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}Amount must be a large integer (bigint or number, max allowed 18446744073709)
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| 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 |
| fiatValue | number Fiat value associated with the transaction. Only accepted on burn transactions — rejected with 409 on mint/transfer/revert. |
| fiatGrossAmount | number Fiat gross amount associated with the transaction. Only accepted on burn transactions — rejected with 409 on mint/transfer/revert. |
| fiatCurrency | string Fiat currency code (e.g. USD, EUR). Only accepted on burn transactions — rejected with 409 on mint/transfer/revert. |
| captureMethod | string Default: "auto" Enum: "manual" "auto" Capture method for the transaction |
| allowOverdraft | boolean Default: false Opt-in to let a burn (or revert-of-mint) with shortfall drive the user wallet into overdraft debt instead of failing Insufficient balance. Requires the account to be revolving with overdraftLimit > 0. Ignored otherwise. |
{- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string",
- "captureMethod": "auto",
- "allowOverdraft": false
}{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}Amount must be a large integer (bigint or number, max allowed 18446744073709)
| organizationId required | number |
| ledgerId required | number |
required | Array of objects (CreateLedgerTransactionSetItemDto) | ||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||
{- "create": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string",
- "captureMethod": "auto",
- "allowOverdraft": false,
- "ledgerAccountId": 0
}
]
}{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}Amount must be a large integer (bigint or number, max allowed 18446744073709)
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| 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 |
| partialFiatValue | number Explicit fiat amount to subtract from total_fiat_value on a revert-of-burn. When provided, overrides automatic proration (fiatValue × revertAmount / originalAmount). Must be ≥ 0. Only valid on revert transactions. |
{- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "partialFiatValue": 0
}{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}Amount must be a large integer (bigint or number, max allowed 18446744073709)
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| walletId required | number |
| 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 |
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "tags": [
- "string"
], - "captureMethod": "auto"
}{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}Amount must be a large integer (bigint or number, max allowed 18446744073709)
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
| walletId required | number |
| 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 |
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "tags": [
- "string"
]
}{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}Capture pending transactions for the given ledger account. Transactions must be in pending state.
| organizationId required | number |
| ledgerId required | number |
| ledgerAccountId required | number |
required | Array of objects (CaptureTransactionDto) Ledger transactions to capture | ||||
Array
| |||||
{- "transactions": [
- {
- "ledgerTransactionId": "string",
- "captureAmount": 0
}
]
}{- "ok": true
}| organizationId required | number |
required | Array of objects (LedgerTransactionBatchItemRequestDto) | ||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||
{- "items": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string",
- "captureMethod": "auto",
- "allowOverdraft": false,
- "organizationId": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "atomicSetId": 0,
- "expirationDate": "2019-08-24T14:15:22Z",
- "revertedLedgerTransactionId": "1"
}
]
}{- "processed": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string",
- "captureMethod": "auto",
- "allowOverdraft": false,
- "organizationId": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "atomicSetId": 0,
- "expirationDate": "2019-08-24T14:15:22Z",
- "revertedLedgerTransactionId": "1",
- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}
], - "failed": [
- {
- "externalEventDate": "2019-08-24T14:15:22Z",
- "systemUniqueKey": "string",
- "externalId": "string",
- "description": "string",
- "tags": [
- "tag1",
- "tag2"
], - "amount": 0,
- "fromWalletId": 0,
- "toWalletId": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string",
- "captureMethod": "auto",
- "allowOverdraft": false,
- "organizationId": 0,
- "ledgerId": 0,
- "ledgerAccountId": 0,
- "atomicSetId": 0,
- "expirationDate": "2019-08-24T14:15:22Z",
- "revertedLedgerTransactionId": "1",
- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}
]
}| organizationId required | number |
| transactionIds required | Array of strings List of transaction IDs to revert |
| burnAvailableBalance | boolean Default: false When true, if a mint revert would fail due to insufficient balance, burns only the available balance instead of failing |
| allowOverdraft | boolean Default: false When true, a mint revert whose funds were already (partly) spent drives the user wallet into overdraft debt instead of clamping. Requires the account to be revolving with overdraftLimit > 0 (else the revert fails Insufficient balance). Takes precedence over burnAvailableBalance. |
Array of objects (BatchRevertFiatItemDto) Per-transaction explicit fiat override for revert-of-burn. Each entry's |
{- "transactionIds": [
- "123",
- "456"
], - "burnAvailableBalance": false,
- "allowOverdraft": false,
- "partialFiatValues": [
- {
- "ledgerTransactionId": "string",
- "partialFiatValue": 0
}
]
}{- "processed": [
- {
- "ledgerTransactionId": "string",
- "transactionType": 0,
- "amount": "string",
- "revertedAmount": "string",
- "processedStatus": "string",
- "error": "string",
- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}
], - "failed": [
- {
- "ledgerTransactionId": "string",
- "transactionType": 0,
- "amount": "string",
- "revertedAmount": "string",
- "processedStatus": "string",
- "error": "string",
- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}
]
}| organizationId required | number |
| ledgerId required | number |
| walletId required | number |
{- "wallets": [
- {
- "ledgerId": 0,
- "ledgerKey": "string",
- "ledgerAccountId": 0,
- "isDefaultAccount": true,
- "ledgerAccountName": "string",
- "ledgerAccountKey": "string",
- "walletId": 0,
- "currentBalance": 0,
- "pendingCreditBalance": 0,
- "pendingDebitBalance": 0,
- "currentOverdraftBalance": 0,
- "totalOverdraftCreditBalance": 0,
- "lastTransactionDate": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "totalFiatValue": 0
}
]
}| ledgerId required | number |
| walletId required | number |
{- "results": [
- {
- "ledgerAccountId": 0,
- "ledgerAccountKey": "string",
- "isDefaultAccount": true,
- "date": "string",
- "amount": 0
}
]
}| organizationId required | number |
| ledgerId required | number |
| walletId required | number |
| 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 transaction |
| tags | Array of strings Tags |
| expirationDate | string <date-time> Custom expiration date for the minted points. When set, overrides the account's default expiration policy for this mint only. Must be in the future. |
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "tags": [
- "string"
], - "expirationDate": "2019-08-24T14:15:22Z"
}{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}| organizationId required | number |
| ledgerId required | number |
| walletId required | number |
| 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 transaction |
| tags | Array of strings Tags |
| captureMethod | string Default: "auto" Enum: "manual" "auto" Capture method for the transaction |
| allowOverdraft | boolean Default: false Opt-in to let this burn (from the org's default account) with shortfall drive the user wallet into overdraft debt instead of failing Insufficient balance. Requires the default account to be revolving with overdraftLimit > 0. Ignored otherwise. |
{- "amount": 0,
- "systemUniqueKey": "string",
- "externalEventDate": "2019-08-24T14:15:22Z",
- "externalId": "string",
- "description": "string",
- "tags": [
- "string"
], - "captureMethod": "auto",
- "allowOverdraft": false
}{- "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,
- "isOverdraft": false,
- "updatedBalance": 0,
- "fiatValue": 0,
- "fiatGrossAmount": 0,
- "fiatCurrency": "string"
}
]
}| organizationId required | string |
{- "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"
}
}| organizationId required | number |
| name required | string |
| description required | string |
| pictureUrl required | string |
| defaultLoyaltyProgramId required | number |
| defaultLocale required | string |
| locales | Array of strings |
| customAttributes | object |
{- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "defaultLoyaltyProgramId": 123456,
- "defaultLocale": "string",
- "locales": [
- "string"
], - "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}
}{- "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"
}
}| organizationId required | number |
| loyaltyProgramId required | number |
| page | number >= 0 Deprecated Example: page=0 [Deprecated] The page number for pagination. Paging is being phased out for tier lists. |
| limit | number [ 1 .. 25 ] Deprecated Example: limit=10 [Deprecated] The limit of items to return per page. Paging is being phased out for tier lists. |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| loyaltyTierKey | string Loyalty Tier Key |
| onlyActive | boolean Only active loyalty tiers |
{- "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
}
]
}| organizationId required | number |
| loyaltyProgramId required | number |
| 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 |
{- "name": "Silver",
- "active": true,
- "minRequiredPoints": 1000,
- "tierOrder": 1,
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "isDefault": true
}{- "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
}
}| organizationId required | number |
| loyaltyProgramId required | number |
| loyaltyTierId required | number |
{- "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
}
}| organizationId required | number |
| loyaltyProgramId required | number |
| loyaltyTierId required | number |
| 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 |
{- "name": "Silver",
- "active": true,
- "minRequiredPoints": 1000,
- "tierOrder": 1,
- "customAttributes": {
- "someAttr": "some value",
- "someOtherAttr": 1
}, - "isDefault": true
}{- "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
}
}| organizationId required | number |
| loyaltyProgramId required | number |
{- "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"
}
}| organizationId required | number |
| loyaltyProgramId required | number |
| 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 |
{- "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"
}{- "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"
}
}| organizationId required | number |
| page | number >= 0 Deprecated Example: page=0 [Deprecated] The page number for pagination. Paging is being phased out for program lists. |
| limit | number [ 1 .. 25 ] Deprecated Example: limit=10 [Deprecated] The limit of items to return per page. Paging is being phased out for program lists. |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| default | boolean Default: true |
| loyaltyProgramKey | string Loyalty Program Key |
{- "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"
}
]
}| organizationId required | number |
| 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 |
{- "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"
}{- "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"
}
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
string | |
| userName | string Filter by user name |
| organizationId | number Filter by organization id |
| active | boolean |
| authClientId | string Filter by auth client id |
| includeAPIUsers | boolean |
| includeCognitoUsers | boolean |
| search | string Filter by full text search |
{- "totalCount": 0,
- "page": 0,
- "limit": 0,
- "results": [
- {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "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"
}
]
}| organizationId required | number |
| active required | boolean Active flag. On the admin endpoint this is the GLOBAL user flag (mirrors Cognito enabled, blocks login in every org). On the org-scoped endpoint it is applied to the caller's membership only (per-org), unless overridden by an organizations[] entry's own |
| name required | string |
| nickname required | string |
| profilePictureUrl required | string |
| isSystemAdmin required | boolean |
| pendingProvisioning required | boolean |
| permissionGroupKeys | Array of arrays Permission groups the new user belongs to, stored alongside (not overriding) the inline isAdmin/roles extras above. |
| 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" Inline permission-role extras stored on the new user, merged with permissionGroupKeys at read/token time. |
| 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 |
{- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "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"
}{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "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"
}| organizationId required | number |
| userId required | string |
{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "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"
}
}| organizationId required | number |
| userId required | string |
| name required | string |
| nickname required | string |
| profilePictureUrl required | string |
| isSystemAdmin required | boolean |
| pendingProvisioning required | boolean |
required | Array of objects (OrganizationUserDto) Related organizations, reconciled add/update-only: each entry adds the membership if absent or replaces its stored permissions in place, and a membership omitted from the list is preserved. To remove a user from an organization use DELETE /org/:organizationId/users/:userId. |
| permissionGroupKeys | Array of arrays Permission groups for this user's membership in the current organization. Stored alongside the inline organizations[] extras and merged with them at read/token time (additive — groups do NOT override the inline roles). |
| active | boolean Default: true Per-org active flag for the caller's organization. Omit to leave the membership's current active state unchanged. An organizations[] entry's own |
string Ignored on the org-scoped endpoint (immutable identity). Accepted so a full-object round-trip from a frontend that echoes the GET response passes validation; never persisted here. | |
| userName | string Ignored on the org-scoped endpoint (immutable identity). See |
| authClientId | string Ignored on the org-scoped endpoint (immutable identity). See |
{- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "active": true,
- "email": "string",
- "userName": "string",
- "authClientId": "string"
}{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "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"
}
}| organizationId required | number |
| emails required | Array of arrays Emails to add, each receiving the same permissions |
| isAdmin | boolean Grants org-wide admin to every user. Stored as an inline extra and merged (OR-ed) with any permission group's admin flag at read/token time. |
| roles | Array of arrays Inline permission-role extras ("resource:action") stored on every user, merged with any permissionGroupKeys at read/token time. |
| permissionGroupKeys | Array of arrays Permission groups applied to every user, stored alongside (not overriding) the inline isAdmin/roles extras above. |
| sendInvite | boolean Send each new user a Cognito invitation email (default true) |
{- "emails": [
- "ada@acme.com",
- "grace@acme.com"
], - "isAdmin": false,
- "roles": [
- "members:read",
- "benefits:read"
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "sendInvite": true
}{- "results": [
- {
- "email": "ada@acme.com",
- "status": "created",
- "error": "string"
}
], - "summary": {
- "total": 2,
- "succeeded": 2,
- "failed": 0
}
}| organizationId required | number |
| emails required | Array of arrays Emails of existing members whose permissions to reassign |
| isAdmin | boolean Inline org-admin extra applied to every listed member (merged with any group's admin flag at read/token time). |
| roles | Array of arrays Inline permission-role extras ("resource:action") applied to every listed member. |
| permissionGroupKeys | Array of arrays Permission groups applied to every listed member, stored alongside the inline extras. |
{- "emails": [
- "ada@acme.com",
- "grace@acme.com"
], - "isAdmin": false,
- "roles": [
- "members:read",
- "benefits:read"
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
]
}{- "results": [
- {
- "email": "ada@acme.com",
- "status": "created",
- "error": "string"
}
], - "summary": {
- "total": 2,
- "succeeded": 2,
- "failed": 0
}
}| organizationId required | number |
| emails required | Array of arrays Emails to remove from the organization |
{- "emails": [
- "ada@acme.com",
- "grace@acme.com"
]
}{- "results": [
- {
- "email": "ada@acme.com",
- "status": "created",
- "error": "string"
}
], - "summary": {
- "total": 2,
- "succeeded": 2,
- "failed": 0
}
}| organizationId required | number |
| userId required | string |
| isAdmin | boolean Inline org-wide admin extra. Required unless a permission group is provided. |
| roles | 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" Inline permission-role extras. Required unless a permission group is provided. |
| permissionGroupKeys | Array of arrays Permission groups the user belongs to. Stored alongside the inline isAdmin/roles extras and merged with them at read/token time (highest action per resource wins). |
{- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
]
}{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "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"
}
}| organizationId required | number |
| userId required | string |
| permanent | boolean Indicates if the password is permanent |
| password required | string The new password |
{- "permanent": true,
- "password": "string"
}{- "user": {
- "active": true,
- "name": "John Connor",
- "nickname": "user-123456",
- "isSystemAdmin": true,
- "pendingProvisioning": true,
- "organizations": [
- {
- "organizationId": 123456,
- "isAdmin": true,
- "roles": [
- "members:read",
- "tiers:write"
]
}
], - "permissionGroupKeys": [
- "pgrp_01H...",
- "pgrp_02H..."
], - "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"
}
}| organizationId required | number |
| page | number >= 0 Deprecated Example: page=0 [Deprecated] The page number for pagination. Paging is being phased out for portal lists. |
| limit | number [ 1 .. 25 ] Deprecated Example: limit=10 [Deprecated] The limit of items to return per page. Paging is being phased out for portal lists. |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| publicId | string |
{- "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"
}
]
}| organizationId required | number |
| 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> |
{- "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"
}{- "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"
}
}| organizationId required | number |
| portalId required | number |
{- "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"
}
}| organizationId required | number |
| portalId required | number |
| 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> |
{- "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"
}{- "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"
}
}{- "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"
}
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| orderLocationCodes | string Filter by location codes (comma-separated) |
| orderLocationLabel | string Filter by order location label (partial match, case insensitive) |
| tags | string Filter by tags (comma-separated, returns locations that contain any of the specified tags) |
| type | string Enum: "location" "group" Filter by location type |
{- "results": [
- {
- "orderLocationCode": "argentina",
- "organizationId": 1,
- "orderLocationLabel": "Argentina",
- "type": "location",
- "tags": [
- "ar",
- "buenos-aires"
], - "filterTags": [
- "ar",
- "buenos-aires"
], - "filterLabelPattern": "%aires%",
- "filterExcludedCodes": [
- "excluded-code-1"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
], - "totalCount": 25,
- "limit": 10,
- "page": 1
}| organizationId required | number |
| orderLocationCode required | string Order location code identifier |
| orderLocationLabel required | string Order location display label |
| type | string Enum: "location" "group" Type of order location. Defaults to 'location'. |
| tags | Array of strings Order location tags |
| filterTags | Array of strings Tags filter for group membership (only for type 'group') |
| filterLabelPattern | string Label contains filter for matching locations (only for type 'group') |
| filterExcludedCodes | Array of strings Location codes to explicitly exclude from the group (only for type 'group') |
{- "orderLocationCode": "argentina",
- "orderLocationLabel": "Argentina",
- "type": "location",
- "tags": [
- "ar",
- "buenos-aires"
], - "filterTags": [
- "ar",
- "br"
], - "filterLabelPattern": "ramos",
- "filterExcludedCodes": [
- "excluded-code-1"
]
}{- "orderLocation": {
- "orderLocationCode": "argentina",
- "organizationId": 1,
- "orderLocationLabel": "Argentina",
- "type": "location",
- "tags": [
- "ar",
- "buenos-aires"
], - "filterTags": [
- "ar",
- "buenos-aires"
], - "filterLabelPattern": "%aires%",
- "filterExcludedCodes": [
- "excluded-code-1"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}| organizationId required | number |
| orderLocationCode required | string |
{- "orderLocation": {
- "orderLocationCode": "argentina",
- "organizationId": 1,
- "orderLocationLabel": "Argentina",
- "type": "location",
- "tags": [
- "ar",
- "buenos-aires"
], - "filterTags": [
- "ar",
- "buenos-aires"
], - "filterLabelPattern": "%aires%",
- "filterExcludedCodes": [
- "excluded-code-1"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}| organizationId required | number |
| orderLocationCode required | string |
| type | string Enum: "location" "group" Type cannot be changed after creation. Sending a different type will return 400. |
| orderLocationLabel | string Order location display label |
| tags | Array of strings Order location tags |
| filterTags | Array of strings Tags filter for group membership (only for type 'group') |
| filterLabelPattern | string Label contains filter for matching locations (only for type 'group') |
| filterExcludedCodes | Array of strings Location codes to explicitly exclude from the group (only for type 'group') |
{- "type": "location",
- "orderLocationLabel": "Argentina",
- "tags": [
- "ar",
- "buenos-aires"
], - "filterTags": [
- "ar",
- "br"
], - "filterLabelPattern": "ramos",
- "filterExcludedCodes": [
- "excluded-code-1"
]
}{- "orderLocation": {
- "orderLocationCode": "argentina",
- "organizationId": 1,
- "orderLocationLabel": "Argentina",
- "type": "location",
- "tags": [
- "ar",
- "buenos-aires"
], - "filterTags": [
- "ar",
- "buenos-aires"
], - "filterLabelPattern": "%aires%",
- "filterExcludedCodes": [
- "excluded-code-1"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}| organizationId required | number |
| codes required | Array of strings List of order location codes to resolve. Each code must be unique. |
{- "codes": [
- "argentina",
- "latam-group"
]
}{- "resolvedCodes": [
- "argentina",
- "latam-group",
- "brazil"
]
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| productCategoryCodes | Array of strings Example: productCategoryCodes=electronics&productCategoryCodes=clothing&productCategoryCodes=food Filter by product category codes |
| search | string Filter by code, label or tags |
{- "results": [
- {
- "productCategoryCode": "electronics",
- "organizationId": 1,
- "productCategoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
], - "totalCount": 25,
- "limit": 10,
- "page": 1
}| organizationId required | number |
| productCategoryCode required | string Unique product category code |
| productCategoryLabel required | string Human-readable product category label |
| tags | Array of strings Product category tags |
{- "productCategoryCode": "electronics",
- "productCategoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
]
}{- "productCategory": {
- "productCategoryCode": "electronics",
- "organizationId": 1,
- "productCategoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}| organizationId required | number |
| productCategoryCode required | string |
{- "productCategory": {
- "productCategoryCode": "electronics",
- "organizationId": 1,
- "productCategoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}| organizationId required | number |
| productCategoryCode required | string |
| productCategoryCode | string Unique product category code |
| productCategoryLabel | string Human-readable product category label |
| tags | Array of strings Product category tags |
{- "productCategoryCode": "electronics",
- "productCategoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
]
}{- "productCategory": {
- "productCategoryCode": "electronics",
- "organizationId": 1,
- "productCategoryLabel": "Electronics",
- "tags": [
- "tech",
- "gadgets"
], - "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-15T10:30:00Z"
}
}| organizationId required | number |
{- "permissionGroups": [
- {
- "permissionGroupKey": "pgrp_01H...",
- "organizationId": 123456,
- "name": "Contact Center",
- "description": "string",
- "isAdmin": false,
- "roles": [
- "members:read",
- "benefits:read"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}| organizationId required | number |
| name required | string Display name of the group |
| description | string Optional human-readable description of what the group grants |
| isAdmin required | boolean Grants org-wide admin (all permissions) when true; roles are ignored |
| roles required | Array of arrays Permission roles of the form "resource:action" |
{- "name": "Contact Center",
- "description": "Read-only access to members and coupon books",
- "isAdmin": false,
- "roles": [
- "members:read",
- "benefits:read"
]
}{- "permissionGroup": {
- "permissionGroupKey": "pgrp_01H...",
- "organizationId": 123456,
- "name": "Contact Center",
- "description": "string",
- "isAdmin": false,
- "roles": [
- "members:read",
- "benefits:read"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| permissionGroupKey required | string |
{- "permissionGroup": {
- "permissionGroupKey": "pgrp_01H...",
- "organizationId": 123456,
- "name": "Contact Center",
- "description": "string",
- "isAdmin": false,
- "roles": [
- "members:read",
- "benefits:read"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| permissionGroupKey required | string |
| name | string |
| description | string |
| isAdmin | boolean |
| roles | Array of arrays |
{- "name": "Contact Center",
- "description": "Read-only access to members and coupon books",
- "isAdmin": false,
- "roles": [
- "members:read",
- "benefits:read"
]
}{- "permissionGroup": {
- "permissionGroupKey": "pgrp_01H...",
- "organizationId": 123456,
- "name": "Contact Center",
- "description": "string",
- "isAdmin": false,
- "roles": [
- "members:read",
- "benefits:read"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| organizationId required | number |
| name required | string |
| description | string |
| pictureUrl | string |
| type required | number |
| active required | boolean |
| schema required | string |
{- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "schema": "string"
}{- "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"
}| organizationId required | number |
| page | number >= 0 Example: page=0 The page number for pagination |
| limit | number [ 1 .. 100 ] Example: limit=100 The limit of items to return per page |
| order | string Order of results as a comma-separated 'column' with an optional direction. Samples: ?order=col1, ?order=col1,asc or ?order=col1,desc |
| type | number |
| active | boolean |
| includeLastSchema | boolean |
[- {
- "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"
}
]
}
]| organizationId required | number |
| id required | string |
{- "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"
}| organizationId required | number |
| id required | string |
| name | string |
| description | string |
| pictureUrl | string |
| type | number |
| active | boolean |
| schema | string |
{- "name": "string",
- "description": "string",
- "pictureUrl": "string",
- "type": 0,
- "active": true,
- "schema": "string"
}{- "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"
}| organizationId required | number |
| id required | string |
| versionId required | string |
{- "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"
}