To get full value of Brandbassador we recommend a full integration. The integration below allows your ambassadors to create personalised discount codes and earn commission on this sales as well as automatically withdraw gift card rewards. You also get access to the MyShop feature.

STEP 1: CREATE API CLIENT

In order to enable your ambassadors to create discount codes, and track the orders they generate we need a API Client key and password.

1.1) So go to your Demandware account to create a API Client: account.demandware.com/dw/account/Home

1.2) Settings should look like this:

STEP 2: GIVE ACCESS OF BUSINESS MANAGER ACCOUNT


Access to Business Manager Account with "Development Setup" permissions is required to upload import files via WebDAV. This is needed to create coupon codes (campaigns).

For our reference we will upload files under path "/src/brandbassador" and these files help us to create Campaigns & Promotions.

STEP 3: SEND CREDENTIALS AND INFO

In the Live Chat in admin.brandbassador.com please send us the following info:

3.1) API Client credentials from step 1 (client ID and client Password)

3.2) Credentials to a Business Manager Account Administrator with "Development Setup" permissions (username and password)

3.3) List of Salesforce sites (Site ID's and default currency for each ID)

Example of message:

API Client ID: 12345
Password: abc

BA Manager login:
Username: tech@brandbassador.com
Password: abc

Salesforce sites:
EMEA (EUR)
MERICA (USD)

STEP 4: SETUP OPEN COMMERCE API SETTINGS

Now we need to add add some permissions to your api to handle resources such as products, orders, coupons


4.1) Login to your "Account Manager" account

4.2) Goto Administration > Open Commerce API Settings


4.3) Select type "Shop" from dropdown and Select Context "Global (organization-wide)"

4.4) ( Download JSON CLICK HERE ) and add your client id in json and add it to the clients array ( Note: not replace any json object in array ) and click on Save

Your JSON should be under clients array and not effect other JSON objects.

{
"clients":[{

....

// Add your JSON here

}]
}



4.5) Now Select type "Data" from drop down and Select Context "Global (organization-wide)" from dropdown then add below json object under clients array


4.6) ( Download JSON CLICK HERE ) and add your client id in json and add it to the clients array ( Note: not replace any json object in array ) and click on Save

Your JSON should be under clients array and not effect other JSON objects.

{
"clients":[{

....

// Add your JSON here

}]
}


STEP 5: IMPORT XML FILES AND SETUP JOB

Now we need to add a job in order to keep your data sync with our platform and up to date

5.1) Login to Account Manager

5.2) Goto Administration > Import & Export


5.3) Upload XML file with code like below
(Note: Replace SITE_ID with your site id in XML file)

For Single site your XML should look like below

( DOWNLOAD XML FILE CLICK HERE )

For Multiple sites you have to duplicate "flow" element your XML and add your SITE_ID in each flow element

( DOWNLOAD XML FILE CLICK HERE )

5.4) After importing these files you can view the jobs under Administration > Jobs


If you face any difficulties feel free to contact us.

Did this answer your question?