# List payment transaction(s) List the transaction(s) for a particular payment Endpoint: GET /payment-sessions/{paymentSessionId}/transactions Version: 1.1.0 Security: secretApiKeyAuth ## Path parameters: - `paymentSessionId` (string, required) Payment Id to list transactions for ## Header parameters: - `Account` (string) The linked accountId (use this when operating on payments related to a linked account) Example: "ac_3fe8398f-8cdb-43a3-9be2-806c4f84c327" ## Query parameters: - `ascending` (boolean) Control the order (newest or oldest) in which the transactions are returned. false will arrange the results with newest first, whereas true shows oldest first. The default is false. - `limit` (integer) Control how many items are return in a given page The max limit we allow is 50. The default is 10. Example: 10 - `startsAfter` (string) A token to identify the item to start querying after. This is most commonly used to get the next page of results after a previous response did not return all items, due to the imposed limit. The value of the paginationToken field from that response should be supplied here, to retrieve the next page of results for that timestamp range. Example: "txn_01FCTS1XMKH9FF43CAFA4CXT3P_01FCTS1XMKH9FF43CAFA4CXT3P" ## Response 200 fields (application/json): - `items` (array) - `items.id` (string) The unique identifier for the transaction Example: "txn_01FCTS1XMKH9FF43CAFA4CXT3P_01FCTS1XMKH9FF43CAFA4CXT3P" - `items.paymentSessionId` (string) The unique paymentSessionId that this transaction relates to Example: "ps_01FCTS1XMKH9FF43CAFA4CXT3P" - `items.amount` (integer) The amount of the transaction in minor digits Example: 250 - `items.currency` (string) The ISO currency code Example: "GBP" - `items.type` (string) Enum: "Authorization", "Void", "Capture", "Refund", "Chargeback", "ChargebackReversal" - `items.status` (string) Enum: "Pending", "Failed", "Succeeded" - `items.refundedAmount` (integer,null) The amount of the transaction that has been refunded, in minor digits. Example: 50 - `items.platformFee` (integer,null) Only supplied for 'capture' transactions. The amount of the capture that will be taken and applied to the platform account, in minor digits. Example: 50 - `items.platformFeeRefundedAmount` (integer,null) Only supplied for 'capture' transactions. The amount of the capture that has been refunded to the platform account, in minor digits. Example: 50 - `items.reason` (string,null) An optional reason to describe this transaction. Typically used for refunds whereby the reason for the refund is recorded. Example: "Requested by the customer" - `items.captureType` (string,null) Only supplied for 'capture' transactions. The type of capture. Typically only used for payments that support multi-capture. Once Final, any remaining uncaptured amount will be marked as void within 7 days. Enum: "Final", "NotFinal" - `items.paymentMethod` (object,null) - `items.paymentMethod.tokenizedDetails` (object,null) The details of any tokenized payment method used - `items.paymentMethod.tokenizedDetails.id` (string) The Id of the tokenized payment method Example: "pmt_01G0EYVFR02KBBVE2YWQ8AKMGJ" - `items.paymentMethod.tokenizedDetails.stored` (boolean) Flag to indicate whether or not the tokenized payment method was stored (against the customer) Example: true - `items.paymentMethod.card` (object,null) Details of the card used - `items.paymentMethod.card.scheme` (string) Enum: "Visa", "Mastercard", "Amex" - `items.paymentMethod.card.last4` (string) The last 4 digits of the card used Example: "4242" - `items.paymentMethod.wallet` (object,null) Details of the wallet used (Google Pay / Apple Pay) - `items.paymentMethod.billingAddress` (object,null) - `items.paymentMethod.billingAddress.firstName` (string) The first name of the customer Example: "Nathan" - `items.paymentMethod.billingAddress.lastName` (string) The last name of the customer Example: "Jones" - `items.paymentMethod.billingAddress.lineOne` (string) First line of the address Example: "123 Test Street" - `items.paymentMethod.billingAddress.lineTwo` (string) Second line of the address Example: "456 Lane" - `items.paymentMethod.billingAddress.city` (string) The address city/town Example: "Manchester" - `items.paymentMethod.billingAddress.country` (string, required) The two-character ISO country code Example: "GB" - `items.paymentMethod.billingAddress.postalCode` (string, required) The postal code/zip of the address Example: "SP4 7DE" - `items.paymentMethod.billingAddress.region` (string,null) The state/county/province/region Required if the address is in the US/Canada and must be a 2-character ISO state/province code Example: "NY" - `items.paymentMethod.checks` (object,null) - `items.paymentMethod.checks.avsResponseCode` (string,null) The response from Address Verification Service (AVS) that determines the match or partial match of the customer's billing address. Possible values: - A - Partial Match (street address matches, postal/zip code does not match) - B - Partial Match (street address matches, postal/zip code not verified) - C - No Match (street address and postal/zip code not verified) - D - Full Match (street address and postal/zip code match) - F - Full Match (street address and postal/zip code match) - G - Not Supported (address information not verified) - I - No Match (address information not verified) - M - Full Match (street address and postal/zip code match) - N - No Match (neither street address not postal/zip code match) - P - Partial Match (postal/zip code matches, street address not verified) - R - System Unavailable (unable to perform verification) - S - Not Supported (AVS currently not supported by issuer) - U - System Unavailable (address information not verified due to no data from issuer) - W - Partial Match (postal/zip code matches, street address does not match) - X - Full Match (street address and postal/zip code match) - Y - Full Match (street address and postal/zip code match) - Z - Partial Match (postal/zip code matches, street address does not match) Example: "Y" - `items.paymentMethod.checks.cvvResponseCode` (string,null) The response from the check on the Card Verification Value (CVV/CVV2/CVC) Possible values: - M - Match (Visa and MC) - Y - Match (Amex) - N - No Match - P - Not Processed - S - Should be on card - U - Issuer does not participate Example: "M" - `items.splitPaymentDetail` (object,null) - `items.inPersonDetail` (object,null) - `items.inPersonDetail.terminalDetail` (object) - `items.inPersonDetail.terminalDetail.id` (string) The ID of the in-person terminal the payment was processed through Example: "tml_01FCTS1XMKH9FF43CAFA4CXT3P" - `items.createdTimestamp` (integer) The epoch timestamp (seconds) when the transaction was initiated Example: 1470989538 - `items.lastUpdatedTimestamp` (integer) The epoch timestamp (seconds) when the transaction was last updated Example: 1470989538 - `items.processingFee` (integer,null) This field is now deprecated. Please use the /balance-transactions endpoint to see the fees paid on these transactions. The processing fee that was taken for this transaction. Example: 7 - `paginationToken` (string,null) A token to use for getting the next page of results - send the same request with this value in the 'paginationToken' query parameter. This field is null when there are no further items to return Example: "txn_01FCTS1XMKH9FF43CAFA4CXT3P_01FCTS1XMKH9FF43CAFA4CXT3P" ## Response 400 fields (application/json): - `requestId` (string) Example: "b83f2653-06d7-44a9-a548-5825e8186004" - `code` (string) Example: "400" - `errors` (array) - `errors.message` (string) Example: "Required property 'amount' not found in JSON" ## Response 500 fields (application/json): - `requestId` (string) Example: "b83f2653-06d7-44a9-a548-5825e8186004" - `code` (string) Example: "400" - `errors` (array) - `errors.message` (string) Example: "Required property 'amount' not found in JSON"