API Reference | cleverbridge

Want to find out about the assortment of APIs that cleverbridge offers? The cleverbridge API Reference is the place to learn about our API resources, request items, and responses. You can also try out our endpoints using the API explorer.

Get Started    

Additional Examples - Add Subscription Item

<AddSubscriptionItemRequest xmlns="http://api.cleverbridge.com/datacontract">
  <AffiliateId>21599</AffiliateId>
  <AlignmentSettings>
    <AlignToCurrentInterval>false</AlignToCurrentInterval>
    <GetCustomerPricePreviewOnly>true</GetCustomerPricePreviewOnly>
  </AlignmentSettings>
  <Couponcode>BD3-1KK-UN3</Couponcode>
  <CustomerPrice>
    <CurrencyId>EUR</CurrencyId>
    <IsGross>true</IsGross>
    <Value>9.99</Value>
  </CustomerPrice>
  <GenerateMail>true</GenerateMail>
  <ProductId>97771</ProductId>
  <ProductName>Internet Security Basic Extended</ProductName>
  <ProductNameEn>Internet Security Basic Extended</ProductNameEn>
  <ProductNameExtension>For your home</ProductNameExtension>
  <Quantity>1</Quantity>
  <RecommendationsetId>14665</RecommendationsetId>
  <SubscriptionId>S18577447</SubscriptionId>
</AddSubscriptionItemRequest>
<?xml version="1.0"?>
<AddSubscriptionItemResponse xmlns="http://api.cleverbridge.com/datacontract">
  <ResultMessage>OK</ResultMessage>
  <AlignmentCustomerGrossPrice>0</AlignmentCustomerGrossPrice>
  <AlignmentCustomerVatPrice>0</AlignmentCustomerVatPrice>
  <AlignmentCustomerNetPrice>0</AlignmentCustomerNetPrice>
  <NextBillingCustomerGrossPrice>9.99</NextBillingCustomerGrossPrice>
  <NextBillingCustomerVatPrice>1.6</NextBillingCustomerVatPrice>
  <NextBillingCustomerNetPrice>8.39</NextBillingCustomerNetPrice>
  <PriceCurrencyId>EUR</PriceCurrencyId>
</AddSubscriptionItemResponse>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://api.cleverbridge.com/datacontract" elementFormDefault="qualified" targetNamespace="http://api.cleverbridge.com/datacontract">
   <xs:element name="AddSubscriptionItemRequest" nillable="true" type="tns:AddSubscriptionItemRequest" />
   <xs:complexType name="AddSubscriptionItemRequest">
      <xs:sequence>
         <xs:element minOccurs="1" maxOccurs="1" name="AffiliateId" type="xs:long" />
         <xs:element minOccurs="0" maxOccurs="1" name="AlignmentSettings" type="tns:SubscriptionAlignmentSettings" />
         <xs:element minOccurs="0" maxOccurs="1" name="Couponcode" type="xs:string" />
         <xs:element minOccurs="0" maxOccurs="1" name="CustomerPrice" type="tns:CustomerPrice" />
         <xs:element minOccurs="1" maxOccurs="1" name="GenerateMail" type="xs:boolean" />
         <xs:element minOccurs="1" maxOccurs="1" name="ProductId" type="xs:long" />
         <xs:element minOccurs="0" maxOccurs="1" name="ProductName" type="xs:string" />
         <xs:element minOccurs="0" maxOccurs="1" name="ProductNameEn" type="xs:string" />
         <xs:element minOccurs="0" maxOccurs="1" name="ProductNameExtension" type="xs:string" />
         <xs:element minOccurs="1" maxOccurs="1" name="Quantity" type="xs:int" />
         <xs:element minOccurs="1" maxOccurs="1" name="RecommendationsetId" type="xs:int" />
         <xs:element minOccurs="0" maxOccurs="1" name="SubscriptionId" type="xs:string" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SubscriptionAlignmentSettings">
      <xs:sequence>
         <xs:element minOccurs="1" maxOccurs="1" name="AlignToCurrentInterval" type="xs:boolean" />
         <xs:element minOccurs="1" maxOccurs="1" name="GetCustomerPricePreviewOnly" type="xs:boolean" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CustomerPrice">
      <xs:sequence>
         <xs:element minOccurs="0" maxOccurs="1" name="CurrencyId" type="xs:string" />
         <xs:element minOccurs="1" maxOccurs="1" name="IsGross" type="xs:boolean" />
         <xs:element minOccurs="1" maxOccurs="1" name="Value" type="xs:decimal" />
      </xs:sequence>
   </xs:complexType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://api.cleverbridge.com/datacontract" elementFormDefault="qualified" targetNamespace="http://api.cleverbridge.com/datacontract">
   <xs:element name="AddSubscriptionItemResponse" nillable="true" type="tns:AddSubscriptionItemResponse" />
   <xs:complexType name="AddSubscriptionItemResponse">
      <xs:complexContent mixed="false">
         <xs:extension base="tns:AlignmentSubscriptionResponseBase" />
      </xs:complexContent>
   </xs:complexType>
   <xs:complexType name="AlignmentSubscriptionResponseBase">
      <xs:complexContent mixed="false">
         <xs:extension base="tns:SubscriptionResponseBase">
            <xs:sequence>
               <xs:element minOccurs="1" maxOccurs="1" name="AlignmentCustomerGrossPrice" type="xs:decimal" />
               <xs:element minOccurs="1" maxOccurs="1" name="AlignmentCustomerVatPrice" type="xs:decimal" />
               <xs:element minOccurs="1" maxOccurs="1" name="AlignmentCustomerNetPrice" type="xs:decimal" />
               <xs:element minOccurs="1" maxOccurs="1" name="NextBillingCustomerGrossPrice" type="xs:decimal" />
               <xs:element minOccurs="1" maxOccurs="1" name="NextBillingCustomerVatPrice" type="xs:decimal" />
               <xs:element minOccurs="1" maxOccurs="1" name="NextBillingCustomerNetPrice" type="xs:decimal" />
               <xs:element minOccurs="0" maxOccurs="1" name="PriceCurrencyId" type="xs:string" />
            </xs:sequence>
         </xs:extension>
      </xs:complexContent>
   </xs:complexType>
   <xs:complexType name="SubscriptionResponseBase">
      <xs:complexContent mixed="false">
         <xs:extension base="tns:BaseResponseMessage" />
      </xs:complexContent>
   </xs:complexType>
   <xs:complexType name="BaseResponseMessage">
      <xs:sequence>
         <xs:element minOccurs="0" maxOccurs="1" name="ResultMessage" type="xs:string" />
      </xs:sequence>
   </xs:complexType>
</xs:schema>