Overview

Use the Loyalty Member core service to create and manage loyalty programs for your storefront, and to manage member information and activities.

Using this service, you can manage:

  • Loyalty programs and program tiers, such as Bronze, Silver, and Gold
  • Loyalty program member information, such as member status, tier, and points
  • Member activity information, such as registration, orders, redemptions, ratings, reviews, and expiration date


API Reference

/memberRegistrations

This resourceType defines the POST, PUT methods and their responses for a collection resource.

/memberRegistrations

post

Registers a member for the active Loyalty program, creating a member and the corresponding activity. Points are awarded according to the rule configured and Elastic Search index for member and member activity is created. Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for Loyalty core services

/activities

This resourceType defines the GET, POST, DELETE methods and their responses for a collection resource.

/activities

get

Gets all member activities Accepted scopes:

  • 'sap.loycore_view' - Enable View access for loyalty core services
post

Creates a new member activity based on the activity type like ORDER , REDEMPTION. Points are awarded accordingly (all based on rule configuration in Rule Builder ).

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for loyalty core services

/activitylist

This resourceType defines the POST, PUT methods and their responses for a collection resource.

/activitylist

post

Used for processing multiple member activities for the same member . The activities are processed one by one sequentially . It is not intended for sending actiities for multiple members at the same time .

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for loyalty core services

/rewardActivities

This resourceType defines the POST, PUT methods and their responses for a collection resource.

/rewardActivities

post

Creates a new member activity for a member for activity type AWARD/CANCELLATION . Use /activities for creating activities of other type .

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for loyalty core services

/members

This resourceType defines the GET, POST, DELETE methods and their responses for a collection resource.

/members

get

Gets individual/all Loyalty program member(s) based on the query parameter.

Accepted scopes: |

  • 'sap.loycore_view' - Enable view for Loyalty core services
post

Do not Use Creates a new Loyalty program member use /memberRegistrations endpoint to create a new member.

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for Loyalty core services

/members/aggr

get

Gets average, sum and count aggregation for all/selected Loyalty program members

Accepted scopes: |

  • 'sap.loycore_view' - Enable view for Loyalty core services

/members/{memberId}

This resource type defines the GET, PUT, DELETE methods and their responses for a single element resource.

get

Gets information about a specific member based on the member id provided Accepted scopes: |

  • 'sap.loycore_view' - Enable view for Loyalty core services
put

Updates information about a specific member based on the member id provided Accepted scopes: |

  • 'sap.loycore_manage' - Enable create and update access for Loyalty core services
delete

Deletes information about a specific member based on the member id provided. Permanent deletion will require a header with name as 'hard-delete' and value as 'true' while requesting.

Accepted scopes:

  • 'sap.loycore_delete' - Enable delete access for Loyalty core services

/members/remove/{customerId}

delete

Deletes information about a specific member based on the member id provided. Permanent deletion will require a header with name as 'hard-delete' and value as 'true' while requesting.

Accepted scopes:

  • 'sap.loycore_delete' - Enable delete access for Loyalty core services

/members/index

post

Creates member indices required for Analytics and Elastic Search Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for loyalty core services

/discount

/discount

post

Creates a discount on the cart based on the points redeemed

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for loyalty core services

/discount/remove/{cartId}/{discountId}

delete

Creates a discount on the cart based on the points redeemed Accepted scopes:

  • 'sap.loycore_delete' - Enable delete access for loyalty core services

/redemptions/{customerId}/{points}/validate

/redemptions/{customerId}/{points}/validate

post

DO NOT USE These are callbacks used by the cart service, checks whether the coupon can be successfully redeemed, performs all checks which are performed during actual redemption, but does not result in a redeemed coupon. Only the status of the validation is reported.

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for loyalty core services

/redemptions/{customerId}/{points}/redeem

/redemptions/{customerId}/{points}/redeem

post

DO NOT USE . These are callbacks that are called by cart service, checks whether the coupon can be successfully redeemed.The redemption is processed and a member activity of type redemption is created for the customer.

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for loyalty core services

/memberActivities

This resourceType defines the GET, POST, DELETE methods and their responses for a collection resource.

/memberActivities

get

Gets member activities of all/selected members based on activity type

