Babyshop Group API (1.5)

Download OpenAPI specification:Download

Authentication

ApiKeyAuth

Security Scheme Type API Key
Header parameter name: X-API-KEY

emarsys

Create a new contact

Will create a new contact. Note: If a contact exists, it will be updated but the response will look the same as if it was created

Authorizations:
path Parameters
storeId
required
string
Enum: "alexandalexa" "babyshop" "lekmer" "melijoe" "oiidesign"
Request Body schema: application/json
emailAddress
string
phoneNumber
string

Phone number must start with a + and then only contain numbers, example "+46701234567"

object

Responses

Request samples

Content type
application/json
{
  • "emailAddress": "string",
  • "phoneNumber": "string",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "contactCreated": {
    }
}

Create multiple contacts

Will create multiple contacts. Note: If a contact exists, it will be updated but the response will look the same as if it was created

Authorizations:
path Parameters
storeId
required
string
Enum: "alexandalexa" "babyshop" "lekmer" "melijoe" "oiidesign"
Request Body schema: application/json
batch
string
Array of objects

Responses

Request samples

Content type
application/json
{
  • "batch": "string",
  • "contacts": [
    ]
}

Response samples

Content type
application/json
{
  • "inputContacts": 0,
  • "successfullyCreatedContacts": 0
}

Send an email through the BSG mail service

Authorizations:
path Parameters
storeId
required
string
Enum: "alexandalexa" "babyshop" "lekmer" "melijoe" "oiidesign"
Request Body schema: application/json
email
required
string
eventId
required
string
data
object

Used to populate data in mail template.

object

Responses

Request samples

Content type
application/json
{
  • "email": "string",
  • "eventId": "string",
  • "data": { },
  • "attachment": {
    }
}

Get campaign data for a specific store and campaign.

Authorizations:
path Parameters
storeId
required
string
Enum: "alexandalexa" "babyshop" "lekmer" "melijoe" "oiidesign"

Name of the store.

campaignId
required
string

Name of the campaign.

Responses

Response samples

Content type
application/json
{
  • "imageUrl": "string",
  • "headline": "string",
  • "textBody": "string",
  • "CTAText": "string",
  • "termsText": "string",
  • "linkUrl": "string"
}