Process a Combination Payment

The transact API call processes a payment and optionally stores the card for future use.

This sample shows processing a payment and saving the card. Look at the sample response tab to view the ConsentResult element.

POST https://[your-terminal-ip]:8090/transact SessKey: [your-session-key] Content-Type: application/json

Response Status Codes

  • 200 OK - Transaction submitted successfully. This does not mean the transaction was approved and processed; see the error handling section for more information.

  • 401 Unauthorized - Missing or invalid SessKey

  • 400 Bad Request - Invalid request format

  • 500 Internal Server Error - Processing error

Error Handling

Please view our API Best Practicesarrow-up-right guide for information on handling errors, logging responses, and checking for declines.

  • Sample Request

  • Sample Response

  • Header Parameters

  • Body

{
  "MerchID": 1,
  "SaveCard": 1,
  "AcctHolder": {
    "Firstname": "Fred",
    "Lastname": "Smith",
    "Company": "",
    "Title": "",
    "Url": "",
    "BillingAddress": {
      "Address1": "1307 Broad Hollow Road",
      "Address2": "",
      "City": "",
      "State": "",
      "ZIP": "11747",
      "Country": "USA"
    },
    "Email": "[email protected]",
    "Phone": "8777248472"
  },
  "Amounts": {
    "BaseAmt": 20.00,
    "Surcharge": 0,
    "TotalAmt": 20.00,
    "ConfirmTotalAmt": true
  },
  "Refdata": {
    "ServiceDesc": "Throat Culture",
    "ClientRefID": "1876345",
    "RPGuid": "dcaa9ac0-71a8-4dd4-ad2f-fbe107d1e789",
    "POSUser": "Sally Smith"
  }
}

Last updated

Was this helpful?