Swiped Sale (Card Present)

A Sale transaction performs the operation of Authorization and Capture in one request.

This request can use encrypted values (encrypted_number and encrypted_csc) that were encrypted by the PayTrace Client-Side Encryption JavaScript Library.

Request

Response

POST: /v1/transactions/sale/swiped

REQUEST:

{
  "amount": 4,
  "swipe": "%B4012881888818888^Demo/Customer^2412101001020001000000701000000?;4012881888818888=24121010010270100001?"
}

With Client-Side Encrypted Data

{
  "amount": 5,
  "encrypted_swipe": "nELVjn9xI5m/CDSThOgMSvaXuBjCg+J4fuTLbQRlVXtwRd4toMgcdHEv9SFUCXw/BmTRbN/Vb431eoW6JawR983M2TbpjEd7qgmE87Y6C2A/sjoQWfU6WQGXJI08TRZXxFtds6ksYqRckthKT89Ym8q6AuXX4UR1CH/jsA20TKGpEolA/XHfXMS72nNLMcNti0+m5W6oPik50m7qSZJl0xFxXNsgN8mrKzMGhkQHsnPGSKjN30jkAa2ne8rYfQuoZQ/M9FEZzQWUX7JlKcrlWufO54jtuSC+DeGR+6pCzUqXctaGeKhIC12BfGVGNcRQMtHVZadGqXyR708fjeJdqg=="
}

Field types: R – Required, O – Optional, C - Conditional

RESPONSE:

{
  "success": true,
  "response_code": 101,
  "status_message": "Your transaction was successfully approved.",
  "transaction_id": 79223005,
  "approval_code": "TAS212",
  "approval_message": "APPROVAL TAS212 - Approved and completed",
  "avs_response": "0",
  "csc_response": "",
  "external_transaction_id": ""
}