Transactions ( Txns)

putTxnsId

PUT
/txns/{id}

Update a Transaction. Transactions hold all of the information relating to a particular credit card transaction, including the merchant, token, subscription, customer and card information.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this transaction.

Header Parameters

token?string

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.

request-token?string

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

Update txns Request

Update txns Request

batch?string

If the Transaction is linked to a Batch, this field specifies the identifier of the Batch.

debtRepayment?txnsDebtRepayment

If this transaction is for debt repayment or not for debt repayment.

  • 0 - Transaction not for debt repayment.

  • 1 - Transaction for debt repayment.

Value in

  • 0
  • 1
processedSequence?integer

For entry creation and deletion job sequencing: the current processed sequence number for this transaction.

funded?integer

A date indicating when this Transaction was funded. This field is set automatically.

returned?string

The transaction has been returned by the receiver.

fundingEnabled?txnsFundingEnabled

Whether or not funding is enabled for this Transaction.

  • 0 - Disabled.

  • 1 - Enabled.

Value in

  • 0
  • 1
requestSequence?integer

For entry creation and deletion job sequencing: the current processed sequence number for this transaction.

token?string

The token of the Tokens resource this Transaction is associated with.

authTokenCustomer?string

The customer identifier from the AuthToken used during authentication.

channel?string

This field is stored as a text string and must be between 0 and 1000 characters long.

clientIp?string

The client ip address from which the Transaction was created. Valid values are any Ipv4 or Ipv6 address.

currency?|
feeConsumed?integer

When fee is set, this will track the amount of the fee that has been consumed. This field is specified as an integer in cents.

signature?terminalTxnsSignature

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
tmxSessionId?string

Threatmetrix session ID. Not for partner/referrer use.

firstTxn?string

For external recurring systems, this is the first transaction ID related to this recurring payment.

Response Body

application/json

application/json

curl -X PUT "https://example.com/txns/p1_txn_5a1ef5e55658af7cf012866" \  -H "Content-Type: application/json" \  -d '{    "id": "p1_txn_5a1ef5e55658af7cf012866",    "inactive": 1  }'
{  "response": {    "data": [      {        "id": "p1_txn_5a1ef5e55658af7cf010000",        "created": "2025-02-20 09:01:14.8325",        "modified": "2025-02-20 09:01:14.8325",        "creator": "p1_log_5a1ef5e55653ed720159d00",        "modifier": "p1_log_5a1ef5e55653ed720159d00",        "ipCreated": "8.8.8.8",        "ipModified": "8.8.8.8",        "merchant": "p1_mer_5a1ef5e55656a739a85da00",        "token": "e41272ec5464d9ec81cc85c854837400",        "payment": "g157b215cd94000",        "fortxn": "t1_txn_67b5f9801e463c908f453oo",        "fromtxn": "Reauthorize Transaction",        "batch": "p1_bth_5a1ef5e55655f49b141d313",        "subscription": "Identifier of Subscription",        "statement": "Statement ID",        "type": 1,        "expiration": "1123",        "serviceCode": "Code",        "funded": 1123,        "returned": "Transaction Returned",        "currency": "USD",        "fundingCurrency": "USD",        "currencyConversion": "customerAccepted",        "convenienceFee": 0,        "fee": 342,        "platform": "VANTIV",        "authDate": 20160120,        "authCode": "95834A",        "captured": "2025-02-19 13:28:42",        "settled": "2025-02-19 13:28:42",        "settledCurrency": "USD",        "settledTotal": 0,        "allowPartial": 0,        "order": "00b5f97feb5bc9bcbd9a92fz",        "description": "$10.00 to Bergstrom and Sons",        "descriptor": "illinois",        "traceNumber": 0,        "discount": 0,        "shipping": 0,        "duty": 0,        "terminal": "Terminal Identifier",        "terminalCapability": 1,        "entryMode": 1,        "origin": 2,        "mobile": 0,        "tax": 195,        "surcharge": 0,        "total": 20365,        "cashback": 0,        "authorization": "52703",        "originalApproved": 0,        "approved": 20365,        "authentication": "Authentication token",        "authenticationId": "Optional transaction ID",        "cvv": 0,        "cvvStatus": "notPresent",        "swiped": 0,        "emv": 0,        "signature": 0,        "pin": 1,        "pinEntryCapability": "unknown",        "unattended": 0,        "cofType": "single",        "copyReason": "resubmission",        "clientIp": "1.1.1.1",        "first": "Robert",        "middle": "John",        "last": "Johnson",        "company": "Company Name",        "email": "robert.johnson@example.com",        "address1": "123 Example St.",        "address2": "Suite 403",        "city": "New York",        "state": "NY",        "zip": "10001",        "country": "USA",        "phone": "1111111111",        "mid": "01170981",        "status": 0,        "refunded": 0,        "misused": 0,        "checkStage": "activation",        "unauthReason": "incomplete",        "authTokenCustomer": "Customer Identifier",        "channel": "",        "imported": 1,        "requestSequence": 1,        "processedSequence": 1,        "debtRepayment": 0,        "fundingEnabled": 0,        "fbo": "WORLDPAY_FBO1",        "txnsession": "t1_tss_67b000bfd6fa9af5775a3dc",        "reserved": 0,        "inactive": 1,        "frozen": 0,        "tip": 0,        "softPosId": "POS ID",        "softPosDeviceTypeIndicator": "Indicator",        "networkTokenIndicator": 0,        "pinlessDebitConversion": 0,        "submittedMethod": 3,        "processedMethod": 25      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}