For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 Practices 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": "tester@easypaysolutions.com",
    "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"
  }
}

A unique session key used for authentication in API calls. This key is generated upon successful authentication and must be included in all subsequent requests.

Example: A1842D663E9A4A72XXXXXXXX303541303234373138


Content-Type string required

Example: application/json


Accept string required

Example: application/json

  • MerchID (integer, required) - Merchant identification number

  • SaveCard (integer, required) - Card storage flag (0 or 1). Use 1 to store the card for future card not present transactions.

  • AcctHolder (object, required) - Cardholder and billing information - Amounts (object, required) - Transaction amount details:

  • BaseAmt (number, required) - Base transaction amount - Surcharge (number, required) - Surcharge/fee amount. You may supply a fee but only if these have been properly configured for each merchant record.

  • TotalAmt (number, required) - Total amount (BaseAmt + Surcharge)

  • ConfirmTotalAmt (boolean, optional, default: false) - If true, the customer will be shown an approve amount button on the Ingenico device.

  • Refdata (object, required) - Reference data for transaction tracking:

  • ServiceDesc (string) - Description of service/product

  • ClientRefID (string) - Client reference identifier

  • RPGuid (string) - Unique transaction GUID

  • POSUser (string) - POS user/operator name

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?