A Device Transaction represents a transaction and a device that are associated together.

Properties

PropertyTypeDescriptionExample
idNumber(integer)Read-only unique identifier.1234567890
type*StringThe type of device transaction. "auth" means an auth only transaction is requested. "sale" means a sale transaction is requested (default). "cancel" is used to cancel a pending device transaction request."auth"
amount*Number(float)The required amount in dollars of the transaction being requested.1.07
keyStringThe unique key generated for a specific device payment request. This is the value you will use to cancel or check on the status of a particular request."1234567890"
statusString"requested", "transaction complete", "canceled via api", "canceled via terminal", "request timed out""requested"
response_codeStringThe response code from the POS Device. All responses that are OK will have a response code of "000000"."000000"
transactionObject(Transaction object)The transaction object associated with a specific device transaction request. Will contain the associated transaction object if the status of the device transaction is "transaction complete".See Transaction Examples
deviceObject(Device object)The device that the request was sent to.See Device Example

Requirements

*Required for all Device Transactions. type defaults to a value of "sale" if omitted.

Example

{
  "id": 1234567890,
  "type": "auth",
  "amount": 1.07,
  "key": "1234567890",
  "status": "requested",
  "response_code": "000000",
  "transaction": null,
  "device": {
    "key": "1234567890",
    "name": "Test Terminal",
    "sn": "1234567890"
  }
}