sfdc-ux (CWP)

(0 reviews)

TMF666-BillingAccountCreation

/billingAccount

[POST]

This usecase is used to create billing account in Liberate.

URL
https://nonprod.cwp.esb.cloud.lla.com/test/sfdc-ux-cwp/sfdc-ux/v1/{businessId}/billingAccount
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Expected values: PAY
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request syntax: correlationId: uuid:cwc--, example: correlationId: f058ebd6-02f7-4d3f-942e-904344e8cde5Y

#Body Definations

NameTypeDescriptionRequired
namestringBilling Account NameY
relatedParty[].idstringAccountIdY
relatedParty[].namestringRelated Party NameY
relatedParty[].@typestringDefault: OrganizationY
relatedParty[].idstringSalesforce Record IdY
relatedParty[].namestringDefault: recordIdY
relatedParty[].@typestringDefault: SalesforceY
contact[].contactMedium[].preferredbooleanPreferred Contact IndicatorY
contact[].contactMedium[].characteristic.citystringCityY
contact[].contactMedium[].characteristic.countrystringCountryY
contact[].contactMedium[].characteristic.street1stringAddress Line 1Y
contact[].contactMedium[].characteristic.street2stringAddress Line 2Y
contact[].contactMedium[].characteristic.postCodestringPostal CodeY
contact[].contactMedium[].characteristic.stateOrProvincestringState or ProvinceY
contact[].contactMedium[].preferredbooleanPreferred Contact IndicatorY
contact[].contactMedium[].mediumTypestringDefault: AddressY
contact[].contactMedium[].characteristic.emailAddressstringEmail AddressY
contact[].contactMedium[].mediumTypestringDefault: EmailY
contact[].contactMedium[].preferredbooleanPreferred Contact IndicatorY
contact[].contactMedium[].characteristic.phoneNumberstringPhone NumberY
contact[].contactMedium[].characteristic.contactTypestringContact Type (e.g., home)Y
contact[].contactMedium[].mediumTypestringDefault: TelephoneY
@typestringDefault: BillingAccountY
accountTypestringAccount TypeY
characteristic[].namestringCharacteristic NameY
characteristic[].valuestringCharacteristic ValueY
characteristic[].valueTypestringCharacteristic Value TypeY
characteristic[].namestringDefault: billStatusAreaY
characteristic[].valuestringBill Status AreaY
characteristic[].valueTypestringDefault: StringY
characteristic[].namestringDefault: regionCodeY
characteristic[].valuestringRegion CodeY
characteristic[].valueTypestringDefault: StringY
cURL request
{
    "name": "222 Calle Jerónimo de la Ossa ",
    "relatedParty": [
        {
            "id": "35330705",
            "name": "11 Calle Merlin SubOrder48 Bil"
        },
        {
            "id": "0010100000RhiN9AAJ",
            "@type": "Salesforce",
            "name": "recordId"
        }
    ],
    "contact": [
        {
            "contactMedium": [
                {
                    "preferred": false,
                    "characteristic": {
                        "city": "Jamaika",
                        "country": "Jamaika",
                        "street1": "222 Calle ",
                        "street2": "Jerónimo de la Ossa",
                        "postCode": "1234",
                        "stateOrProvince": "Jamaika"
                    },
                    "mediumType": "Address"
                },
                {
                    "preferred": false,
                    "characteristic": {
                        "emailAddress": "rajinireddy08@x.com"
                    },
                    "mediumType": "Email"
                },
                {
                    "preferred": false,
                    "characteristic": {
                        "phoneNumber": "456789",
                        "contactType": "home"
                    },
                    "mediumType": "Telephone"
                }
            ]
        }
    ],
    "@type": "BillingAccount",
    "accountType": "COM",
    "characteristic": [
        {
            "name": "billStatusArea",
            "value": "GSM",
            "valueType": "String"
        },
        {
            "name": "regionCode",
            "value": "PNO",
            "valueType": "String"
        }
    ]
}'
Response
{
    "id": "326000460400",
    "name": "Home Account",
    "relatedParty": [
        {
            "id": "32600046",
            "name": "Richard Cole"
        },
        {
            "id": "0010100000RhiN9AAJ",
            "@type": "Salesforce",
            "name": "recordId"
        }
    ]
}

Reviews