Sage 100: Importing a Sales Order With an Existing Pre-Auth
To import a Sage 100 sales order carrying a website pre-auth, the card must be vaulted to get a GUID, the pre-auth run against that GUID, and the GUID plus approval data imported with the order. Here is the working flow.
Your website has already authorized the customer's card. Now the order has to come into Sage 100 — and if you import it naively, Sage knows nothing about that authorization: at invoicing it will try to authorize again, or the payment record will be unusable. The missing piece is not the authorization code. It is the GUID.
Sage 100 never stores the raw card number for an imported authorization. It stores a GUID that points at the card held in the payment gateway's vault, together with the authorization results. So the whole job is: get the card into the vault to mint a GUID, run (or record) the pre-auth against that GUID, and import the order carrying the GUID plus the approval data. The flow below is the one the original poster completed and reported working, after Sage's first suggested service turned out not to return a GUID at all.
The fix
- Vault the card and get the GUID. Call the gateway's Vault service (
gateway.sagepayments.net/.../wsVault.asmx), operation INSERT_CREDIT_CARD_DATA, with your merchant ID and key, the card number, and the expiration date inmmyyformat. Parse the XML response — the GUID is returned atNewDataSet > Table1 > GUID. This step is the one that was initially missed: the service Sage first pointed the poster to did not return a GUID, and without a GUID nothing downstream works. - Run the pre-auth against the GUID. Call the Vault Transaction service (
gateway.sagepayments.net/.../wsVaultBankcard.asmx), operation VAULT_BANKCARD_AUTHONLY, with the merchant credentials, the cardholder's name and address fields, the GUID from step 1, the amount, and your order number. - Capture the approval data. In the response XML,
APPROVAL_INDICATOR= "A" means approved. Keep four things for the import: the GUID, the response CODE, the response REFERENCE, and the amount (plus the card type and cardholder address data your import maps). - Import the sales order with those values mapped into its credit card payment fields. The imported order now references the vaulted card and the existing authorization, so invoicing settles against that pre-auth instead of authorizing the card a second time.
Options and approaches
If you import with Visual Integrator instead of an API
The card still has to exist in the vault before an order can reference it. The documented VI route (Schulz Consulting, for Sage 100 ERP 2013+) vaults the cards first, as their own import:
- Build a VI import job into the AR_CustomerCreditCard table.
- Add a Perform step, type After Assign, against AR_CustomerCreditCard on the CustomerNo column, calling
coBusiness'ARCreditCard'AddNewCreditCard(...)with temp fields carrying the payment type, card number and the other card values your job defines. - Map the job's CreditCardGUID field as Calculated from the temp field the Perform call fills — that returned GUID is the value your sales order import then uses.
An older pattern from the MAS 90/200 4.3 era makes the same point from the other side: credit card information had to already exist in the system before the order import could use it, and an import set to pre-authorize would run the authorization at import time. If your design authorizes on the website, use the Vault flow above; if it authorizes in Sage, the card-on-file must still come first.
If you build orders through the Business Object Interface
Set the authorization fields together on the order/payment object — authorization number (CreditCardAuthorizationNo), pre-authorization amount (CreditCardPreAuthorizationAmt) and transaction ID (CreditCardTransactionID). Setting a transaction ID without its companion authorization fields raises errors of the "You cannot set Credit Card Transaction ID when Credit Card Authorization Code is not set" family; the fields move as a set, and the payment still needs a vaulted card (GUID) behind it.
What doesn't work
- Starting with the wrong gateway service. The poster was first directed to a service that could process but could not return a GUID. If your call cannot hand you a GUID, it is the wrong door — the Vault service is the one that mints it.
- Importing the authorization code by itself. An approval code with no GUID gives the order's payment record nothing to settle against.
- Expecting to transfer a pre-auth from a different processor unchanged. A later, parallel case (orders pre-authorized through a non-Paya processor) never found a clean transfer; the fallback respondents used was importing via BOI as Deposit type with a 0.00 deposit amount and pre-authorizing manually inside Sage 100. Workable, but it is a re-authorization workflow, not a transfer — plan for it honestly if your processor differs.
Affected versions
The Vault flow is documented against the Sage Payment Solutions gateway of the thread's era (SOAP services at gateway.sagepayments.net); the thread does not pin a Sage 100 version, and the gateway has since been rebranded (Paya), so verify current endpoint names with the processor before building. The VI AddNewCreditCard route is documented for Sage 100 ERP 2013 and later. The durable, version-independent fact is the architecture: vault GUID first, authorization against the GUID, GUID plus approval data on the imported order.
Prevention / best practice
- Store the GUID, approval code, reference and amount in your e-commerce order record at authorization time. Retrofitting them after the fact is where these projects stall.
- Never let raw card numbers land in import files or staging tables — the vault exists precisely so they don't have to. If a design requires a spreadsheet of card numbers, the design is wrong.
- Test the full circle with one order: vault, pre-auth, import, invoice, settle. A break at settlement is much more expensive to find with a day's orders in flight.
Related help
- Adding Credit Card Processing Fees to Invoices
- Visual Integrator Sales Order Import
- Sales Orders Disappearing
- SO Totals Incorrect in Version 2020
- Invoice Date Entry vs Shipping Data Entry
Still stuck? Send us a screenshot of the error, we will diagnose it for free.
Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.