SOAP Request to Create General Tokens for Payments

To be able to generate SOAP Request for Payment Instruments of type General Token from Customer Record.

<soapenv:Envelope
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:platformCore='urn:core_2019_2.platform.webservices.netsuite.com'
    xmlns:platformMsgs='urn:messages_2019_2.platform.webservices.netsuite.com'
    xmlns:listAcct='urn:accounting_2019_2.lists.webservices.netsuite.com'>
    <soapenv:Header>
        <passport xsi:type='platformCore:Passport'>
            <email xsi:type='xsd:string'>************************</email>
            <password xsi:type='xsd:string'>***************</password>
            <account xsi:type='xsd:string'>*********</account>
        </passport>
        <applicationInfo xsi:type='platformMsgs:ApplicationInfo'>
            <applicationId xsi:type='xsd:string'>********************************</applicationId>
        </applicationInfo>
    </soapenv:Header>
    <soapenv:Body>
        <add xsi:type='platformMsgs:AddRequest'>
            <record xsi:type='listAcct:GeneralToken'>
                <entity xsi:type='platformCore:RecordRef' internalId='**'/>
                <mask xsi:type='xsd:string'/>
                <paymentMethod xsi:type='platformCore:RecordRef' internalId='*'/>
                <token xsi:type='xsd:string'>**********************</token>
                <tokenFamily xsi:type='xsd:string'>_cyberSource</tokenFamily>
            </record>
        </add>
    </soapenv:Body>
</soapenv:Envelope>

Leave a comment

Your email address will not be published. Required fields are marked *