Card transactions

Read-only. Gateway transaction records. Card data is never returned.

The object#

FieldTypeDescription
idread-onlyintegerNolaPro id.
customeridintegerReference to customers, by id. Write either this or customer.
customerstring(30)Code for the referenced customer, instead of the id.
b2buseridintegerThe B2B portal login that submitted the payment, when it came through the portal; 0 for payments taken inside NolaPro.
ccaccountidintegerThe gateway account (ccaccounts) the transaction ran through.
referidintegerRow id in refertable of the document the payment applies to.
refertablestring(50)Which table referid points at: arinvoice for invoice payments, gltransvoucher for deposit transactions.
transtypestring(1)Transaction type sent to the gateway: S = sale, A = authorization, D = prior-authorization capture, F = capture only, C = credit, V = void.
cardtypestring(20)Card brand as the gateway reported it (Visa, MasterCard, American Express, Discover).
amountmoneystring(4dp)Total amount sent to the gateway. Stored as decimal(12,4).
nontaxablemoneystring(4dp)Non-taxable portion of the amount, sent for level-2 card data. Stored as decimal(12,4).
shippingmoneystring(4dp)Shipping portion of the amount, sent for level-2 card data. Stored as decimal(12,4).
taxmoneystring(4dp)Tax portion of the amount, sent for level-2 card data. Stored as decimal(12,4).
transidstring(30)The gateway’s reference number for this transaction.
optionalidstring(80)Gateway-specific secondary reference: the batch reference number for middleware transactions, the saved payment-method id for appointment charges.
resultcodestring(1)Outcome: A = approved, D = denied, E = error.
resultreasoncodeintegerNumeric reason code the gateway returned alongside resultcode.
resultreasontextstring(255)Human-readable response text from the gateway.
authcodestring(25)Authorization code the processor returned for an approved transaction - the code printed on receipts.
avscodestring(2)Address Verification System result code from the gateway.
customeripstring(25)IP address the payment was submitted from, recorded for card-not-present transactions.
customerconfirmationstring(20)Confirmation number generated for the customer’s receipt.
authopeninteger1 while an authorization (transtype A) has not been captured; cleared when the capture or void arrives.
entrydatestringWhen the record was created.
authtransidstring(30)Gateway transaction id of the original authorization a capture or void applies to.
authorize_extraintegerExtra percentage added when authorizing, from the account’s Extra Auth Percent option (tip headroom); 0 otherwise.
userdatastring(255)Free-form gateway passthrough data. Rarely populated.
billingaddressstring(100)Billing street address sent to the gateway for address verification.
billingcitystring(50)Billing city sent to the gateway for address verification.
billingstatestring(50)Billing state sent to the gateway for address verification.
billingzipstring(20)Billing ZIP sent to the gateway for address verification.
cardpresentinteger1 when the card was physically present (swiped or tapped); 0 for keyed and online payments.
currencystring(10)Currency code of the charge.
curratenumberstring(10dp)Numeric string, 10 decimal places. Not money - do not apply currency rounding.

Endpoints#

GET/cctransactions 200403

List card transactions.

Requires scope banking:read.

Parameters
NameInTypeNotes
customeridquerystringRestrict to one customerid.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
403insufficient_scopeToken lacks read scope.
curl \
  'https://acme.nolapro.com/!/api/v2/cctransactions' \
  -H 'Authorization: Bearer $NP_TOKEN'
GET/cctransactions/{id} 200404

Retrieve one record.

Requires scope banking:read.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl \
  'https://acme.nolapro.com/!/api/v2/cctransactions/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "customerid": 104,
    "customer": "Example customer",
    "ccaccountid": 104,
    "referid": 104,
    "refertable": "Example refertable",
    "transtype": "Example transtype"
}