Download OpenAPI specification:Download
Glossary:
Item | Description |
---|---|
Accept-Language | The Accept-Language request HTTP header indicates the natural language and locale that the client prefers. Browsers set required values for this header according to their active user interface language. Users rarely change it, and such changes are not recommended because they may lead to fingerprinting. As Accept-Language header we can pass values available in LANGUAGES dictionary. If you provide values that dictionary does not contain, you will have default language returned. |
Base URL | In the context of an API, the base URL is the combination of scheme, hostname, and base path on the root level of the API. For example, in the Echo Loyalty Business To Client Gateway REST API, the full URL for the POST /enrollment operation, which enrolls a member is: https://b2c-tenantId.echoloyalty.com/b2c/v3/enrollment. The base URL is: https://b2c-tenantId.echoloyalty.com/b2c/v3. This is constructed from these three elements: -Scheme: HTTPS -Host: b2c-tenantId.echoloyalty.com -Base path: /b2c/v3 |
Bearer access token (access token) | An access token that uses the standard and contains all the information the resource server needs to confirm the user’s grant to the application. It has the following three-part structure, with period separators: Header.Payload.Signature. The platform's OAuth Provider domain can issue Bearer access tokens. An advantage of the Bearer access token is that the Resource Server can validate by itself without having to go back to the Authorization Server. |
Bearer token | Used in OAuth, the bearer token is a security token with the property that any party in possession of the token (the bearer) can use it. The bearer token is sent as-is in the API request, in the Authorization header. The platform's OAuth Provider domain supports Referenced Bearer (a simple bearer token) and bearer access token. |
Coordinated Universal Time (UTC) | Coordinated Universal Time (UTC), also called Zulu time, is the primary time standard in general use. It essentially equates to Greenwich Mean Time (GMT), but is more scientifically precise. In the Echo Loyalty Business To Client Gateway REST API, time values are represented in the standard UTC date/time format YYYY-MM-DDTHH:MM:SSZ. Example: 2013-12-31T15:45:00-04:00Z. |
Gateway | A Echo Loyalty Business To Client Gateway REST API streamlines signing up, signing in, management, operation of APIs, enhancing security and regulatory compliance through authentication and authorization. It provides central definition and management of security and other operational governance policies across multiple instances. The Gateway enables enterprises to standardize API and service delivery with high security, performance, and availability. |
Header | API headers are like an extra source of information for each API call. Their job is to represent the meta-data associated with an API request and response. API headers tell user about request/response bodies, authorization, caching, cooking. Headers examples: Authorization, WWW-Authenticate, Accept-Charset, Content-Type, Cache-Control. |
Path Paramter | Path is a type of parameter that lives within the endpoint URL. In a typical REST scheme, the path portion of the URL represents entity class hierarchy. Path parameters are surrounded with curly brackets and offer a unique opportunity for developers to control the representation of a specific resource. In this URL: (https://b2c-tenantId.echoloyalty.com/b2c/v3/rewards/{rewardCode}?pricePlanDate=2018-09-01), the {rewardCode} part represents the parameter that is required for the call. Unlike query string parameters where the order doesn’t matter, path parameters values must be given in correspondence with the format that is dictated by the URL path. While query parameters allow you to omit a value, path parameter values can’t be omitted since it would mean changing the URL path. |
Query Paramter | API Query parameters can be defined as the optional key-value pairs that appear after the question mark in the URL. Basically, they are extensions of the URL that are utilized to help determine specific content or action based on the data being delivered. Query parameters are appended to the end of the URL, using a '?'. The question mark sign is used to separate path and query parameters. If you want to add multiple query parameters, an '&' sign is placed in between them to form what is known as a query string. In this URL: (https://b2c-tenantId.echoloyalty.com/b2c/v3/rewards/{rewardCode}?pricePlanDate=2018-09-01), there is one query parameter: pricePlanDate, with 2018-09-01 being its value. |
Token | An access object sent to the requestor (client app) after authentication is complete and authorization has been granted. The token enables the client app to request access to the end-user's resources. OAuth, OpenID Connect, and SAML use tokens. There are different types of tokens, as defined in the applicable specification; for example, OAuth access tokens, bearer tokens (also called bearer access tokens), client tokens (not currently supported), and ID tokens (used by OpenID Connect). |
URL | A URL (Universal Resource Locator, a Web address) identifies a resource by specifying its location in the context of a particular access protocol; for example, HTTP or HTTPS. |
Version | Each app or API on the platform much have at least one version, and can have multiple versions. When a user creates an app or API on the platform, the first version is created automatically; when using the API, it's important to complete both actions. |
X-Correlation-ID | X-Correlation-ID - header that correlates HTTP requests between a client and server. |
Authentication | Authentication is a scheme - authorization credentails encryption scheme (e.g. OAuth 2.0, Bearer Token). Authentication is a identity verification whether user which send request is the same user as he claims. |
Authorization | As an authortization we understand a verification whether API user has safe access and has permission/priviliges to make use of API resources. Authorization is a header used to provide credentials that authenticate API user enabling access to proteceted resource for him. |
Customer | Member/participant of loyalty program. |
identifierId | 'identifierId' is an inner ID poiniting specific identifier in database table. Each identifier is linked to particular member and has its own type. |
identifierNo | 'identifierNo' is a member identifier ID as 'identifierId' generated within CLC. Unlike 'identifierId', 'identifierNo' is made public and can be found in Customer Care Panel among others. |
/me | /me is part of endpoint URL available on B2C facade. Using '/me' parameter you determine that endpoint you actually call is about you i.e. currently logged in user, whose identity has been verified. So you don't have to use any customer or identifier identification. |
Customer password access token flow. Password grant type.
See Authentication documentation for more details.
Security Scheme Type | OAuth2 |
---|---|
password OAuth Flow | Token URL: https://$host$:$port$/b2c/$version$/login Refresh URL: https://$host$:$port$/b2c/$version$/refresh-token Scopes:
|
Both authentication and authorization are core to the security of APIs.
Authentication - Authentication proves that you are who you say you are. We use OAuth2 security scheme as the method for authentication.
Authorization - The process when an entity proves a right to access. In other words, Authorization proves you have the right to make a request. To authorize as a member, login, password and the valid token obtained during authentication are required. Here you can also manage token validity.
Authorize member, grant access to B2C gateway and issue the access token.
Usage of query parameters is denied, x-www-form-urlencoded approach is preferred.
Content-Type required | string Value: "application/x-www-form-urlencoded" Request content type as MIME type. |
Accept | string Default: application/json Value: "application/json" Expected response content type as MIME type. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
username required | string Customer login. |
password required | string <password> Customer password. |
scope | string Space separated list of scopes, which represent profiles granted within the token. |
channel | string Default: "O" Enum: "W" "O" Business channel invoking further operations.
|
{- "access_token": "string",
- "token_type": "bearer",
- "expires_in": 0,
- "scope": "string",
- "jti": "string",
- "refresh_token": "string"
}
Prolongate access token expiry time.
Usage of query parameters is denied, x-www-form-urlencoded approach is preferred.
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
X-CLM-OTP-TOKEN | string <= 200 characters Value of token sent on email or sms. Necessary to pass multifactor authentication |
Accept | string Default: application/json Value: "application/json" Expected response content type as MIME type. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
refresh_token required | string Refresh token to be refreshed |
scope | string Space separated list of scopes, which represent profiles granted within the token. |
{- "access_token": "string",
- "token_type": "bearer",
- "expires_in": 0,
- "scope": "string",
- "jti": "string",
- "refresh_token": "string"
}
Invalidate access token and logout.
Usage of query parameters is denied, x-www-form-urlencoded approach is preferred.
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
refresh_token required | string Refresh token to be invalidated |
{- "error": "UNAUTHORIZED",
- "message": "Unauthorized",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 401,
- "timestamp": "2017-09-12T12:36:05.217Z"
}
With this method, you can enroll new members in the Loyalty program. You can make use of all pre-defined fields available in the System in your enrollment form. This part of the API will allow you to get the necessary consent types from your loyalty program members.
Enrolls new member with lists of predefined attributes.
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
X-CLM-OTP-TOKEN | string <= 200 characters Value of token sent on email or sms. Necessary to pass multifactor authentication |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
X-CLM-Channel | string Default: O Enrollment channel code. TRANSACTION_CHANNELS dictionary. |
Array of objects | |
Array of objects | |
required | object (types.StaticAttributesEnrollment) |
required | object (types.TaCMemberCreateUpdate) |
{- "predefinedAttributes": [
- {
- "code": "string",
- "value": "string"
}
], - "customAttributes": [
- {
- "code": "string",
- "value": "string"
}
], - "staticAttributes": {
- "mobileId": "string",
- "mobileSystem": "string",
- "password": "pa$$word",
- "oneTimePermission": true,
- "preferredChannel": "string"
}, - "termsAcceptance": {
- "gdpr": {
- "personalDataProcessing": {
- "memberConsent": true,
- "acceptedVersion": 0
}, - "personalDataProfiling": {
- "memberConsent": true,
- "acceptedVersion": 0
}
}, - "loyalty": {
- "termsAndConditions": {
- "memberConsent": true,
- "acceptedVersion": 0
}, - "communications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}, - "thirdPartyCommunications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}, - "marketingCommunications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}
}
}
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
This set of methods is strictly related to loyalty program members and their data. Here, you will find all methods allowing you to manage the member data from verification of credentials through profile modification and acceptance of new consents. For example, you will use these methods to show a member his loyalty card number/code and display data on the profile such as name or phone number. Also, it's necessary to change a member's password.
Verify member's credentials.
May be used to confirm customer's credentials for some critical operation, while customer is already authenticated.
b2c_api_gateway
) Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
password required | string <password> Member's password |
{- "password": "pa$$word"
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Get member profile
b2c_api_gateway
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "predefinedAttributes": [
- {
- "code": "string",
- "value": "string",
- "valueName": "string"
}
], - "customAttributes": [
- {
- "code": "string",
- "value": "string"
}
], - "staticAttributes": {
- "customerId": 0,
- "accountId": 0,
- "balance": 0,
- "mobileId": "string",
- "mobileSystem": "string",
- "avatarImageId": "string",
- "loginBlocked": true,
- "lastModify": "2019-08-24T14:15:22Z"
}, - "termsAcceptance": {
- "gdpr": {
- "personalDataProcessing": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "acceptedVersion": 0,
- "memberConsent": true,
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}, - "acceptanceDate": "2019-08-24"
}, - "personalDataProfiling": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "acceptedVersion": 0,
- "memberConsent": true,
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}, - "acceptanceDate": "2019-08-24"
}
}, - "loyalty": {
- "termsAndConditions": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "acceptedVersion": 0,
- "memberConsent": true,
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}, - "acceptanceDate": "2019-08-24"
}, - "communications": {
- "description": "string",
- "acceptanceLevel": "string",
- "label": "string",
- "memberConsent": true,
- "communicationChannels": [
- {
- "acceptanceDate": "2019-08-24",
- "code": "string",
- "name": "string"
}
]
}, - "thirdPartyCommunications": {
- "description": "string",
- "acceptanceLevel": "string",
- "label": "string",
- "memberConsent": true,
- "communicationChannels": [
- {
- "acceptanceDate": "2019-08-24",
- "code": "string",
- "name": "string"
}
]
}, - "marketingCommunications": {
- "description": "string",
- "acceptanceLevel": "string",
- "label": "string",
- "memberConsent": true,
- "communicationChannels": [
- {
- "acceptanceDate": "2019-08-24",
- "code": "string",
- "name": "string"
}
]
}
}
}
}
Update member profile.
Accept only technical and editable fields configured as Member attributes for Mobile App/Member Portal.
Not provided technical and editable fields are cleared in the data storage.
b2c_api_gateway
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
Array of objects | |
Array of objects | |
object (types.StaticAttributes) |
{- "predefinedAttributes": [
- {
- "code": "string",
- "value": "string"
}
], - "customAttributes": [
- {
- "code": "string",
- "value": "string"
}
], - "staticAttributes": {
- "mobileId": "string",
- "mobileSystem": "string",
- "avatarImageId": "string",
- "lastModify": "2019-08-24T14:15:22Z"
}
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Modify member profile.
Not provided data are not overwritten in the data storage.
EMAIL attribute can be only updated using PUT /me or PUT /me/email-change methods.
MOBILE_PHONE_NUMBER attribute can be only updated using PUT /me or PUT /me/phone-number-change methods.
MOBILE_PHONE_NUMBER_PREFIX attribute can be only updated using PUT /me or PUT /me/phone-number-change methods.
b2c_api_gateway
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
Array of objects | |
Array of objects | |
object (types.StaticAttributes) |
{- "predefinedAttributes": [
- {
- "code": "string",
- "value": "string"
}
], - "customAttributes": [
- {
- "code": "string",
- "value": "string"
}
], - "staticAttributes": {
- "mobileId": "string",
- "mobileSystem": "string",
- "avatarImageId": "string",
- "lastModify": "2019-08-24T14:15:22Z"
}
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Upload member avatar file into the system storage.
b2c_api_gateway
) Content-Type | string Default: multipart/form-data Value: "multipart/form-data" Content type as MIME type. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
file required | string <binary> File contents |
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Change password
b2c_api_gateway
b2c_api_pass_exp
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
oldPassword required | string <password> Customer's old password |
newPassword required | string <password> Customer's new password |
confirmPassword required | string <password> New password repeated |
{- "oldPassword": "pa$$word",
- "newPassword": "pa$$word",
- "confirmPassword": "pa$$word"
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Close member account on own request.
Operation is irrevertible.
b2c_api_gateway
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Get details of recently accepted Terms and Conditions Policy and info about acceptance.
b2c_api_gateway
b2c_api_tac
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "gdpr": {
- "personalDataProcessing": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "acceptedVersion": 0,
- "memberConsent": true,
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}, - "acceptanceDate": "2019-08-24"
}, - "personalDataProfiling": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "acceptedVersion": 0,
- "memberConsent": true,
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}, - "acceptanceDate": "2019-08-24"
}
}, - "loyalty": {
- "termsAndConditions": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "acceptedVersion": 0,
- "memberConsent": true,
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}, - "acceptanceDate": "2019-08-24"
}, - "communications": {
- "description": "string",
- "acceptanceLevel": "string",
- "label": "string",
- "memberConsent": true,
- "communicationChannels": [
- {
- "acceptanceDate": "2019-08-24",
- "code": "string",
- "name": "string"
}
]
}, - "thirdPartyCommunications": {
- "description": "string",
- "acceptanceLevel": "string",
- "label": "string",
- "memberConsent": true,
- "communicationChannels": [
- {
- "acceptanceDate": "2019-08-24",
- "code": "string",
- "name": "string"
}
]
}, - "marketingCommunications": {
- "description": "string",
- "acceptanceLevel": "string",
- "label": "string",
- "memberConsent": true,
- "communicationChannels": [
- {
- "acceptanceDate": "2019-08-24",
- "code": "string",
- "name": "string"
}
]
}
}
}
Accept Terms and Conditions Policy.
Current version of policy is accepted with current date and time.
b2c_api_gateway
b2c_api_tac
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
object | |
object |
{- "gdpr": {
- "personalDataProcessing": {
- "memberConsent": true,
- "acceptedVersion": 0
}, - "personalDataProfiling": {
- "memberConsent": true,
- "acceptedVersion": 0
}
}, - "loyalty": {
- "termsAndConditions": {
- "memberConsent": true,
- "acceptedVersion": 0
}, - "communications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}, - "thirdPartyCommunications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}, - "marketingCommunications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}
}
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Update Terms and Conditions Policy.
Current version of policy is accepted with current date and time.
b2c_api_gateway
b2c_api_tac
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
object | |
object |
{- "gdpr": {
- "personalDataProcessing": {
- "memberConsent": true,
- "acceptedVersion": 0
}, - "personalDataProfiling": {
- "memberConsent": true,
- "acceptedVersion": 0
}
}, - "loyalty": {
- "termsAndConditions": {
- "memberConsent": true,
- "acceptedVersion": 0
}, - "communications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}, - "thirdPartyCommunications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}, - "marketingCommunications": {
- "memberConsent": true,
- "communicationChannels": [
- {
- "code": "string"
}
]
}
}
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Get list of points expiration forecast with prevention source.
Sortable by [forecastedExpirationDate].
Default sort: forecastedExpirationDate:ASC.
b2c_api_gateway
) pointType | string Point type code. POINT_TYPES dictionary. |
expirationDateFrom | string <date> Points expiration date - lower limit. Inclusive. |
expirationDateTo | string <date> Points expiration date - upper limit. Inclusive. |
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item in array points. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "expirationPrevention": {
- "enabled": true,
- "source": "string",
- "endDate": "2019-08-24"
}, - "points": [
- {
- "amount": 0,
- "forecastedExpirationDate": "2019-08-24",
- "pointType": "string",
- "pointTypeName": "string"
}
]
}
Members like to browse thru transaction history and check the number of added points. Each of them is stored in the System with a unique identifier so you can display all its details. Furthermore, by using a member balance request, you can check the activity of a single member. This comes together with processing coupons assigned to the member and showing the current points balance in the member's profile.
Get list of member transactions.
Sortable by [transactionId, identifierNo, date, type, points, status, channel, partner, trnNo, location].
b2c_api_gateway
) id | integer Unique transaction identifier |
identifierNo | string Loyalty identifier which identifies the customer on which operation will be processed. |
type | Array of strings Transactions types codes. TRANSACTION_TYPES dictionary. |
status | Array of strings Transactions statuses codes. TRANSACTION_STATUSES dictionary. |
channel | Array of strings Transactions channels codes. TRANSACTION_CHANNELS dictionary. |
partner | string Code of the partner that participated in the transactions. PARTNERS dictionary. |
location | string Code of the location in which the transactions where processed. LOCATIONS dictionary. |
trnNo | string Identifier of the transaction in the partners' external systems. |
dateFrom | string <date> Transaction date lower boundary. Inclusive. |
dateTo | string <date> Transaction date upper boundary. Inclusive. |
attributes | string Allows search only by static attributes. Search is exact (=). When search by multiple attributes is performed they are joined with AND operator.
DateTime and Date attributes must be sent with a time zones:
|
with | Array of strings Items Enum: "attributes" "products" "triggeredRules" Appends to every response item additional content that is not appended by default to boost lists performance. |
sort | string Default: "date:DESC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "transactionId": 0,
- "customerLogin": "string",
- "identifierId": 0,
- "identifierNo": "string",
- "date": "2019-08-24T14:15:22Z",
- "type": "st",
- "typeName": "string",
- "status": "s",
- "statusName": "string",
- "channel": "s",
- "channelName": "string",
- "partner": "string",
- "partnerName": "string",
- "location": "string",
- "locationName": "string",
- "trnNo": "string",
- "basicPoints": 0,
- "basicPointsTypeName": "string",
- "products": [
- {
- "code": "string",
- "name": "string",
- "domain": "P",
- "quantity": 0,
- "value": 0,
- "discountedValue": 0,
- "basicPoints": 0,
- "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0
}
]
}
], - "triggeredRules": [
- {
- "code": "string",
- "name": "string",
- "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0
}
], - "discount": 0
}
], - "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0
}
], - "attributes": [
- {
- "code": "string",
- "value": "string"
}
]
}
]
}
Get details of single transaction belonging to the member profile.
Transaction results depend on transaction type and system configuration.
b2c_api_gateway
) transactionId required | integer Transaction internal unique identifier |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "transactionId": 0,
- "customerLogin": "string",
- "identifierId": 0,
- "identifierNo": "string",
- "date": "2019-08-24T14:15:22Z",
- "type": "st",
- "typeName": "string",
- "status": "s",
- "statusName": "string",
- "channel": "s",
- "channelName": "string",
- "partner": "string",
- "partnerName": "string",
- "location": "string",
- "locationName": "string",
- "trnNo": "string",
- "basicPoints": 0,
- "basicPointsTypeName": "string",
- "delayedBasicPoints": 0,
- "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0,
- "status": "s",
- "statusName": "string",
- "expirationDate": "2019-08-24"
}
], - "delayedPoints": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0,
- "status": "s",
- "statusName": "string",
- "expirationDate": "2019-08-24"
}
], - "incentiveValue": 0,
- "discountValue": 0,
- "totalValue": 0,
- "currencyCode": "str",
- "shared": true,
- "correctionReasonCode": "string",
- "processDate": "2019-08-24T14:15:22Z",
- "confirmationDate": "2019-08-24T14:15:22Z",
- "comment": "string",
- "triggeredRules": [
- {
- "code": "string",
- "name": "string",
- "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0
}
], - "discount": 0
}
], - "issuedCoupons": [
- {
- "couponNumber": "string",
- "couponTypeCode": "string",
- "couponTypeName": "string",
- "externalName": "string",
- "externalDescription": "string",
- "marketingText": "string",
- "useQuantity": 0,
- "validityPeriod": {
- "validityStartDate": "2019-08-24",
- "expiryDate": "2019-08-24"
}, - "fixedValueDiscount": 0.01,
- "percent": 1,
- "applicationRule": "U",
- "visualModes": [
- "BC"
]
}
], - "burnedCoupons": [
- {
- "couponNumber": "string",
- "couponTypeCode": "string",
- "couponTypeName": "string",
- "externalName": "string",
- "externalDescription": "string",
- "marketingText": "string",
- "useQuantity": 0,
- "validityPeriod": {
- "validityStartDate": "2019-08-24",
- "expiryDate": "2019-08-24"
}, - "fixedValueDiscount": 0.01,
- "percent": 1,
- "applicationRule": "U",
- "useDetails": {
- "useResult": "s",
- "useResultName": "string",
- "status": "s",
- "statusName": "string",
- "burnQuantity": 0,
- "refundQuantity": 0
}
}
], - "refundedCoupons": [
- {
- "couponNumber": "string",
- "couponTypeCode": "string",
- "couponTypeName": "string",
- "externalName": "string",
- "externalDescription": "string",
- "marketingText": "string",
- "useQuantity": 0,
- "validityPeriod": {
- "validityStartDate": "2019-08-24",
- "expiryDate": "2019-08-24"
}, - "fixedValueDiscount": 0.01,
- "percent": 1,
- "applicationRule": "U",
- "visualModes": [
- "BC"
], - "useDetails": {
- "status": "s",
- "statusName": "string",
- "burnQuantity": 0,
- "refundQuantity": 0
}
}
], - "products": [
- {
- "code": "string",
- "name": "string",
- "domain": "P",
- "quantity": 0,
- "value": 0,
- "discountedValue": 0,
- "basicPoints": 0,
- "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0
}
]
}
], - "attributes": [
- {
- "code": "string",
- "value": "string",
- "name": "string",
- "description": "string"
}
]
}
Get list of member regular coupons available at the moment of operation execution.
Sortable by [id, couponTypeCode, couponNumber, issuanceDate, validityStartDate, expiryDate].
Note that there may exist multiple coupons with same couponNumber belonging to different or same customers.
b2c_api_gateway
) filter | string >= 3 characters Full text search query. |
couponTypeCode | Array of strings Coupon type codes list. CLOUD_COUPON_TYPES dictionary. |
couponNumber | Array of strings Coupon numbers list |
deliveryChannelCode | Array of strings Coupon delivery channels codes list. COUPON_DELIVERY_CHANNELS dictionary. |
expiryDateFrom | string <date> Coupon expiration date - lower limit. Inclusive. |
expiryDateTo | string <date> Coupon expiration date - upper limit. Inclusive. |
sort | string Default: "issuanceDate:DESC, expiryDate:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "id": 0,
- "customerId": 0,
- "customerLogin": "string",
- "couponTypeCode": "string",
- "couponTypeName": "string",
- "externalName": "string",
- "deliveryChannels": {
- "pos": {
- "marketingText": "string"
}, - "email": {
- "marketingText": "string"
}, - "sms": {
- "marketingText": "string"
}, - "webapp": {
- "marketingText": "string"
}, - "mobileapp": {
- "marketingText": "string"
}
}, - "couponTypeLargeImageId": "string",
- "couponTypeSmallImageId": "string",
- "tags": [
- "string"
], - "couponNumber": "string",
- "visualModes": [
- "BC"
], - "issuanceDate": "2019-08-24T14:15:22Z",
- "validityStartDate": "2019-08-24",
- "expiryDate": "2019-08-24",
- "status": "s",
- "statusName": "string",
- "useQuantity": 0,
- "burnQuantity": 0,
- "refundQuantity": 0,
- "distributionMode": "string",
- "distributionModeName": "string",
- "issuedByPromotion": 0,
- "issuedByTransaction": 0,
- "discount": 0.01,
- "discountPercentage": 0,
- "interactive": true
}
]
}
Get member points balances.
Returns breakdown of all points by point type.
b2c_api_gateway
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "member": {
- "customerLogin": "string",
- "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0,
- "balanceUpdateDate": "2019-08-24T14:15:22Z",
- "mainBalance": true,
- "pointsWithDelayed": 0,
- "delayedPoints": [
- {
- "points": 0,
- "bookDate": "2019-08-24T14:15:22Z"
}
]
}
]
}
}
Get member's basic points balance.
b2c_api_gateway
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "points": 0
}
Each member of the loyalty program has a unique ID number. With this number, all kinds of transactions can be performed, and what's most important, a member can be unequivocally identified with it. In addition, this method allows checking in-depth details regarding a member's ID, such as visual mode, status or type (internal/external), etc., or generating a list of all IDs assigned to one member.
Get list of all identifiers belonging to the member
b2c_api_gateway
) Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "identifierNo": "string",
- "identifierTypeCode": "string",
- "identifierTypeName": "string",
- "visualMode": "string",
- "status": "s",
- "statusName": "string",
- "main": true
}
]
}
Get details of the member's identifier
b2c_api_gateway
) identifierNo required | string Unique loyalty card identifier number |
fields | string When present, limits the fields in the response to the specified list, otherwise whole response is returned. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "identifierNo": "string",
- "identifierTypeCode": "string",
- "identifierTypeName": "string",
- "visualMode": "string",
- "status": "s",
- "statusName": "string",
- "main": true,
- "assignmentDate": "2019-08-24",
- "blockedReason": "string",
- "blockedByUserId": 0,
- "firstTrnDate": "2019-08-24",
- "lastTrnDate": "2019-08-24",
- "lastModify": "2019-08-24T14:15:22Z"
}
This set of methods works in both ways – you can display generic info about all active and configured coupons in your program, and, on the other hand, you can show individual coupons dedicated to member and assigned to his loyalty identifier by any type of campaign. Member can find the names, validity dates, value, and coupon code on his account.
Browsing through rewards with colorful images and checking their price in points and availability is one of the most frequent member activities in the program. In addition, you can display the whole catalog with many details to show the attractiveness of your program.
Last but not least, the member can redeem points (simulated or processed for available rewards).
Process or simulate redemption transaction for the member.
Redeems basing on business rules and rewards catalogue.
b2c_api_gateway
) simulate | boolean Default: false True enable simulation mode. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
trnNo | string <= 100 characters Partner transaction number |
comment | string <= 400 characters Transaction comment |
required | Array of objects (types.OrderItem) List of rewards in basket |
deliveryMethod | string Delivery method code. REWARD_DELIVERY_METHODS dictionary. |
object Delivery location details. | |
object Delivery address details. |
{- "trnNo": "string",
- "comment": "string",
- "rewards": [
- {
- "pricePlanCode": "string",
- "quantity": 1
}
], - "deliveryMethod": "string",
- "deliveryLocation": {
- "partnerCode": "string",
- "locationCode": "string"
}, - "deliveryAddress": {
- "name": "string",
- "street": "string",
- "houseNumber": "string",
- "apartmentNumber": "string",
- "postalCode": "string",
- "city": "string",
- "region": "string",
- "country": "str",
- "email": "string",
- "mobile": "string",
- "phoneCountryPrefix": "string",
- "additionalInfo": "string"
}
}
{- "transactionId": 0,
- "status": "s",
- "statusName": "string",
- "orderId": 0,
- "transactionPoints": {
- "basicPoints": 0,
- "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0
}
]
}, - "memberBalance": {
- "basicPoints": 0,
- "points": [
- {
- "pointType": "string",
- "pointTypeName": "string",
- "points": 0
}
]
}, - "incentiveValue": 0,
- "productsDiscountValue": 0,
- "billDiscountValue": 0,
- "discountValue": 0,
- "paymentValue": 0,
- "messages": [
- "string"
], - "products": [
- {
- "code": "string",
- "externalCode": "string",
- "quantity": 0,
- "discountValue": 0,
- "paymentValue": 0,
- "discountPromotions": [
- {
- "code": "string",
- "externalName": "string",
- "discountValue": 0
}
]
}
], - "billDiscountPromotions": [
- {
- "code": "string",
- "externalName": "string",
- "discountValue": 0
}
], - "issuedCoupons": [
- {
- "couponNumber": "string",
- "couponTypeCode": "string",
- "couponTypeName": "string",
- "externalName": "string",
- "externalDescription": "string",
- "marketingText": "string",
- "useQuantity": 0,
- "validityPeriod": {
- "validityStartDate": "2019-08-24",
- "expiryDate": "2019-08-24"
}, - "fixedValueDiscount": 0.01,
- "percent": 1,
- "applicationRule": "U",
- "visualModes": [
- "BC"
]
}
], - "burnedCoupons": [
- {
- "couponNumber": "string",
- "couponTypeCode": "string",
- "couponTypeName": "string",
- "externalName": "string",
- "externalDescription": "string",
- "marketingText": "string",
- "useQuantity": 0,
- "validityPeriod": {
- "validityStartDate": "2019-08-24",
- "expiryDate": "2019-08-24"
}, - "fixedValueDiscount": 0.01,
- "percent": 1,
- "applicationRule": "U",
- "useDetails": {
- "useResult": "s",
- "useResultName": "string",
- "status": "s",
- "statusName": "string",
- "burnQuantity": 0,
- "refundQuantity": 0
}
}
], - "refundedCoupons": [
- {
- "couponNumber": "string",
- "couponTypeCode": "string",
- "couponTypeName": "string",
- "externalName": "string",
- "externalDescription": "string",
- "marketingText": "string",
- "useQuantity": 0,
- "validityPeriod": {
- "validityStartDate": "2019-08-24",
- "expiryDate": "2019-08-24"
}, - "fixedValueDiscount": 0.01,
- "percent": 1,
- "applicationRule": "U",
- "visualModes": [
- "BC"
], - "useDetails": {
- "status": "s",
- "statusName": "string",
- "burnQuantity": 0,
- "refundQuantity": 0
}
}
]
}
Get list of reward categories.
Sortable by [code, name, description, parentCategory, categoryOrder].
filter | string >= 3 characters Full text search query. |
code | Array of strings List of reward category codes. REWARD_CATEGORIES dictionary. |
name | string Reward category name. |
description | string Reward category description. |
parentCategory | Array of strings List of associated upper level categories codes. REWARD_CATEGORIES dictionary. |
root | boolean When true returns only root level categories, when false returns all categories. |
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "name": "string",
- "externalName": "string",
- "parentCategory": "string",
- "description": "string",
- "externalDescription": "string",
- "shortDescription": "string",
- "imageId": "string",
- "parentCategoryName": "string",
- "categoryOrder": 0
}
]
}
Get list of rewards which are currently active and have an unlimited quantity.
Sortable by [code, name, categoryOrder, auditCD, pricePlan.points, type, startDate, endDate].
Sorting by pricePlan.points uses the default system point type by default, the pricePlan.pointType filter can be used to specify the desired one.
filter | string >= 3 characters Full text search query. |
code | Array of strings List of reward codes. REWARDS dictionary. |
name | string Reward name |
category | Array of strings List of category codes of the reward. REWARD_CATEGORIES dictionary.
|
masterCategory | Array of strings List of category codes of the reward. REWARD_CATEGORIES dictionary. |
type | Array of strings List of reward type codes. REWARD_TYPES dictionary. |
startDate | string <date> Reward available since date. Inclusive. |
endDate | string <date> Reward available to date. Inclusive. |
period | string Enum: "D" "W" "M" "Y" Convenience way for defining reward availability date range.
|
partner | Array of strings Codes of reward partners. PARTNERS dictionary. |
pricePlan.code | Array of strings List of reward price plan codes |
pricePlan.channel | Array of strings List of reward price plan channel codes. REWARD_ORDER_CHANNELS dictionary. |
pricePlan.pointsFrom | integer Minimum points amount set in the price plan. Inclusive. Minimum amount of points that customer is willing to pay for reward. |
pricePlan.pointsTo | integer Maximum points amount set in the price plan. Inclusive. Maximum amount of points that customer is willing to pay for reward. |
pricePlan.pointType | Array of strings Price plan related point type codes. POINT_TYPES dictionary. |
pricePlan.startDate | string <date> Reward price plan available since. Inclusive. |
pricePlan.endDate | string <date> Reward price plan available to. Inclusive. |
pricePlan.period | string Enum: "D" "W" "M" "Y" Convenience way for defining reward price plan availability date range.
|
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
with | Array of strings Items Enum: "pricePlans" "resources" "supplier" Appends to every response item additional content that is not appended by default to boost lists performance. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "externalName": "string",
- "status": "s",
- "type": "s",
- "category": "string",
- "categoryOrder": 0,
- "masterCategory": "string",
- "partner": "string",
- "partnerName": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "statusName": "string",
- "typeName": "string",
- "categoryName": "string",
- "masterCategoryName": "string",
- "supplier": "string",
- "rewardSupplier": {
- "code": "string",
- "name": "string",
- "status": "s",
- "statusName": "string",
- "address": {
- "street": "string",
- "houseNumber": "string",
- "apartmentNumber": "string",
- "postalCode": "string",
- "city": "string",
- "region": "string",
- "country": "str",
- "email": "string",
- "mobile": "string",
- "additionalInfo": "string"
}, - "contacts": [
- {
- "name": "string",
- "address": "string",
- "email": "string",
- "phone": "string",
- "mobile": "string",
- "additionalInfo": "string"
}
], - "deliveryPOS": true,
- "deliveryHome": true,
- "deliveryOnline": true
}, - "nonMaterial": true,
- "attributes": [
- {
- "code": "string",
- "value": "string"
}
], - "pricePlans": [
- {
- "id": 0,
- "code": "string",
- "channel": "string",
- "points": 0,
- "pointType": "string",
- "pointTypeName": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
], - "resources": {
- "main": {
- "id": 0,
- "name": "string",
- "fileId": "string",
- "type": "string",
- "channel": "s",
- "typeName": "string",
- "channelName": "string"
}, - "other": [
- {
- "id": 0,
- "name": "string",
- "fileId": "string",
- "type": "string",
- "channel": "s",
- "typeName": "string",
- "channelName": "string"
}
]
}, - "creationDate": "2019-08-24T14:15:22Z"
}
]
}
Get list of member targeted rewards which are currently active.
Sortable by [code, name, categoryOrder, auditCD, pricePlan.points, type, startDate, endDate].
Sorting by pricePlan.points uses the default system point type by default, the pricePlan.pointType filter can be used to specify the desired one.
b2c_api_gateway
) filter | string >= 3 characters Full text search query. |
code | Array of strings List of reward codes. REWARDS dictionary. |
name | string Reward name |
category | Array of strings List of category codes of the reward. REWARD_CATEGORIES dictionary.
|
masterCategory | Array of strings List of category codes of the reward. REWARD_CATEGORIES dictionary. |
type | Array of strings List of reward type codes. REWARD_TYPES dictionary. |
startDate | string <date> Reward available since date. Inclusive. |
endDate | string <date> Reward available to date. Inclusive. |
period | string Enum: "D" "W" "M" "Y" Convenience way for defining reward availability date range.
|
partner | Array of strings Codes of reward partners. PARTNERS dictionary. |
pricePlan.code | Array of strings List of reward price plan codes |
pricePlan.channel | Array of strings List of reward price plan channel codes. REWARD_ORDER_CHANNELS dictionary. |
pricePlan.pointsFrom | integer Minimum points amount set in the price plan. Inclusive. Minimum amount of points that customer is willing to pay for reward. |
pricePlan.pointsTo | integer Maximum points amount set in the price plan. Inclusive. Maximum amount of points that customer is willing to pay for reward. |
pricePlan.pointType | Array of strings Price plan related point type codes. POINT_TYPES dictionary. |
pricePlan.startDate | string <date> Reward price plan available since. Inclusive. |
pricePlan.endDate | string <date> Reward price plan available to. Inclusive. |
pricePlan.period | string Enum: "D" "W" "M" "Y" Convenience way for defining reward price plan availability date range.
|
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
specialForYou | boolean Filter out rewards that do not belong to any segment. |
with | Array of strings Items Enum: "pricePlans" "resources" "supplier" Appends to every response item additional content that is not appended by default to boost lists performance. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "externalName": "string",
- "status": "s",
- "type": "s",
- "category": "string",
- "categoryOrder": 0,
- "masterCategory": "string",
- "partner": "string",
- "partnerName": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "statusName": "string",
- "typeName": "string",
- "categoryName": "string",
- "masterCategoryName": "string",
- "supplier": "string",
- "rewardSupplier": {
- "code": "string",
- "name": "string",
- "status": "s",
- "statusName": "string",
- "address": {
- "street": "string",
- "houseNumber": "string",
- "apartmentNumber": "string",
- "postalCode": "string",
- "city": "string",
- "region": "string",
- "country": "str",
- "email": "string",
- "mobile": "string",
- "additionalInfo": "string"
}, - "contacts": [
- {
- "name": "string",
- "address": "string",
- "email": "string",
- "phone": "string",
- "mobile": "string",
- "additionalInfo": "string"
}
], - "deliveryPOS": true,
- "deliveryHome": true,
- "deliveryOnline": true
}, - "nonMaterial": true,
- "attributes": [
- {
- "code": "string",
- "value": "string"
}
], - "pricePlans": [
- {
- "id": 0,
- "code": "string",
- "channel": "string",
- "points": 0,
- "pointType": "string",
- "pointTypeName": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
], - "resources": {
- "main": {
- "id": 0,
- "name": "string",
- "fileId": "string",
- "type": "string",
- "channel": "s",
- "typeName": "string",
- "channelName": "string"
}, - "other": [
- {
- "id": 0,
- "name": "string",
- "fileId": "string",
- "type": "string",
- "channel": "s",
- "typeName": "string",
- "channelName": "string"
}
]
}, - "specialForYou": true,
- "creationDate": "2019-08-24T14:15:22Z"
}
]
}
Get reward details
rewardCode required | string >= 3 characters Target reward unique code |
pricePlanDate | string <date> Example: pricePlanDate=2018-09-01 Effective date for price plan. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "code": "string",
- "externalName": "string",
- "externalDescription": "string",
- "type": "s",
- "category": "string",
- "masterCategory": "string",
- "couponTypeCode": "string",
- "categoryOrder": 0,
- "status": "s",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "attributes": [
- {
- "code": "string",
- "value": "string"
}
], - "partner": "string",
- "netValue": 0,
- "tax": "string",
- "deliveryMethod": "s",
- "quantity": 1,
- "orderRequiresApproval": false,
- "maximumRedemptionsAllowed": 1,
- "nonMaterial": true,
- "statusName": "string",
- "partnerName": "string",
- "typeName": "string",
- "categoryName": "string",
- "masterCategoryName": "string",
- "supplier": "string",
- "rewardSupplier": {
- "code": "string",
- "name": "string",
- "status": "s",
- "statusName": "string",
- "address": {
- "street": "string",
- "houseNumber": "string",
- "apartmentNumber": "string",
- "postalCode": "string",
- "city": "string",
- "region": "string",
- "country": "str",
- "email": "string",
- "mobile": "string",
- "additionalInfo": "string"
}, - "contacts": [
- {
- "name": "string",
- "address": "string",
- "email": "string",
- "phone": "string",
- "mobile": "string",
- "additionalInfo": "string"
}
], - "deliveryPOS": true,
- "deliveryHome": true,
- "deliveryOnline": true
}, - "pricePlans": [
- {
- "id": 0,
- "code": "string",
- "channel": "string",
- "points": 0,
- "pointType": "string",
- "pointTypeName": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}
], - "resources": {
- "main": {
- "id": 0,
- "name": "string",
- "fileId": "string",
- "type": "string",
- "channel": "s",
- "typeName": "string",
- "channelName": "string"
}, - "other": [
- {
- "id": 0,
- "name": "string",
- "fileId": "string",
- "type": "string",
- "channel": "s",
- "typeName": "string",
- "channelName": "string"
}
]
}, - "lastModify": "2019-08-24T14:15:22Z",
- "creationDate": "2019-08-24T14:15:22Z"
}
Get list of wide audience campaigns which are currently active in the current time period.
It returns active coupons with the Mass campaign type, which are visible to non-logged in users (i.e. broadcast = true).
Sortable by [code, name, distributionMode].
filter | string >= 3 characters Full text search query. |
code | Array of strings List of coupon type codes. CLOUD_COUPON_TYPES dictionary. |
excludeCode | Array of strings List of coupon types codes that should be excluded from the result. CLOUD_COUPON_TYPES dictionary. |
deliveryChannelCode | Array of strings Codes of coupon delivery channels. COUPON_DELIVERY_CHANNELS dictionary. |
deliveryStartDateFrom | string <date> Coupon earliest delivery start date - lower limit. Inclusive. |
deliveryStartDateTo | string <date> Coupon earliest delivery start date - upper limit. Inclusive. |
validityEndDateFrom | string <date> Coupon validity end date - lower limit. Inclusive. |
validityEndDateTo | string <date> Coupon validity end date - upper limit. Inclusive. |
tags | Array of strings Coupon type tags. |
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "name": "string",
- "externalName": "string",
- "externalDescription": "string",
- "interactive": false,
- "status": "s",
- "statusName": "string",
- "distributionMode": "string",
- "distributionModeName": "string",
- "delivery": {
- "channels": [
- {
- "code": "string",
- "name": "string"
}
], - "segments": [
- {
- "code": "string",
- "name": "string",
- "type": "s",
- "assignMode": "I",
- "size": 0
}
], - "broadcast": true
}, - "specialForYou": true,
- "validityPeriod": {
- "from": "2019-08-24",
- "to": "2019-08-24"
}, - "largeImageId": "string",
- "smallImageId": "string",
- "tags": [
- "string"
], - "discount": 0.01,
- "discountPercentage": 0,
- "couponNumber": "string",
- "visualModes": [
- "BC"
]
}
]
}
Get list of member targeted campaigns which are currently active in the current time period.
Sortable by [code, name, id, distributionMode].
b2c_api_gateway
) filter | string >= 3 characters Full text search query. |
code | Array of strings List of coupon type codes. CLOUD_COUPON_TYPES dictionary. |
excludeCode | Array of strings List of coupon types codes that should be excluded from the result. CLOUD_COUPON_TYPES dictionary. |
deliveryChannelCode | Array of strings Codes of coupon delivery channels. COUPON_DELIVERY_CHANNELS dictionary. |
deliveryStartDateFrom | string <date> Coupon earliest delivery start date - lower limit. Inclusive. |
deliveryStartDateTo | string <date> Coupon earliest delivery start date - upper limit. Inclusive. |
validityEndDateFrom | string <date> Coupon validity end date - lower limit. Inclusive. |
validityEndDateTo | string <date> Coupon validity end date - upper limit. Inclusive. |
broadcast | boolean Filter distributionMode = mass campaign coupon types which are broadcasted or not in any webapp channels. |
tags | Array of strings Coupon type tags. |
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "name": "string",
- "externalName": "string",
- "externalDescription": "string",
- "interactive": false,
- "interactionData": {
- "interactionType": "string",
- "interactiveText": "string",
- "coverColor": "string",
- "coverText": "string"
}, - "status": "s",
- "statusName": "string",
- "distributionMode": "string",
- "distributionModeName": "string",
- "delivery": {
- "channels": [
- {
- "code": "string",
- "name": "string"
}
], - "broadcast": true
}, - "specialForYou": true,
- "validityPeriod": {
- "from": "2019-08-24",
- "to": "2019-08-24"
}, - "largeImageId": "string",
- "smallImageId": "string",
- "tags": [
- "string"
], - "discount": 0.01,
- "discountPercentage": 0,
- "couponNumber": "string",
- "visualModes": [
- "BC"
]
}
]
}
Get coupon type generic details
couponTypeCode required | string Target coupon type code |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "code": "string",
- "name": "string",
- "externalName": "string",
- "externalDescription": "string",
- "status": "s",
- "statusName": "string",
- "distributionMode": "string",
- "distributionModeName": "string",
- "description": "string",
- "usageMode": "string",
- "usageModeName": "string",
- "distributionModeData": {
- "couponNumber": "string",
- "validityPeriod": {
- "from": "2019-08-24",
- "to": "2019-08-24"
}, - "useQuantity": 0,
- "visualModes": [
- "BC"
]
}, - "interactive": true,
- "interactionData": {
- "interactionType": "string",
- "interactiveText": "string",
- "coverColor": "string",
- "coverText": "string"
}, - "largeImageId": "string",
- "smallImageId": "string",
- "tagsI18N": {
- "value": [
- "string"
], - "i18n": [
- {
- "langCode": "string",
- "value": [
- "string"
]
}
]
}, - "lastModify": "2019-08-24T14:15:22Z"
}
History of rewards orders with all necessary details such as items, order number (redemptions) to be displayed on customer profile. There is an option to cancel the particular order if such an option is configured in the System.
Get list of reward orders.
Sortable by [id, status, deliveryMethod, date].
b2c_api_gateway
) status | string Order status. ORDER_STATUSES dictionary. |
deliveryMethod | string Order delivery method code. REWARD_DELIVERY_METHODS dictionary. |
dateFrom | string <date> Order placement date. Lower boundary. Inclusive. |
dateTo | string <date> Order placement date. Upper boundary. Inclusive. |
sort | string Default: "date:DESC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
[- {
- "orderId": 0,
- "transactionId": 0,
- "accountId": 0,
- "customerId": 0,
- "identifierNo": "string",
- "firstName": "string",
- "lastName": "string",
- "date": "2019-08-24",
- "partnerCode": "string",
- "partnerName": "string",
- "deliveryMethod": "string",
- "deliveryMethodName": "string",
- "status": "st",
- "statusName": "string",
- "ownerEmail": "string"
}
]
Get order detailed info
b2c_api_gateway
) orderId required | integer Unique order identifier |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "orderId": 0,
- "transactionId": 0,
- "accountId": 0,
- "customerId": 0,
- "identifierNo": "string",
- "firstName": "string",
- "lastName": "string",
- "date": "2019-08-24",
- "partnerCode": "string",
- "partnerName": "string",
- "deliveryMethod": "string",
- "deliveryMethodName": "string",
- "status": "st",
- "statusName": "string",
- "ownerEmail": "string",
- "deliveryAddress": {
- "name": "string",
- "phone": "string",
- "phoneCountryPrefix": "string",
- "street": "string",
- "houseNumber": "string",
- "apartmentNumber": "string",
- "postalCode": "string",
- "city": "string",
- "region": "string",
- "country": "str",
- "email": "string",
- "mobile": "string",
- "additionalInfo": "string"
}, - "deliveryLocation": {
- "partner": "string",
- "partnerName": "string",
- "location": "string",
- "locationName": "string"
}, - "comment": "string",
- "rewards": [
- {
- "reward": "string",
- "rewardName": "string",
- "pricePlanCode": "string",
- "quantity": 1,
- "totalPointTypes": [
- {
- "pointTypeCode": "string",
- "pointTypeName": "string",
- "amount": 0
}
], - "supplier": "string",
- "supplierName": "string",
- "online": true,
- "type": null
}
], - "totalQuantity": 0,
- "externalId": "string",
- "ownerMobile": "string",
- "ownerMobilePhonePrefix": "string",
- "totalPointTypes": [
- {
- "pointTypeCode": "string",
- "pointTypeName": "string",
- "amount": 0
}
]
}
Get order detailed info
b2c_api_gateway
) transactionId required | integer Unique transaction identifier |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "orderId": 0,
- "transactionId": 0,
- "accountId": 0,
- "customerId": 0,
- "identifierNo": "string",
- "firstName": "string",
- "lastName": "string",
- "date": "2019-08-24",
- "partnerCode": "string",
- "partnerName": "string",
- "deliveryMethod": "string",
- "deliveryMethodName": "string",
- "status": "st",
- "statusName": "string",
- "ownerEmail": "string",
- "deliveryAddress": {
- "name": "string",
- "phone": "string",
- "phoneCountryPrefix": "string",
- "street": "string",
- "houseNumber": "string",
- "apartmentNumber": "string",
- "postalCode": "string",
- "city": "string",
- "region": "string",
- "country": "str",
- "email": "string",
- "mobile": "string",
- "additionalInfo": "string"
}, - "deliveryLocation": {
- "partner": "string",
- "partnerName": "string",
- "location": "string",
- "locationName": "string"
}, - "comment": "string",
- "rewards": [
- {
- "reward": "string",
- "rewardName": "string",
- "pricePlanCode": "string",
- "quantity": 1,
- "totalPointTypes": [
- {
- "pointTypeCode": "string",
- "pointTypeName": "string",
- "amount": 0
}
], - "supplier": "string",
- "supplierName": "string",
- "online": true,
- "type": null
}
], - "totalQuantity": 0,
- "externalId": "string",
- "ownerMobile": "string",
- "ownerMobilePhonePrefix": "string",
- "totalPointTypes": [
- {
- "pointTypeCode": "string",
- "pointTypeName": "string",
- "amount": 0
}
]
}
b2c_api_gateway
) orderId required | integer Unique order identifier |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
b2c_api_gateway
) transactionId required | integer Unique transaction identifier |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Get Terms and Conditions Policy.
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "gdpr": {
- "personalDataProcessing": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}
}, - "personalDataProfiling": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}
}
}, - "loyalty": {
- "termsAndConditions": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}
}, - "communications": {
- "description": "string",
- "acceptanceLevel": "string",
- "communicationChannels": [
- {
- "code": "string",
- "name": "string"
}
]
}, - "thirdPartyCommunications": {
- "description": "string",
- "acceptanceLevel": "string",
- "communicationChannels": [
- {
- "code": "string",
- "name": "string"
}
]
}, - "marketingCommunications": {
- "description": "string",
- "acceptanceLevel": "string",
- "communicationChannels": [
- {
- "code": "string",
- "name": "string"
}
]
}
}
}
Initiate member password reset process.
Notification allowing to reset forgotten password will be sent to the customer.
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
login required | string Customer login. |
oneTimePermission | boolean Forces password reset communication even if member does not have communication permission. |
preferredChannel | string Preferred communication channel which will be used to communication. |
{- "login": "string",
- "oneTimePermission": true,
- "preferredChannel": "string"
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
Change password using token received after /password-reset call
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
token required | string Reset password token received by the customer |
newPassword required | string <password> New password |
confirmPassword required | string <password> New password repeated |
{- "token": "string",
- "newPassword": "pa$$word",
- "confirmPassword": "pa$$word"
}
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}
This set of requests allows the entity to get configured dictionary items and objects specific to the given loyalty program and use them in multiple ways. If you, for example, want to show partner and location with details on your page, this is the way to do it. What's more here in the form of lists and details - point, language, transaction types. Handy section!
Get list of partners.
Sortable by [code, name, status].
filter | string non-empty Full text search query. |
code | Array of strings Partners codes list. PARTNERS dictionary. |
excludeCode | Array of strings List of partner codes that should be excluded from the result |
name | string Partner name |
status | string 1 characters Partner status code. GENERAL_STATUSES dictionary. |
promotionCode | Array of strings Promotion code associated with partners. TRANSACTION_RULES dictionary. |
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "name": "string",
- "description": "string",
- "default": true,
- "logoFileId": "string",
- "status": "s",
- "statusName": "string"
}
]
}
Get partner data
partnerCode required | string Target partner unique code |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "code": "string",
- "name": "string",
- "description": "string",
- "default": true,
- "logoFileId": "string",
- "status": "s",
- "statusName": "string"
}
Get list of configured locations.
Sortable by [name, code, status].
At least one of following request fields' sets is required:
filter | string non-empty Full text search query. |
code | Array of strings List of location codes |
excludeCode | Array of strings List of location codes that should be excluded from the result |
partner | Array of strings List of partner's codes. PARTNERS dictionary. |
name | string Location name |
status | Array of strings Location statuses codes list. LOCATION_STATUSES dictionary. |
type | Array of strings Location types codes list. LOCATION_TYPES dictionary. |
address.filter | string Full text search query for location address. |
address.country | Array of strings Location country codes list. COUNTRIES dictionary. |
address.region | Array of strings Location region codes list. |
address.email | string Location e-mail list |
address.phone | string Stationary or mobile phone numbers of the location. |
rewardPOSDelivery | boolean Reward POS delivery flag. |
clickAndCollect | boolean Click and collect integration flag. |
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
with | Array of strings Items Enum: "address" "geoPos" Appends to every response item additional content that is not appended by default to boost lists performance. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "id": 0,
- "code": "string",
- "name": "string",
- "description": "string",
- "partner": "string",
- "status": "s",
- "type": "stri",
- "partnerName": "string",
- "statusName": "string",
- "typeName": "string",
- "address": {
- "street": "string",
- "houseNumber": "string",
- "apartmentNumber": "string",
- "postalCode": "string",
- "city": "string",
- "region": "string",
- "country": "str",
- "email": "string",
- "mobile": "string",
- "additionalInfo": "string"
}, - "geoPos": {
- "latitude": 0,
- "longitude": 0
}, - "rewardPOSDelivery": true,
- "clickAndCollect": true
}
]
}
Get location details
locationId required | integer Location system-wide unique identifier |
with | Array of strings Items Value: "prices" Appends to every response item additional content that is not appended by default to boost lists performance. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "id": 0,
- "code": "string",
- "name": "string",
- "description": "string",
- "partner": "string",
- "status": "s",
- "type": "stri",
- "partnerName": "string",
- "statusName": "string",
- "typeName": "string",
- "address": {
- "street": "string",
- "houseNumber": "string",
- "apartmentNumber": "string",
- "postalCode": "string",
- "city": "string",
- "region": "string",
- "country": "str",
- "email": "string",
- "mobile": "string",
- "additionalInfo": "string"
}, - "geoPos": {
- "latitude": 0,
- "longitude": 0
}, - "rewardPOSDelivery": true,
- "clickAndCollect": true,
- "lastModify": "2019-08-24T14:15:22Z",
- "productPrices": [
- {
- "product": "string",
- "productName": "string",
- "productVariant": "string",
- "productVariantName": "string",
- "price": 0,
- "priceUnit": "string",
- "priceUnitName": "string",
- "currencyCode": "string",
- "lastUpdateDate": null
}
]
}
Get system parameter
parameterCode required | string System parameter code |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "code": "string",
- "name": "string",
- "category": "st",
- "categoryName": "string",
- "type": "s",
- "typeName": "string",
- "value": "string",
- "pattern": "string",
- "description": "string"
}
Get list of configured point types.
Sortable by [code, name, transferable, adjustable].
filter | string >= 3 characters Full text search query. |
code | Array of strings Point types codes list. |
name | string Point type name |
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "name": "string",
- "description": "string",
- "transferable": true,
- "adjustable": true,
- "mainBalance": true
}
]
}
Get point type
pointTypeCode required | string Point type code. POINT_TYPES dictionary. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "code": "string",
- "name": "string",
- "description": "string",
- "transferable": true,
- "adjustable": true,
- "expiryPeriod": "P1Y6M",
- "mainBalance": true
}
Get list of transaction types configured in the system.
any
) filter | string Full text search query. |
code | Array of strings Transaction types filter. TRANSACTION_TYPES dictionary. |
status | Array of strings Transaction types status filter. GENERAL_STATUSES dictionary. |
promotable | boolean Promotable filter |
genericEvent | boolean Generic event filter |
b2cDefaultMemberVisibility | boolean B2C default member visibility filter |
sort | string Default: "id:ASC" Defines the sort order of the resulting list of objects.
|
firstResult | integer <int32> Default: 0 First item on the page. Indexed from 0. |
maxResults | integer <int32> Max count of items on the page. Default value is from the PROCESSING_DEFAULT_MAX_RESULTS system parameter. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "st",
- "name": "string",
- "description": "string",
- "status": "s",
- "statusName": "string",
- "promotable": true,
- "genericEvent": true,
- "smallImageId": "string",
- "largeImageId": "string",
- "b2cMemberVisibility": true,
- "b2cDefaultMemberVisibility": true
}
]
}
Get password restrictions.
This reflects setup of the member password conditions that must be met by member password.
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "name": "string",
- "restrictions": {
- "minLength": 0,
- "minBigLetters": 0,
- "minSmallLetters": 0,
- "minDigits": 0,
- "minSpecialChars": 0
}
}
Get member profile restrictions.
This reflects setup of the member profile conditions that must be met by member profile data.
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
Authorization | string Example: Bearer QWxhZGRpbjpPcGVuU2VzYW1l OAuth authorization header. Formatted according to OAUTH principles with Bearer Authentication Scheme. See Authorization documentation. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "defaultMemberLanguage": "string",
- "minAge": 0,
- "blacklists": {
- "emailDomain": [
- "string"
], - "phoneCountryPrefix": [
- "string"
]
}, - "customLogin": {
- "aliasPattern": "string",
- "aliasMinLength": 3,
- "aliasMaxLength": 3
}, - "loginSettings": {
- "loginWithEmail": true,
- "loginWithPhone": true,
- "loginWithAlias": true,
- "loginWithIdNo": true
}
}
Get list of attributes used in specific form and password restrictions
formType required | string Enum: "EN" "MM" Form type.
|
type | string Enum: "ALL" "CUSTOM" "PREDEFINED" Attribute type. Default value is ALL |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "memberAttributes": [
- {
- "name": "string",
- "code": "string",
- "predefined": true,
- "valueType": "S",
- "valueTypeName": "string",
- "acceptanceLevel": "string",
- "acceptanceLevelName": "string",
- "label": "string",
- "tags": [
- "string"
], - "editable": true,
- "order": 1,
- "description": "string",
- "formField": "string",
- "constraints": {
- "attributeValidators": [
- {
- "regexp": "string",
- "message": "string",
- "key": "string"
}
], - "valuesList": [
- "string"
], - "valuesBlackList": [
- "string"
], - "defaultValue": "string",
- "visible": true,
- "dictDomain": "string",
- "minValue": "string"
}
}
], - "passwordRestrictions": [
- {
- "regexp": "string",
- "message": "string",
- "key": "string"
}
], - "consents": {
- "gdpr": {
- "personalDataProcessing": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}
}, - "personalDataProfiling": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}
}
}, - "loyalty": {
- "termsAndConditions": {
- "description": "string",
- "acceptanceLevel": "string",
- "currentVersion": 0,
- "acceptanceDeadline": "2019-08-24T14:15:22Z",
- "label": "string",
- "currentVersionContent": {
- "contentFormat": "PDF",
- "content": "string",
- "contentFile": "string"
}
}, - "communications": {
- "description": "string",
- "acceptanceLevel": "string",
- "communicationChannels": [
- {
- "code": "string",
- "name": "string"
}
]
}, - "thirdPartyCommunications": {
- "description": "string",
- "acceptanceLevel": "string",
- "communicationChannels": [
- {
- "code": "string",
- "name": "string"
}
]
}, - "marketingCommunications": {
- "description": "string",
- "acceptanceLevel": "string",
- "communicationChannels": [
- {
- "code": "string",
- "name": "string"
}
]
}
}
}
}
Returns languages from the LANGUAGES dictionary of the MEMBER_LANGUAGES parameter.
filter | string Full text search query. |
firstLetters | string Full text search query working in 'startsWith' mode. |
itemCode | Array of strings Item code. For fetching particular languages. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "value": "string",
- "order": 0,
- "description": "string",
- "imageId": "string"
}
]
}
You can either generate a list of all dictionaries configured in the System, a list of any available/active ones or generate only a list of codes assigned to the specific dictionary.
List of available dictionaries
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- "string"
]
}
Get list of dictionaries with dictionary items
dic required | string Dictionaries query in special format (examples below). |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "items": [
- {
- "code": "string",
- "value": "string",
- "order": 0,
- "description": "string",
- "imageId": "string"
}
]
}
]
}
Returns dictionary items for the particular dictionary domain
dictionaryCode required | string Dictionary code, from response of GET /available-dictionaries |
filter | string Full text search query. |
firstLetters | string Full text search query working in 'startsWith' mode. |
itemCode | Array of strings Item code. For fetching particular dictionary items. |
Content-Type | string Request content type as MIME type. |
Accept | string Specifies which content types, expressed as MIME types, are accepted by client. |
Accept-Language | string Example: pl, en-us Specifies the client proposed language of the response. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "results": [
- {
- "code": "string",
- "value": "string",
- "order": 0,
- "description": "string",
- "imageId": "string"
}
]
}
This method allows you to download from the System any binary file like reward's image, coupon image representation, etc.
Get any binary file stored in the system via system-wide unique identifier.
fileId required | string <= 99 characters System-wide unique file identifier in form of GUID. |
Accept | string Default: application/octet-stream Expected response content type as MIME type. |
X-Correlation-ID | string <= 100 characters Unique request token for correlation purposes. |
Time-Zone | string <= 100 characters Time zone to which all datetime fields will be adjusted (GET) or interpreted (POST/PUT/PATCH).
|
X-Tenant-ID | string <= 100 characters Tenant identifier. |
{- "error": "VALIDATION_ERROR",
- "message": "Validation error: Constraint violations",
- "method": "PUT",
- "path": "/profile/customers/12345",
- "correlationId": "1505219765216595",
- "status": 400,
- "timestamp": "2017-09-12T12:36:05.217Z",
- "violations": [
- {
- "error": "CONSTRAINT_NOT_EMPTY",
- "message": "Empty value not allowed",
- "path": "arg1.address.street"
}
]
}