Accepted scopes:

  • 'sap.loycore_view' - Enable view access for Loyalty core services
post

DO NOT USE Creates a new member activity for a member . Use /activities for creating a new member activity. This End Point is used internally for CRUD Operation .

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for Loyalty core services

/memberActivities/aggr

get

Gets average, sum and count aggregation for all/selected member activities Accepted scopes:

  • 'sap.loycore_view' - Enable view access for Loyalty core services

/memberActivities/{memberActivityId}

This resource type defines the GET, PUT, DELETE methods and their responses for a single element resource.

get

Gets a specific member activity based on the member activity id provided Accepted scopes:

  • 'sap.loycore_view' - Enable view access for Loyalty core services
put

Updates a specific member activity based on the member activity id provided Accepted scopes:

  • 'sap.loycore_manage' - Enable manage access for Loyalty core services
delete

Deletes a specific member activity based on the member activity id provided

Accepted scopes:

  • 'sap.loycore_delete' - Enable delete access for Loyalty core services

/memberActivities/index

post

Creates all Member Activity indices required for Analytics and Elastic Search Accepted scopes:

  • 'sap.loycore_manage' - Enable manage access for Loyalty core services

/loyaltyPrograms

This resourceType defines the GET, POST, DELETE methods and their responses for a collection resource.

/loyaltyPrograms

get

Gets all loyalty programs Accepted scopes:

  • 'sap.loycore_view' - Enable view access for Loyalty core services
post

DO NOT USECreates a Loyalty program for the End User. Use /programConfigurations endpoint of the Loyalty configuration service for creating and managing a Loyalty program . Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for Loyalty core services

/loyaltyPrograms/{programId}

This resource type defines the GET, PUT, DELETE methods and their responses for a single element resource.

get

Gets a specific Loyalty program based on programId provided. Accepted scopes:

  • 'sap.loycore_view' - Enable view access for Loyalty core services
put

DO NOT USE Updates a specific loyalty program based on programId provided . Use /programConfigurations endpoint of the loyalty configuration service for managing a Loyalty program. Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for Loyalty core services
delete

DO NOT USE Deletes a specific Loyalty program based on programId provided . Use /programConfigurations endpoint of the Loyalty Configuration service for managing a Loyalty program . Accepted scopes:

  • 'sap.loycore_delete' - Enable delete access for Loyalty core services

/tiers

This resourceType defines the GET, POST, DELETE methods and their responses for a collection resource.

/tiers

get

Gets all tiers of a Loyalty program. Accepted scopes:

  • 'sap.loycore_view' - Enable view access for Loyalty core services
post

DO NOT USE Creates a new tier use /programConfigurations endpoint of the Loyalty configuration service for creating the tier .

Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for Loyalty core services

/tiers/{tierId}

This resource type defines the GET, PUT, DELETE methods and their responses for a single element resource.

get

Gets a specific tier with the provided tierId. Accepted scopes:

  • 'sap.loycore_view' - Enable view access for Loyalty core services
put

DO NOT USE Updates a specific tier with the provided tierId. Please Use /programConfiguration endpoint of the Loyalty Configuration service for managing the Loyalty configuration . Accepted scopes:

  • 'sap.loycore_manage' - Enable create and update access for Loyalty core services
delete

DO NOT USE Deletes a specific tier with the provided tierId. Please Use /programConfigurations endpoint of Loyalty Configuration service for managing the tier details . Accepted scopes:

  • 'sap.loycore_delete' - Enable delete access for Loyalty core services

/tiers/{tierId}/deletable

This resource type defines the GET, PUT, DELETE methods and their responses for a single element resource.

get

Checks if the tier with provided tierId can be deleted. Accepted scopes:

  • 'sap.loycore_view' - Enable view access for Loyalty core services
put

Updates a single deletable entity.

delete

Deletes a single deletable entity.


Events

For more information about events, see the PubSub service documentation.

The topic owner client is: hybris.loy-member

