API Samples and Demo

Add OnFile XML (Existing Customer/Credit Card)

XML Request

                            
<api-request>
    <verification>
        <merchantId>your merchant id</merchantId>
        <merchantKey>your key</merchantKey>
    </verification>
    <command>add-card-onfile</command>
    <request>
        <customerId>112</customerId>
        <creditCardNumber>4111111111111111</creditCardNumber>
        <expirationMonth>09</expirationMonth>
        <expirationYear>2028</expirationYear>
        <billingName>John Smith</billingName>
        <billingAddress1>123 Main St.</billingAddress1>
        <billingAddress2></billingAddress2>
        <billingCity>Moorpark</billingCity>
        <billingState>CA</billingState>
        <billingZip>91311</billingZip>
        <billingPhone>123-123-1234</billingPhone>
        <billingEmail>customer@example.com</billingEmail>
    </request>
</api-request>
                            
                        

XML Response

                            
<api-response>
    <errorCode>0</errorCode>
    <errorMessage />
    <command>add-card-onfile</command>
    <time>1262352122049</time>
    <result>
        <token>I28P65RNklg=</token>
    </result>
</api-response>