SaveBundleType


 

Overview

Quick Links

Adds or updates a Bundle Type in the system based on the BundleType key. 


Resource Information



Request FormatXML
Response FormatXML

Request Header

NameTypeDescription
StringStringAuthentication Token

Request Body

NameTypeDescription
bundleType
BundleType
The BundleType to add or update



Response

NameTypeDescription
Resultboolean
Whether or not the save was successful.
ResultCodeStringString indicating the result. Either "Success" or "Error".
ResultMessageStringEmpty when call successful, error message otherwise.

In the case of an internal unhandled fault, a Fault object is returned instead. Providing information on what occurred exactly.

Examples

Note that these examples use V1.3.2 of the API and the token authentication flow.

Request

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Header xmlns:t="http://api.cloudbilling.nl/2018/11/auth/token"><t:ApiToken>TOKEN</t:ApiToken></Header>
    <Body>
        <SaveBundleType xmlns="api.billing.inter8.V1_3_2">
            <bundleType>
                <BundlePrioritySequence xmlns="http://schemas.datacontract.org/2004/07/Kolonel.Public.Service.API.Contracts.V1_3_2">0</BundlePrioritySequence>
                <BundleTypeItems xmlns="http://schemas.datacontract.org/2004/07/Kolonel.Public.Service.API.Contracts.V1_3_2">
                    <BundleTypeItem>
                        <AllowFractions>true</AllowFractions>
                        <InBundleCost>0</InBundleCost>
                        <InBundleRate>0</InBundleRate>
                        <ProductClusterTagName>National Data</ProductClusterTagName>
                        <TraverseProductCluster>true</TraverseProductCluster>
                        <WeightFactor>1</WeightFactor>
                    </BundleTypeItem>
                </BundleTypeItems>
                <BundleTypeKey xmlns="http://schemas.datacontract.org/2004/07/Kolonel.Public.Service.API.Contracts.V1_3_2">DATA</BundleTypeKey>
            </bundleType>
        </SaveBundleType>
    </Body>
</Envelope>

Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <SaveBundleTypeResponse xmlns="api.billing.inter8.V1_3_2">
            <SaveBundleTypeResult xmlns:a="http://schemas.datacontract.org/2004/07/Kolonel.Public.Service.API.Contracts.V1_3_2" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                <a:Result>true</a:Result>
                <a:ResultCode>Success</a:ResultCode>
                <a:ResultMessage/>
            </SaveBundleTypeResult>
        </SaveBundleTypeResponse>
    </s:Body>
</s:Envelope>