EVENT TYPEDESCRIPTIONEXAMPLE
memberCreatedTriggered when member is successfully created
{"tenant":"saploytest","memberId":"87ba894378123c65ce11207ecb24dd8f","pubsubEvent":{"actionName":"MEMBER_EVENT","loyaltymemberId":"87ba894378123c65ce11207ecb24dd8f","customerId":"C2843283577","activityType":"REGISTRATION","eventType":"MEMBER_CREATED_EVENT","activityTimeStamp":"2016-03-20T03:17:03.694+0000"}}
memberUpdatedTriggered when member is successfully updated
{"tenant":"loyecpqm1605","memberId":"b92d6b126406450bfdb83e2825edbf6c","pubsubEvent":{"actionName":"MEMBER_EVENT","loyaltymemberId":"b92d6b126406450bfdb83e2825edbf6c","customerId":"65825a8d-739d-4ad7-aa32-a434acdf0aa5","activityType":"MEMBER_UPDATE","eventType":"MEMBER_UPDATED_EVENT","activityTimeStamp":"2016-04-19T07:06:36.996+0000"}}
tierUpdatedTriggered when tier is successfully updated
{"tenant":"saploytest","memberId":"87ba894378123c65ce11207ecb24dd8f","pubsubEvent":{"actionName":"TIER_EVENT","activityType":"TIER_UPDATE","eventType":"TIER_UPDATED_EVENT","activityTimeStamp":"2016-03-20T03:17:03.694+0000"}}
activityCreatedTriggered when activity is successfully created
{"tenant": "saploytest","memberId": "fb0d496017130f7e81adae84e9ad0e8b","memberActivityId": "109ee13a8a27493793c12590224bcd25","pubsubEvent": {"actionName": "ACTIVITY_EVENT","loyaltymemberId": "fb0d496017130f7e81adae84e9ad0e8b","activityType": "REVIEW","activityId": "109ee13a8a27493793c12590224bcd25","eventType": "ACTIVITY_EVENT","activityTimeStamp": "2016-03-28T06:57:31.574+0000"}}
memberSearchIndexCreationFailedTriggered when member search index creation has failed
{"tenant":"saploytest","member":{\"memberId\":\"a7a716faee4ec94419f9ae8a897742b7\",\"memberNumber\":\"619854193\",\"programId\":\"a9dd04e1f51e46d99a1afce83284adf1\",\"customerId\":\"C0986307124\",\"customerEmail\":\"lohitstage01@hybristest.com\",\"dateValidFrom\":\"2016-04-14\",\"dateValidTo\":\"2090-05-05\",\"tierId\":\"47f17fb3c2bd4f5fafd3841ae1ffc4a9\",\"tierHistory\":[{\"tierId\":\"47f17fb3c2bd4f5fafd3841ae1ffc4a9\",\"tierUpdateDate\":1.460619854209E12,\"tierActivity\":\"UPGRADE\"}],\"totalEarnedPoints\":0.0,\"totalBalancePoints\":100.0,\"totalQualifyingPoints\":100.0,\"totalExpiredPoints\":0.0,\"createdBy\":\"C0986307124\",\"memberStatus\":\"ACTIVE\",\"preferredLanguage\":\"en\"}}
memberActivitySearchIndexCreationFailedTriggered when member activity search index is not created successfully
{"tenant":"saploytest","memberActivity":{\"memberActivityId\":\"396bb5b60ff84b909d207e6e17d1d966\",\"memberId\":\"a7a716faee4ec94419f9ae8a897742b7\",\"refId\":\"\",\"activityType\":\"REGISTRATION\",\"transactionAmount\":0.0,\"programId\":\"a9dd04e1f51e46d99a1afce83284adf1\",\"tierId\":\"47f17fb3c2bd4f5fafd3841ae1ffc4a9\",\"year\":\"2016\",\"quarter\":\"Q_2\",\"month\":\"APR\",\"week\":16,\"createdBy\":\"C0986307124\",\"activityStatus\":\"NEW\"}},\"pointsData\":{\"membershipId\":\"a7a716faee4ec94419f9ae8a897742b7\",\"qualifyingPointsEarned\":100.0,\"redeemablePointsEarned\":100.0,\"redeemablePointsUsed\":0.0,\"redeemablePointsBalance\":100.0,\"qualifyingPointsBalance\":100.0,\"qualifyingPointsExpired\":0.0,\"redeemablePointsExpired\":0.0,\"processingTime\":\"491ms\",\"processedAt\":\"2016-04-14\",\"newTierId\":\"47f17fb3c2bd4f5fafd3841ae1ffc4a9\",\"rulesApplied\":[\"ecdcbb024a51458893ff9d519b03d261\",\"bee01f10e8174c9cbb44e8c65bee5df9\"]}}
ruleEngineProcessingFailedTriggered when processing of rules has failed
{\"tenant\":\"loyqm1605test\",\"payload\":{\"ruleType\":\"REGISTRATION\",\"member\":{\"memberId\":\"a7a716faee4ec94419f9ae8a897742b7\",\"memberNumber\":\"619854193\",\"programId\":\"a9dd04e1f51e46d99a1afce83284adf1\",\"customerId\":\"C0986307124\",\"customerEmail\":\"lohitstage01@hybristest.com\",\"dateValidFrom\":\"2016-04-14\",\"dateValidTo\":\"2090-05-05\",\"tierId\":\"47f17fb3c2bd4f5fafd3841ae1ffc4a9\",\"tierHistory\":[{\"tierId\":\"47f17fb3c2bd4f5fafd3841ae1ffc4a9\",\"tierUpdateDate\":1.460619854209E12,\"tierActivity\":\"UPGRADE\"}],\"totalEarnedPoints\":0.0,\"totalBalancePoints\":100.0,\"totalQualifyingPoints\":100.0,\"totalExpiredPoints\":0.0,\"createdBy\":\"C0986307124\",\"memberStatus\":\"ACTIVE\",\"preferredLanguage\":\"en\"},\"memberActivity\":{\"memberActivityId\":\"396bb5b60ff84b909d207e6e17d1d966\",\"memberId\":\"a7a716faee4ec94419f9ae8a897742b7\",\"refId\":\"\",\"activityType\":\"REGISTRATION\",\"transactionAmount\":0.0,\"programId\":\"a9dd04e1f51e46d99a1afce83284adf1\",\"tierId\":\"47f17fb3c2bd4f5fafd3841ae1ffc4a9\",\"year\":\"2016\",\"quarter\":\"Q_2\",\"month\":\"APR\",\"week\":16,\"createdBy\":\"C0986307124\",\"activityStatus\":\"NEW\"}},\"pointsData\":{\"membershipId\":\"a7a716faee4ec94419f9ae8a897742b7\",\"qualifyingPointsEarned\":100.0,\"redeemablePointsEarned\":100.0,\"redeemablePointsUsed\":0.0,\"redeemablePointsBalance\":100.0,\"qualifyingPointsBalance\":100.0,\"qualifyingPointsExpired\":0.0,\"redeemablePointsExpired\":0.0,\"processingTime\":\"491ms\",\"processedAt\":\"2016-04-14\",\"newTierId\":\"47f17fb3c2bd4f5fafd3841ae1ffc4a9\",\"rulesApplied\":[\"ecdcbb024a51458893ff9d519b03d261\",\"bee01f10e8174c9cbb44e8c65bee5df9\"]}}"}}
loyaltyProgramCreatedTriggered when Loyalty program is successfully created
{"createdBy": "jyothi.b.bhat@sap.com","dateValidFrom": 1459497213858,"id": "3fcf90ddcf704d52a8d8da7863d74d11","metadata": {"createdAt": "2016-04-01T07:53:34.032+0000","modifiedAt": "2016-04-06T08:37:39.514+0000","version":"2"},"name":"saploytestprogram,","programId":"3fcf90ddcf704d52a8d8da7863d74d11","programStatus":"ACTIVE","updatedBy":"guido.lammers@sap.com"}
memberDeletedTriggered when member is permanently deleted from loyalty
{"tenant":"saploytest","memberId":"87ba894378123c65ce11207ecb24dd8f","pubsubEvent":{"actionName":"MEMBER_EVENT","emailId":"loyaltydemo@hybristest.com","memberNumber":"9029382933","balanceLoyaltyPoints":"100.0","tierId":"4r0d496017130f7e81adae84e9ad0e8b","loyaltymemberId":"87ba894378123c65ce11207ecb24dd8f","customerId":"C2843283577","activityTimeStamp":"2016-03-20T03:17:03.694+0000"}}


Error Types

For more information about error codes, see the detailed error description for each API operation in the API Reference. You can also check the standard error codes in the API best practices.


Scopes

Use scopes to specify the type of access you need to resources and operations in the Loyalty Member service.

You must provide a scope that allows users to perform operations. Grant the scopes in an access token from the OAuth2 service. For more information about the authorization and authentication used in SAP Hybris services, and also about the scopes in general, see:

- Authorization
- Scopes

The table show the scopes that the Loyalty Member service supports.

ScopeDescription
sap.loycore_viewUse this scope to view existing members or member details.
sap.loycore_manageUse this scope to create or modify existing member details.
sap.loycore_deleteUse this scope to delete an existing member.


Perform All CRUD Operations for Activity

Introduction

You can use the Loyalty Member service to manage member activities. Examples of activities types are order, redeem, award, deduct. This tutorial shows how to manage member activities using the basic create, read, update, and delete operations.

Example

clientId = clientIdPlaceholder;
clientSecret = clientSecretPlaceholder;
tenant = projectIdPlaceholder;
client = appIdPlaceholder;
scopesRequired = 'hybris.tenant='+tenant+' sap.loycore_view sap.loycore_manage sap.loycore_delete';
token = tokenPlaceholder;

Get access token

To perform CRUD operations, you must have proper authorization, which requires a valid access token in the request header. To obtain an access token, create an API Client for the OAuth2 service:

API.createClient('oAuth2Service',
'https://devportal.stage.yaas.io/services/oauth2/v1/api.raml');
AccessToken = oAuth2Service.token.post({
  'client_id' : clientId,
  'client_secret': clientSecret,
  'grant_type' : 'client_credentials',
  'token_type': 'Bearer',
  'scope': scopesRequired
});
access_token = AccessToken.body.access_token;

Create an API client for the Loyalty Member service

API.createClient('loyaltyMemberService',
'https://devportal.stage.yaas.io/services/loyaltymember/v1/api.raml');

Create a reward activity for a member

You can create reward activity types such as award (points) and deduct (points). You must supply the member's customer ID and the number of points to award or deduct.

Prerequisites

Before you create rewards, you must configure the maximum number of points in the Builder. Be aware:

  • If max points are enabled in the Builder and the total points after the reward activity exceeds the configured value of max points, then the member's point total is equal to the configured max points value.
  • If max points are enabled and the configured value of max point is 0 (zero), then the reward activity does not reward any points to the user.
To award points manually, you must have an administrator role for projects that use the Loyalty Member service.

Request

In this example, the sample customer ID is C12345678912345.

Example

customerId = 'C12345678912345';
mashup_obj = loyaltyMemberService.rewardActivities.post({
'customerId': customerId,
'activityType':'AWARD',
'transactionAmount':200,
'points':200
}, {
  headers: {
    'Authorization': 'Bearer ' + access_token,
    'Content-type' : 'application/json'
           }
    }
  )


Perform All CRUD Operations for Member

Introduction

You can use the Loyalty Member service to manage loyalty program members. Examples of operations you can perform include creating members, retrieving and updating member details, and awarding points, to name a few. This tutorial shows how to manage members using the basic create, read, update, and delete operations.

Example

clientId = 'ICqjWvu41eUQQorT8SWAFwsnGWtIw5XC';
clientSecret = 'pMf1q4yjL7X4v28Z';
tenant = 'saploytest';
client = 'saploytest.apinotebooktutorialtest';
scopesRequired = 'hybris.tenant='+tenant+' sap.loycore_view sap.loycore_manage sap.loycore_delete';
token = '523-57f105d5-d934-4a71-a412-f6a9acd2f30f';

Get an access token

To perform CRUD operations, you must have proper authorization, which requires a valid access token in the request header. To obtain an access token, create an API Client for the OAuth2 service:

API.createClient('oAuth2Service',
'https://devportal.stage.yaas.io/services/oauth2/v1/api.raml');
AccessToken = oAuth2Service.token.post({
  'client_id' : clientId,
  'client_secret': clientSecret,
  'grant_type' : 'client_credentials',
  'token_type': 'Bearer',
  'scope': scopesRequired
});
access_token = AccessToken.body.access_token;

Create an API client for the Loyalty Advocacy service

API.createClient('loyaltyMemberService',
'https://devportal.stage.yaas.io/services/loyaltymember/v1/api.raml');

Register a member in the loyalty program

When a member registers with a loyalty program, the service uses the details provided to create a new member in the system. The system also creates a registration activity. If there is a rule configured to award any points upon registration, the system awards the registration points and updates all point totals (qualifying, redeemable, and total balance) for the member. If you configured the system to send any emails or offer templates to newly-registered members, the system sends those communications.

Prerequisites

You must provide or ensure that the system passes:

  • A valid, unique email ID
  • A valid, unique customer ID
  • A valid loyalty program ID
  • A preferred language, that you can select from the languages that your project supports. If you do not pass a preferred language, the system uses the tenant's default preferred language.

Example

The example uses these sample IDs:

  • email ID: testdummy0001@hybristest.com
  • customer ID: C12345678912345
  • loyalty program ID: 3fcf90ddcf704d52a8d8da7863d74d11
  • preferred language: en, for English
customerId = 'C12345678912345';
emailId='testdummy0001@hybristest.com';
loyaltyProgramId='3fcf90ddcf704d52a8d8da7863d74d11';
mashup_obj = loyaltyMemberService.memberRegistrations.post({
'customerId':customerId,
'email':emailId,
'referralCode':'',
'loyaltyProgramId':loyaltyProgramId,
'preferredLanguage':'en'
}, {
  headers: {
    'Authorization': 'Bearer ' + access_token,
    'Content-type' : 'application/json'
           }
    }
  )

Get a member for a specified tenant by loyalty program ID

You can fetch a member using the loyalty program ID for a specified tenant. The system gets member detail fields such as firstName, LastName, email, as well as points information (including total balance, qualifying, and redeemable points), and program tier information.

Prerequisites

You must provide or ensure that the system passes:

  • A valid loyalty program ID
  • A valid member ID

Example

This example uses a sample member ID value of b1e8c7f238f73bd543f583bb6f42b170.

id = 'b1e8c7f238f73bd543f583bb6f42b170';
mashup_obj = loyaltyMemberService.members.MemberId(id).get(null, 
{
  headers: {
    'Authorization': 'Bearer ' + access_token,
    'Content-type' : 'application/json'
           }
    }
  )

Update a member for a specific tenant by a loyalty program ID

You can update a member's information using the loyalty program ID for a specified tenant. Member details that you can update include firstName, LastName, and email.

Prerequisites

You must provide or ensure that the system passes:

  • Loyalty program ID
  • Member ID
  • Customer ID
  • Member number
  • dateValidFrom
  • dateValidTo
  • tierHistory values

Example This example uses a sample member ID value of b1e8c7f238f73bd543f583bb6f42b170.

id = 'b25a64ef7e5c76033969adb0063f31e2';
mashup_obj = loyaltyMemberService.members.MemberId(id).put({
    'memberId': 'b25a64ef7e5c76033969adb0063f31e2',
    'memberNumber': '8993308903',
    'programId': '3fcf90ddcf704d52a8d8da7863d74d11',
    'customerId': 'C5112933860',
    'dateValidFrom': '2016-07-20T05:41:48.903+0000',
    'dateValidTo': '2090-05-05T09:41:03.000+0000',
    'tierId': 'dd17c36127d146dab2036b37e7650ce2',
    'tierHistory': [{
        'tierActivity': 'UPGRADE',
        'tierId': 'dd17c36127d146dab2036b37e7650ce2',
        'tierUpdateDate': 1468993308918
    }, {
        'tierActivity': 'UPGRADE',
        'tierId': 'dd17c36127d146dab2036b37e7650ce2',
        'tierUpdateDate': 1468993310343
    }],
    'createdBy': 'C5112933860',
    'memberStatus': 'ACTIVE',
    'preferredLanguage': 'en_US',
    'customerEmail': 'navneet1075+38438438@gmail.com',
    'customerFirstName': 'Nikhil',
    'customerLastName': 'Gupta'
},  {
  headers: {
    'Authorization': 'Bearer ' + access_token,
    'Content-type' : 'application/json'
  },
  query: {
    'partial' : true
  }
})


  • Send feedback

    If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.

  • Get Help

    Use our private help channel. Receive updates over email and contact our specialists directly.

  • hybris Experts

    If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.