Skip to main content

Documentation Index

Fetch the complete documentation index at: https://bancofcalifornia-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Sale/Auth/Credit/Validate/Offline XML Request

XML ElementDescription
<sale|auth|credit|validate|offline>Type of transaction to perform.
api-key*api-key is obtained in the security keys section of the control panel settings.
redirect-url*A URL on your web server that the gateway will redirect your customer to after sensitive data collection.
amount*Total amount to be charged (For “validate” actions, amount must be 0.00 or omitted).
surcharge-amountSurcharge amount. Format: x.xx
authorization-code**Specify authorization code. For use with “offline” action only.
ip-addressCardholder’s IP address. Format: xxx.xxx.xxx.xxx
industrySpecify industry classification of transaction. Values: ‘ecommerce’, ‘moto’, or ‘retail’
billing-methodSet additional billing indicators. Values: ‘recurring’ or ‘installment’
billing-numberSpecify installment billing number, on supported processors. For use when “billing-method” is set to installment. Values: 0-99
billing-totalSpecify installment billing total on supported processors. For use when “billing-method” is set to installment.
processor-idIf using multiple processors, route to specified processor. Obtained under Settings->Transaction Routing in the merchant control panel.
sec-codeACH standard entry class codes. Values: ‘PPD’, ‘WEB’, ‘TEL’, ‘CCD’, ‘POP’, or ‘ARC’
descriptorSet payment descriptor on supported processors.
descriptor-phoneSet payment descriptor phone on supported processors.
descriptor-addressSet payment descriptor address on supported processors.
descriptor-citySet payment descriptor city on supported processors.
descriptor-stateSet payment descriptor state on supported processors.
descriptor-postalSet payment descriptor postal code on supported processors.
descriptor-countrySet payment descriptor country on supported processors.
descriptor-mccSet payment descriptor mcc on supported processors.
descriptor-merchant-idSet payment descriptor merchant id on supported processors.
descriptor-urlSet payment descriptor url on supported processors.
currencySet transaction currency. Format: ISO 4217
order-descriptionOrder description.
customer-idCustomer identification.
customer-vault-idLoad customer details from an existing Customer Vault record. If set, no payment information is required during step two.
merchant-receipt-emailSend merchant receipt to email
customer-receiptSend receipt if billing email included. Values: ‘true’ or ‘false’
merchant-defined-field-#Merchant specified custom fields. Format: <merchant-defined-field-1>Value</merchant-defined-field-1>
tracking-numberShipping tracking number.
shipping-carrierShipping carrier. Values: ‘ups’, ‘fedex’, ‘dhl’, or ‘usps’
order-id***Order id.
signature-imageCardholder signature image. For use with “sale” and “auth” actions only. Format: base64 encoded raw PNG image. (16kiB maximum)
po-number***Cardholder’s purchase order number.
tax-amount***The sales tax included in the transaction amount associated with the purchase. Setting tax equal to any negative value indicates an order that is exempt from sales tax. Default: ‘0.00’ Format: x.xx
shipping-amount***Total shipping amount.
ship-from-postal****Postal/ZIP code of the address from where purchased goods are being shipped. Defaults to merchant profile postal code.
summary-commodity-code****A code representing the type of commodity being purchased. The acquirer or processor will provide a list of current codes.
duty-amountAmount included in the transaction amount associated with the import of the purchased goods. Default: ‘0.00’
discount-amountAmount included in the transaction amount of any discount applied to the complete order by the merchant. Default: ‘0.00’
national-tax-amountThe national tax amount included in the transaction amount. Default: ‘0.00’
alternate-tax-amountSecond tax amount included in the transaction amount in countries where more than one type of tax can be applied to the purchases. Default: ‘0.00’
alternate-tax-idTax identification number of the merchant that reported the alternate tax amount.
vat-tax-amountContains the amount of any value added taxes which can be associated with the purchased item. Default: ‘0.00’
vat-tax-rateContains the tax rate used to calculate the sales tax amount appearing. Can contain up to 2 decimal places, ie 1% = 1.00. Default: ‘0.00’
vat-invoice-reference-numberInvoice number that is associated with the VAT invoice.
customer-vat-registrationValue added tax registration number supplied by the cardholder.
merchant-vat-registrationGovernment assigned tax identification number of the merchant from whom the goods or services were purchased.
order-datePurchase order date. Defaults to the date of the transaction. Format: YYMMDD
skip-3dsSkip over 3DS authentication process for this specific transaction. Values: “true” or “false”
cardholder-auth†3D Secure condition. Value used to determine E-commerce indicator (ECI). Values: ‘verified’ or ‘attempted’
cavv†Cardholder authentication verification value. Format: base64 encoded
xid†Cardholder authentication transaction id. Format: base64 encoded
three-ds-version†3DSecure version. Examples: “2.0.0” or “2.2.0”
directory-server-idDirectory Server Transaction ID. May be provided as part of 3DSecure 2.0 authentication. Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
initiated-byWho initiated the transaction. Values: ‘customer’ or ‘merchant’
initial-transaction-idOriginal payment gateway transaction id.
stored-credential-indicatorThe indicator of the stored credential. Values: ‘stored’ or ‘used’ Use ‘stored’ when processing the initial transaction in which you are storing a customer’s payment details (customer credentials) in the Customer Vault or other third-party payment storage system. Use ‘used’ when processing a subsequent or follow-up transaction using the customer payment details (customer credentials) you have already stored to the Customer Vault or third-party payment storage method.
dup-seconds‡Override duplicate transaction detection time in seconds.
avs-reject‡The transaction is rejected if the address verification result is a code in this list. Values are letters obtained under Settings->Address Verification in the control panel. Format: xxxx…
cvv-reject‡The transaction is rejected if the card ID verification result is a code in this list. Values are letters obtained under Settings->Card ID Verification in the control panel. Format: xxxx…
<billing>The customer’s billing information
billing-idSpecify billing id. Recommended when using Customer Vault hybrid action. Will be ignored if no hybrid add/update-customer is done.
first-nameCardholder’s first name.
last-nameCardholder’s last name.
address1Cardholder’s billing address.
cityCard billing city.
stateCard billing state/province. Format: CC
postalCard billing postal code.
countryCard billing country code. Format: CC/ISO 3166
phoneBilling phone number.
emailBilling email address.
companyCardholder’s company.
address2Card billing address, line 2.
faxBilling fax number.
account-type§The customer’s ACH account type. Values: ‘checking’ or ‘savings’
entity-type§The customer’s ACH account entity. Values: ‘personal’ or ‘business’
</billing>
<shipping>The customer’s shipping information.
shipping-idSpecify shipping id. Recommended when using Customer Vault hybrid action. Will be ignored if no hybrid add/update-customer is done.
first-nameShipping first name.
last-nameShipping last name.
address1Shipping billing address.
cityShipping city.
stateShipping state/province. Format: CC
postal****Shipping postal code.
country****Shipping country code. Format: CC/ISO 3166
phoneShipping phone number.
emailShipping email address.
companyShipping company.
address2Shipping address, line 2.
faxShipping fax number.
</shipping>
<product>Product line item detail. Multiple product elements are allowed.
product-code****¶Merchant defined description code of the item being purchased.
description****Description of the item(s) being supplied.
commodity-code****International description code of the individual good or service being supplied. The acquirer or processor will provide a list of current codes.
unit-of-measure****Code for units of measurement as used in international trade. Default: ‘EACH’
unit-cost****Unit cost of item purchased. May contain up to 4 decimal places.
quantity****Quantity of the item(s) being purchased. Default: ‘1’
total-amount****Purchase amount associated with the item. Default to ‘unit-cost’ x ‘quantity’ rounded to the nearest penny.
tax-amount****Amount of sales tax on specific item. Amount should not be included in item-total-amount. Default: ‘0.00’ Format: x.xx
tax-rate****Percentage representing the value-added tax applied. 1% = 1.00. Default: ‘0.00’
discount-amountDiscount amount which can have been applied by the merchant on the sale of the specific item. Amount should not be included in ‘item-total-amount’.
discount-rateDiscount rate for the line item. 1% = 1.00. Default: ‘0.00’
tax-typeType of value-added taxes that are being used.
alternate-tax-idTax identification number of the merchant that reported the alternate tax amount.
</product>
<add-subscription>Perform a simultaneous ‘hybrid’ recurring action while processing a transaction.
start-dateThe first day that the customer will be charged. Format: YYYYMMDD
<plan>
plan-idThe unique plan ID that references only this recurring plan.
paymentsThe number of payments before the recurring plan is complete. Note: Use ‘0’ for ‘until canceled’
amountThe plan amount to be charged each billing cycle. Format: x.xx
day-frequencyHow often, in days, to charge the customer. Cannot be set with ‘month-frequency’ or ‘day-of-month’.
month-frequencyHow often, in months, to charge the customer. Cannot be set with ‘day-frequency’. Must be set with ‘day-of-month’. Values: 1 through 24
day-of-monthThe day that the customer will be charged. Cannot be set with ‘day-frequency’. Must be set with ‘month-frequency’. Values: 1 through 31 - for months without 29, 30, or 31 days, the charge will be on the last day
</plan>
</add-subscription>
<add-customer|update-customer>Perform a simultaneous ‘hybrid’ Customer Vault action while processing a transaction. This tag can be blank if submitting an ‘add-customer’ without specifying a ‘customer-vault-id’.
customer-vault-idSpecify Customer Vault id. If omitted, will be auto-generated and returned in response. Required for ‘update-customer’.
</add-customer|update-customer>
partial-payments††Specify whether a partial amount or full amount of the transaction should be settled. Format: ‘settle_partial’ or ‘payment_in_full’
partial-payment-id††Specify a partial payment ID. Required to collect an additional amount associated with an existing Partial Payment Transaction. Do not use on initial transaction.
Payment Facilitator Specific Fields
payment-facilitator-id‡‡‡Payment Facilitator/Aggregator/ISO’s ID Number
submerchant-id‡‡‡Sub-merchant Account ID
submerchant-name‡‡‡Sub-merchant’s Name
submerchant-address‡‡‡Sub-merchant’s Address
submerchant-city‡‡‡Sub-merchant’s City
submerchant-state‡‡‡Sub-merchant’s State
submerchant-postal‡‡‡Sub-merchant’s Zip/Postal Code
submerchant-country‡‡‡Sub-merchant’s Country
submerchant-phone‡‡‡Sub-merchant’s Phone Number
submerchant-email‡‡‡Sub-merchant’s Email Address
submerchant-url‡‡‡Sub-merchant’s URL
submerchant-airn‡‡‡Sub-merchant’s Acquirer Internal Reference Number, used for Discover transactions
</sale|auth|credit|validate|offline>
Field markers
  • * Always required
  • ** Required for offline transactions
  • *** Required for Level 2 and Level 3 transactions
  • **** Required for Level 3 transactions
  • Required for 3D-Secure transactions
  • Required for Override transactions
  • †† Required for Partial Payment Transactions
  • § Required for ACH transactions
  • Required for Line Item Reporting
  • ‡‡‡ Required fields for Payment Facilitator enabled transactions vary by card brand

Sale/Auth/Credit/Validate/Offline XML Response

XML ElementDescription
<response>
result1=Approved 2=Declined 3=Error in transaction data or system error
result-textTextual response.
transaction-idPayment Gateway transaction id.
result-codeNumeric mapping of processor responses. (See Result Code Table)
form-urlURL used as the action of the HTML form in step two.
</response>