POST api/Landing/SubscribeSendinblue

Request Information

URI Parameters

None.

Body Parameters

CreateContact
NameDescriptionTypeAdditional information
email

string

None.

attributes

Attributes

None.

listIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "attributes": {
    "FIRSTNAME": "sample string 1",
    "LASTNAME": "sample string 2",
    "ORIGEN": "sample string 3"
  },
  "listIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<CreateContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mastersoft.Ecommerce.Entities.Domain">
  <attributes>
    <FIRSTNAME>sample string 1</FIRSTNAME>
    <LASTNAME>sample string 2</LASTNAME>
    <ORIGEN>sample string 3</ORIGEN>
  </attributes>
  <email>sample string 1</email>
  <listIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </listIds>
</CreateContact>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateContact'.

Response Information

Resource Description

APIErrors
NameDescriptionTypeAdditional information
HasErrors

boolean

None.

ErrorList

Collection of APIErrorMessage

None.

Response Formats

application/json, text/json

Sample:
{
  "HasErrors": true,
  "ErrorList": [
    {
      "Message": "sample string 1",
      "Source": "sample string 2"
    },
    {
      "Message": "sample string 1",
      "Source": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<APIErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mastersoft.Ecommerce.Entities.Domain">
  <ErrorList>
    <APIErrorMessage>
      <Message>sample string 1</Message>
      <Source>sample string 2</Source>
    </APIErrorMessage>
    <APIErrorMessage>
      <Message>sample string 1</Message>
      <Source>sample string 2</Source>
    </APIErrorMessage>
  </ErrorList>
  <HasErrors>true</HasErrors>
</APIErrors>