Process a Card Sale

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

This sample shows charging a payment without saving the card.

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.

{
  "MerchID": 1,
  "SaveCard": 0,
  "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"
  }
}
circle-info

IMPORTANT : Always check your response to determine the fees and final amoount which are approved as this may differ from what was requested. The ResponseAuthorizedAmount element shows the amount that was charged.

Last updated

Was this helpful?