Follow

GET /transactions/{transactionId}

Get a Transaction

Returns all of the transaction details.

Example Response

{
      "transactionId": 3601, 
      "uri": "https://api.payjunction.com/transactions/3601", 
      "terminalId": 1, 
      "action": "CHARGE", 
      "amountBase": "1.00", 
      "amountTax": "1.00", 
      "amountShipping": "1.00", 
      "amountTip": "1.00", 
      "amountSurcharge": "1.00", 
      "amountTotal": "5.00",
      "invoiceNumber": "Invoice 5", 
      "purchaseOrderNumber": "Custom PO", 
      "method": "KEYED",
      "status": "CAPTURE",
      "signatureStatus": "SIGNED", 
      "created": "2013-11-18T22:15:32Z", 
      "lastModified": "2013-11-18T22:15:32Z", 
      "response": {
            "approved": true, 
            "code": "00", 
            "message": "Approved", 
            "processor": {
                  "authorized": true, 
                  "approvalCode": "PJ20AP", 
                  "avs": {
                        "status": "REQUESTED", 
                        "requested": "BYPASS", 
                        "match": {
                              "ZIP": true, 
                              "ADDRESS": true
                        }
                  }, 
                  "cvv": {
                        "status": "NOT_REQUESTED"
                  }
            }
      }, 
      "settlement": {
            "settled": true, 
            "settlementId": 99
      }, 
      "vault": {
            "type": "CARD", 
            "accountType": "VISA", 
            "lastFour": "1111"
      }, 
      "billing": {
            "firstName": "John", 
            "middleName": "J", 
            "lastName": "Doe", 
            "companyName": "PayJunction", 
            "email": "jdoe@payjunction.com", 
            "phone": "8006010230 x2", 
            "phone2": "8006010230 x2", 
            "jobTitle": "Support", 
            "identifier": "Billing Customer id", 
            "website": "http://www.payjunction.com", 
            "address": {
                  "address": "1903 State St", 
                  "city": "Santa Barbara", 
                  "state": "CA", 
                  "country": "USA", 
                  "zip": "93101"
            }
      }, 
      "shipping": {
            "firstName": "Jane", 
            "middleName": "J", 
            "lastName": "Doe", 
            "companyName": "PayJunction", 
            "email": "janedoe@payjunction.com", 
            "phone": "8006010230 x2", 
            "phone2": "8006010230 x2", 
            "jobTitle": "Support", 
            "identifier": "Shipping Customer Id", 
            "website": "https://www.payjunction.com", 
            "address": {
                  "address": "1903 State St", 
                  "city": "Santa Barbara", 
                  "state": "CA", 
                  "country": "USA", 
                  "zip": "93101"
            }
      }
}

Available Results for "method" Response

  • KEYED (Manually entered to the system)
  • SWIPED (Read from a swipe of a card)
  • CHIP (Read via EMV chip).
  • RECURRING (Previously saved payment ran as recurring).
  • INSTANT (Recharged by Vault or recharged by transaction id)
  • CONTACTLESS (Apple Pay, Android Pay, etc. Any "tap to pay" methods)
"method": "KEYED|SWIPED|CHIP|RECURRING|INSTANT|CONTACTLESS",

Available Results for "signatureStatus" Response

  • PENDING (waiting for signature capture)
  • NOT_REQUIRED_PIN (these are chip & pin transactions and won't have a signature)
  • NOT_REQUESTED (a request for signature was not sent).
  • SIGNED (transaction has a signature captured).
"signatureStatus": "PENDING|NOT_REQUIRED_PIN|NOT_REQUESTED|SIGNED",

Available Card Brands for "vault" Response

These are all of the available card brands (accountType) that are returned in the response for "vault".

"vault": {
     "type": "CARD", 
     "accountType": "AMERICAN_EXPRESS|DINERS|DISCOVER|CHECKING|GENERAL_LEDGER|JCB|MASTERCARD|SAVINGS|UNKNOWN|VISA", 
     "lastFour": "1111"
},