postTerminalTxns
Create a TerminalTxn. TerminalTxns hold all of the information to a related final transaction. They are used to be reconcilliated with that actual, final transaction.
In: header
Header Parameters
A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.
A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.
Request Body
application/json
Create Terminal Transaction Request
Create Terminal Transaction Request
The type of bank issuer number (BIN) that allows for resulting transactions.
CREDIT- Credit BIN Type.DEBIT- Debit BIN Type.PREPAID- Prepaid BIN Type.
Value in
- "CREDIT"
- "DEBIT"
- "PREPAID"
The expiration date of this Transaction. This field is stored as a text string in 'MMYY' format, where 'MM' is the number of a month and 'YY' is the last two digits of a year. For example, '0623' for June 2023. The value must reflect a future date.
If this Terminal Transaction is related to another Terminal Transaction, then this field is set to the identifier of the other Terminal Transaction. For example, if this Terminal Transaction is a Refund, this field could be set to the identifier of the original Sale Terminal Transaction.
The origin of this Transaction.
1- Credit Card Terminal.2- eCommerce System.3- Mail or Telephone Order Transaction.4- Apple Pay (deprecated).5- Successful 3D Secure Transaction.6- Attempted 3D Secure Transaction.7- Deprecated. Recurring Card Transaction.8- Payframe.9- Writing.
Value in
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
The platform used to process this resource.
APPLE- The Apple Payment Processor.ELAVON- The Elavon processor.FIRSTDATA- The FirstData processor.GOOGLE- The Google Payment Processor.VANTIV- The WorldPay (aka Vantiv or Litle) eComm (aka VAP) processor.VCORE- The WorldPay (aka Vantiv) Core processor.TDBANKCA- External funding with TD Bank Canada via the Operating Account.WELLSACH- The Wells Fargo ACH processor.WELLSFARGO- The Wells Fargo Merchant Services processor.WFSINGLE- The WFSINGLE processor.WORLDPAY- The WORLDPAY processor.
Value in
- "APPLE"
- "ELAVON"
- "FIRSTDATA"
- "GOOGLE"
- "VANTIV"
- "VCORE"
- "TDBANKCA"
- "WELLSACH"
- "WELLSFARGO"
- "WFSINGLE"
- "WORLDPAY"
Whether the terminalTxn is coming from a POS system that needs terminal activation.
0- POS Terminal Activation. (Internal)1- External Terminal Activation.
Value in
- 0
- 1
Whether the terminal should print a receipt or not.
noReceipt- No Receipt.merchant- Merchant copy only.customer- Customer copy only.both- Merchant and Customer copy.
Value in
- "noReceipt"
- "merchant"
- "customer"
- "both"
The Terminal ID as set by the platform activating the terminal. This field is stored as a text string and must be between 0 and 50 characters long.
Sequencial number that uniquely identifies the terminalTxn.
The related txn this terminalTxn belongs to.
The ID of the token record to associate with this terminal transaction request.
The last four numbers of the credit card associated with this Transaction.
The payment method for this Transaction.
Value in
- 0
- 1
- 2
- 3
- 4
- 5
- 7
- 8
- 9
- 10
- 11
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
The type of Transaction.
1- Credit Card Only: Sale Transaction. This is the most common type of Transaction, it processes a sale and charges the customer.2- Credit Card Only: Auth Transaction. Authorizes and holds the requested total on the credit card.4- Credit Card Only: Reverse Authorization. Reverses a prior Auth or Sale Transaction and releases the credit hold.5- Credit Card Only: Refund Transaction. Refunds a prior Capture or Sale Transaction (total may be specified for a partial refund).13- Batch out terminal.
Value in
- 1
- 2
- 4
- 5
- 13
This field indicates the tip amount associated with a transaction. This value is for reporting purposes only, because transaction amount includes this amount in the total.
Field identifying Payrix PAX terminal originating app.
Field identifying original Payrix Verifone transaction reference number, used for refunds and cancellation request.
Express assigned identifier i.e. Software Id being used in express terminal.
Software Name being used in express terminal.
Software version being used in express terminal.
Express Reference Number.
The gateway transaction ID relates to Express Transaction ID.
Express ticket Number.
The authorization code for this Transaction. This field is stored as a text string and must be between 0 and 20 characters long.
The date on which the Transaction was authorized. The date is specified as an eight digit string in YYYYMMDD format, for example, '20160120' for January 20, 2016. The value of this field must represent a date in the past.
The amount of the total sum of this Transaction that is given as cash back. This field is specified as an integer in cents.
The client IP address from which the Transaction was created. Valid values are any Ipv4 or Ipv6 address.
The name of the company associated with this Transaction. nSetting this field is especially important when processing an eCheck from a company.
The status of the CVV on the card.
notPresent- CVV is not present.illegible- CVV is illegible.notProvided- CVV was not provided.
Value in
- "notPresent"
- "illegible"
- "notProvided"
A description of this Transaction. This field is stored as a text string and must be between 0 and 1000 characters long.
The discount applied to the transaction.
The duty fee applicable to this transaction.
The email associated with this Transaction.
Whether the card was swiped during this Transaction. This field is set to '1' automatically if 'track' data was received.
0- Not Swiped.1- Swiped.
Value in
- 0
- 1
How payment information has been entered, including manually keyed entries, card swipes with track 1 or 2 data received, card dips with EMV chip data received, contactless card reads with track or EMV data received, and ApplePay read with cryptogram data received.
1- Manually keyed entry.2- Card swiped. Track 1 received.3- Card swiped. Track 2 received.4- Card swiped. Track 1 & 2 received.5- Card dipped. EMV chip received.6- Contactless card read. Track or EMV data received.7- Track Data from Card Swipe after EMV chip failure.8- Track Data from Manually keyed entry after EMV chip failure.9- ApplePay10- Google Pay.11- Merchant created transaction.12- Invoice payment.13- Merchant created transaction in payrix portal.14- Invoice payment from payrix portal.
Value in
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
Optional calculated fee amount indicator. This should be used in conjunction with txnFee setting on Fees resource. This field is specified in cents(up to three decimal points).
The first name associated with this Transaction. For eCheck transactions, either first or last is required.
The last name associated with this Transaction. For eCheck transactions, either first or last is required.
The identifier of the Merchant associated with this Transaction.
The Merchant ID as set by the processor. This field is stored as a text string and must be between 0 and 50 characters long.
The middle name associated with this Transaction.
The identifier of the Order associated with this Transaction. This field is stored as a text string and must be between 0 and 1000 characters long.
Whether this Transaction was verified with a PIN.
-
0- No PIN verification. -
1- PIN verification.
Value in
- 0
- 1
Indicates whether the Transaction is reserved and the action that will be taken as a result.
0- No reserve.
The shipping fee pertaining to this transaction.
Whether a signature should be captured during this Transaction.
- You can set this field if you want the terminal to take a signature for the Transaction.
- The API also sets this field automatically if you associate a signature to the Transaction by creating a 'terminalTxnDatas' resource.
0- Not captured.1- Captured.
Value in
- 0
- 1
The amount of the total sum of this Transaction that is made up of tax. This field is specified as an integer in cents.
The identifier of the terminal that processed this Transaction. The identifier is taken from the terminal system and varies in format according to the type of terminal. This field is stored as a text string and must be between 0 and 50 characters long.
Capabilities of the terminal device.
1- Key entry only terminal.2- Can read magnetic stripe.3- Integrated circuit reader.4- Can detect contactless payment.
Value in
- 1
- 2
- 3
- 4
The total amount of this Transaction. This field is specified as an integer in cents.
Whether the card was swiped at an unattended terminal during this Transaction. This field is set to '0' by default.
0- Attended terminal.1- Unattended terminal.
Value in
- 0
- 1
The status of the Transaction.
0- Pending.1- Approved. Payments can be voided or cancelled.2- Failed.3- Captured. Payments can be refunded.4- Settled. Payments can be refunded.5- Returned. Payments have been successfully refunded.
Value in
- 0
- 1
- 2
- 3
- 4
- 5
The first line of the address associated with this Transaction. This field is stored as a text string and must be between 1 and 500 characters long.
The second line of the address associated with this Transaction. This field is stored as a text string and must be between 1 and 500 characters long.
The name of the city in the address associated with this Transaction. This field is stored as a text string and must be between 1 and 500 characters long.
The U.S. state or Canadian province relevant to the address provided here. If the location is within the U.S. and Canada, specify the 2-character postal abbreviation for the state. If the location is outside of the U.S. and Canada, provide the full state name. This field is stored as a text string and must be between 2 and 100 characters long.
-
AK- Alaska (US) -
AR- Arkansas (US) -
AL- Alabama (US) -
AZ- Arizona (US) -
CA- California (US) -
CO- Colorado (US) -
CT- Connecticut (US) -
DE- Delaware (US) -
FL- Florida (US) -
GA- Georgia (US) -
HI- Hawaii (US) -
IA- Iowa (US) -
ID- Idaho (US) -
IL- Illinois (US) -
IN- Indiana (US) -
KY- Kentucky (US) -
KS- Kansas (US) -
LA- Louisiana (US) -
MA- Massachusetts (US) -
MD- Maryland (US) -
ME- Maine (US) -
MI- Michigan (US) -
MN- Minnesota (US) -
MO- Missouri (US) -
MS- Mississippi (US) -
MT- Montana (US) -
NC- North Carolina (US) -
ND- North Dakota (US) -
NE- Nebraska (US) -
NH- New Hampshire (US) -
NJ- New Jersey (US) -
NM- New Mexico (US) -
NV- Nevada (US) -
NY- New York (US) -
OH- Ohio (US) -
OK- Oklahoma (US) -
OR- Oregon (US) -
PA- Pennsylvania (US) -
RI- Rhode Island (US) -
SC- South Carolina (US) -
SD- South Dakota (US) -
TN- Tennessee (US) -
TX- Texas (US) -
UT- Utah (US) -
VA- Virginia (US) -
VT- Vermont (US) -
WA- Washington (US) -
WI- Wisconsin (US) -
WV- West Virginia (US) -
WY- Wyoming (US)
-
AB- Alberta (CAN) -
BC- British Columbia (CAN) -
MB- Manitoba (CAN) -
ON- Ontario (CAN) -
NS- Nova Scotia (CAN) -
NB- New Brunswick (CAN) -
NL- Newfoundland and Labrador (CAN) -
NT- Northwest Territories (CAN) -
NU- Nunavut (CAN) -
PE- Prince Edward Island (CAN) -
QC- Quebec (CAN) -
SK- Saskatchewan (CAN) -
YT- Yukon (CAN)
The ZIP code in the address associated with this Transaction. This field is stored as a text string and must be between 1 and 20 characters long.
The country associated with this transaction, valid values for this field are the 3-letter ISO code for the country.
Value in
- "ABW"
- "AFG"
- "AGO"
- "AIA"
- "ALA"
- "ALB"
- "AND"
- "ARE"
- "ARG"
- "ARM"
- "ASM"
- "ATA"
- "ATF"
- "ATG"
- "AUS"
- "AUT"
- "AZE"
- "BDI"
- "BEL"
- "BEN"
- "BES"
- "BFA"
- "BGD"
- "BGR"
- "BHR"
- "BHS"
- "BIH"
- "BLM"
- "BLR"
- "BLZ"
- "BMU"
- "BOL"
- "BRA"
- "BRB"
- "BRN"
- "BTN"
- "BVT"
- "BWA"
- "CAF"
- "CAN"
- "CCK"
- "CHE"
- "CHL"
- "CHN"
- "CIV"
- "CMR"
- "COD"
- "COG"
- "COK"
- "COL"
- "COM"
- "CPV"
- "CRI"
- "CUB"
- "CUW"
- "CXR"
- "CYM"
- "CYP"
- "CZE"
- "DEU"
- "DJI"
- "DMA"
- "DNK"
- "DOM"
- "DZA"
- "ECU"
- "EGY"
- "ERI"
- "ESH"
- "ESP"
- "EST"
- "ETH"
- "FIN"
- "FJI"
- "FLK"
- "FRA"
- "FRO"
- "FSM"
- "GAB"
- "GBR"
- "GEO"
- "GGY"
- "GHA"
- "GIB"
- "GIN"
- "GLP"
- "GMB"
- "GNB"
- "GNQ"
- "GRC"
- "GRD"
- "GRL"
- "GTM"
- "GUF"
- "GUM"
- "GUY"
- "HKG"
- "HMD"
- "HND"
- "HRV"
- "HTI"
- "HUN"
- "IDN"
- "IMN"
- "IND"
- "IOT"
- "IRL"
- "IRN"
- "IRQ"
- "ISL"
- "ISR"
- "ITA"
- "JAM"
- "JEY"
- "JOR"
- "JPN"
- "KAZ"
- "KEN"
- "KGZ"
- "KHM"
- "KIR"
- "KNA"
- "KOR"
- "KWT"
- "LAO"
- "LBN"
- "LBR"
- "LBY"
- "LCA"
- "LIE"
- "LKA"
- "LSO"
- "LTU"
- "LUX"
- "LVA"
- "MAC"
- "MAF"
- "MAR"
- "MCO"
- "MDA"
- "MDG"
- "MDV"
- "MEX"
- "MHL"
- "MKD"
- "MLI"
- "MLT"
- "MMR"
- "MNE"
- "MNG"
- "MNP"
- "MOZ"
- "MRT"
- "MSR"
- "MTQ"
- "MUS"
- "MWI"
- "MYS"
- "MYT"
- "NAM"
- "NCL"
- "NER"
- "NFK"
- "NGA"
- "NIC"
- "NIU"
- "NLD"
- "NOR"
- "NPL"
- "NRU"
- "NZL"
- "OMN"
- "PAK"
- "PAN"
- "PCN"
- "PER"
- "PHL"
- "PLW"
- "PNG"
- "POL"
- "PRI"
- "PRK"
- "PRT"
- "PRY"
- "PSE"
- "PYF"
- "QAT"
- "REU"
- "ROU"
- "RUS"
- "RWA"
- "SAU"
- "SDN"
- "SEN"
- "SGP"
- "SGS"
- "SHN"
- "SJM"
- "SLB"
- "SLE"
- "SLV"
- "SMR"
- "SOM"
- "SPM"
- "SRB"
- "SSD"
- "STP"
- "SUR"
- "SVK"
- "SVN"
- "SWE"
- "SWZ"
- "SXM"
- "SYC"
- "SYR"
- "TCA"
- "TCD"
- "TGO"
- "THA"
- "TJK"
- "TKL"
- "TKM"
- "TLS"
- "TON"
- "TTO"
- "TUN"
- "TUR"
- "TUV"
- "TWN"
- "TZA"
- "UGA"
- "UKR"
- "UMI"
- "URY"
- "USA"
- "UZB"
- "VAT"
- "VCT"
- "VEN"
- "VGB"
- "VIR"
- "VNM"
- "VUT"
- "WLF"
- "WSM"
- "XXK"
- "YEM"
- "ZAF"
- "ZMB"
- "ZWE"
The phone number associated with this Transaction. This field is stored as a text string and must be between 10 and 15 characters long.
Whether this resource is marked as inactive.
0- Active1- Inactive
Value in
- 0
- 1
Whether this resource is marked as frozen.
0- Not Frozen1- Frozen
Value in
- 0
- 1
Response Body
application/json
application/json
curl -X POST "https://example.com/terminalTxns" \ -H "Content-Type: application/json" \ -d '{ "binType": "DEBIT", "expiration": "1023", "forterminalTxn": "forterminalTxn", "origin": 1, "platform": "VCORE", "pos": 0, "receipt": "noReceipt", "tid": "Terminal ID", "traceNumber": 853202, "txn": "related txn", "token": "124f2d0efab0bcda46f2118d688bbf97", "paymentNumber": 7, "paymentMethod": 2, "type": 1, "tip": 0, "originatingApp": "originatingApp", "OEMTTxnRefNumber": "TxnRefNumber", "posApplicationId": "15668", "posApplicationName": "XML Test Example", "posApplicationVersion": "1.00", "customerReferenceNumber": "123456", "gatewayTransactionId": "486689252", "customerTicketNumber": "123456", "authCode": "authorization code", "authDate": 20160120, "cashback": 0, "clientIp": "Client IP address", "company": "company1", "currency": "USD", "fundingCurrency": "USD", "cvvStatus": "notPresent", "description": "description1", "discount": 0, "duty": 0, "email": "john.johnson@example.com", "swiped": 1, "entryMode": 1, "fee": 0, "first": "John", "last": "Doe", "merchant": "t1_mer_64415e89a919c1566a2b49b", "mid": "4445061378323", "middle": "M", "order": "orderId", "pin": 0, "reserved": 0, "shipping": 0, "signature": 0, "tax": 0, "terminal": "identifier of terminal", "terminalCapability": 1, "total": 8000, "unattended": 0, "status": 1, "address1": "address1", "address2": "address2", "city": "city1", "state": "AB", "zip": "ZIP code", "country": "CAN", "phone": "9999888888", "inactive": 0, "frozen": 0 }'{ "response": { "data": [ { "id": "t1_ttx_67c76e07ebc6fbbbd476ee0", "created": "2025-03-04 14:40:26.0000", "modified": "2025-03-04 16:17:59.9960", "creator": "t1_log_62fd0aa37c3d8ec3a9dcea0", "modifier": "t1_log_62fd0aa37c3d8ec3a9dcea0", "ipCreated": "3.90.49.108", "ipModified": "3.90.49.108", "merchant": "t1_mer_64415e89a919c1566a2b49b", "mid": "4445061378323", "txn": "", "type": 4, "expiration": "0623", "currency": "CAD", "fundingCurrency": "CAD", "fee": 0, "platform": "VCORE", "authDate": 20160120, "authCode": "", "order": "", "description": "", "traceNumber": 853202, "discount": 0, "shipping": 0, "duty": 0, "terminal": "", "terminalCapability": 1, "entryMode": 1, "origin": 1, "tax": 0, "total": 8000, "cashback": 0, "authorization": "422301", "approved": 8000, "cvv": 0, "cvvStatus": "notPresent", "swiped": 0, "emv": 0, "signature": 0, "pin": 0, "unattended": 0, "pos": 0, "receipt": "noReceipt", "clientIp": "", "first": "", "middle": "", "last": "", "company": "", "email": "", "address1": "", "address2": "", "city": "", "state": "AB", "zip": "", "country": "CAN", "phone": "", "status": 1, "reserved": 0, "checkStage": "", "inactive": 0, "frozen": 0, "tid": "", "forterminalTxn": "", "token": "124f2d0efab0bcda46f2118d688bbf97", "binType": "CREDIT", "tip": 0, "paymentNumber": 7, "paymentMethod": 2, "originatingApp": "", "OEMTTxnRefNumber": "", "posApplicationId": "15668", "posApplicationName": "XML Test Example", "posApplicationVersion": "1.00", "customerReferenceNumber": "123456", "gatewayTransactionId": "486689252", "customerTicketNumber": "123456", "cardNetworkTransactionId": "250630144026744", "omnitoken": "4445223322990007", "convenienceFee": 0, "surcharge": 0, "softPosDeviceTypeIndicator": "", "terminalClassificationCode": "", "softPosId": "", "hsaFsaCardIndicator": 0, "gatewayTerminalId": "11", "descriptor": "", "cardNetworkBankNetReferenceNumber": "", "cardNetworkBankNetSettlementDate": "1123" } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}getTerminalTxns GET
Query a TerminalTxn, which holds all of the information to a related final transaction and is used to reconcile with the actual, final transaction.
getTerminalTxnResultsId GET
Querying a terminalTxnResults resource represents the result of a Transaction from a processor, which may be approved, declined, or raise an error.
