Welcome to Xendit’s latest documentation. For legacy content, access the previous documentation here or the previous API reference here.

Get Transaction

Prev Next
Get
/transactions/{transaction_id}

Request this endpoint to get single specific transaction details by transaction id. If you need to search by other parameters or to get multiple result, see list transactions.

Security
HTTP
Type Basic
Header parameters
for-user-id
string

The sub-account user-id that you want to make this transaction for.

This header is only used if you have access to xenPlatform. See xenPlatform for more information

Path parameters
transaction_id
stringRequired

Unique ID generated by Xendit for the particular transaction

Responses
200

Successful operation

getTransaction
{
  "id": "txn_13dd178d-41fa-40b7-8fd3-f83675d6f413",
  "product_id": "d290f1ee-6c54-4b01-90e6-d701748f0701",
  "type": "PAYMENT",
  "status": "SUCCESS",
  "channel_category": "PAYMENT",
  "channel_code": "ALFAMART",
  "reference_id": "ref23232",
  "account_identifier": null,
  "currency": "IDR",
  "amount": "1",
  "cashflow": "MONEY_IN",
  "business_id": "5fc9f5b246f820517e38c84d",
  "created": "2021-06-23T02:42:15.601Z",
  "updated": "2021-06-23T02:42:15.601Z"
}
Expand All
object
id
string

Unique ID generated by Xendit for the particular file

product_id
string

The product_id of transaction. Product id will have different prefix for each different product. You can use this id to match the transaction from this API to each product API.

type
string

The type of the transactions. Here are the descriptions:

  • DISBURSEMENT: The disbursement of money-out transaction.
  • PAYMENT: The payment that includes all variation of money-in transaction.
  • REMITTANCE_PAYOUT: The remittance pay-out transaction.
  • TRANSFER: The transfer transaction between xendit account. This can be transfer in or out.
  • REFUND: A refund transaction created to refund amount from money-in transaction
Valid values[ "DISBURSEMENT", "PAYMENT", "REMITTANCE_PAYOUT", "TRANSFER", "REFUND" ]
channel_code
string

The channel of the transaction that is used. See channel codes for the list of available per channel categories.

reference_id
string

A Reference ID from merchants to identify their request.

Min length1
Max length255
account_identifier
string | null

Account identifier of transaction. The format will be different from each channel. For example, on BANK channel it will be account number and on CARD it will be masked card number.

currency
string

Accepted currency in Xendit

Valid values[ "IDR", "PHP", "USD", "VND", "THB" ]
amount
string

The amount of transaction. The number of decimal place will be different for each currency according to ISO 4217.

net_amount
string

The net amount of transaction after it deducted with fee/vat.

cashflow
string

Representing whether the transaction is money in or money out For transfer, the transfer out side it will shows up as money out and on transfer in side in will shows up as money-in.

Available values are MONEY_IN for money in and MONEY_OUT for money out.

status
string

The status of the transaction. Here's the description:

  • PENDING: The transaction is still pending to be processed. This refers to money out-transaction when the amount is still on hold.
  • SUCCESS: The transaction is successfully sent for money-out or already arrives on money-in.
  • FAILED: The transaction failed to send/receive.
  • VOIDED: The money-in transaction is voided by customer.
  • REVERSED:The transaction is reversed by Xendit.
Valid values[ "PENDING", "SUCCESS", "FAILED", "VOIDED", "REVERSED" ]
channel_category
string

The channel category of the transaction to identify the source of the transaction. Here's the description:

  • DISBURSEMENT and REMITTANCE_PAYOUT: BANK and CASH
  • PAYMENT: CARDS, CARDLESS_CREDIT, DIRECT_DEBIT, EWALLET, PAYLATER, QR_CODE, RETAIL_OUTLET, VIRTUAL_ACCOUNT
  • TRANSFER: XENPLATFORM
Valid values[ "DISBURSEMENT", "REMITTANCE_PAYOUT", "PAYMENT", "TRANSFER" ]
business_id
string

Unique ID generated by Xendit for the particular file

created
string

Transaction created timestamp on UTC+0

updated
string

Transaction updated timestamp on UTC+0

fee
object (Accounts_Operation_API_FeeObject)
xendit_fee
string

The fee is still pending to be charged

value_added_tax
string

The fee is successfully charged

xendit_withholding_tax
string

The transaction failed and fee is cancelled

third_party_withholding_tax
string

The transaction is reversed and fee is reversed

status
string

The status of the transaction. Here's the description:

  • PENDING: The transaction is still pending to be processed. This refers to money out-transaction when the amount is still on hold.
  • SUCCESS: The transaction is successfully sent for money-out or already arrives on money-in.
  • FAILED: The transaction failed to send/receive.
  • VOIDED: The money-in transaction is voided by customer.
  • REVERSED:The transaction is reversed by Xendit.
Valid values[ "PENDING", "SUCCESS", "FAILED", "VOIDED", "REVERSED" ]
settlement_status
string

Status of the settlement.

  • PENDING: Transaction amount has not been settled to merchant's balance
  • SETTLED: Transaction has been settled to merchant's balance
Valid values[ "PENDING", "SETTLED" ]
estimated_settlement_time
string

Estimated settlement time will only apply to money-in transactions. For money-out transaction, value will be NULL Estimated settlement time in which transaction amount will be settled to merchant's balance.

404

The provided id does not exist. Please review the id and try again

object
error_code
string
Valid values[ "RATE_LIMIT_EXCEEDED" ]
message
string
errors
Array
OneOf
string
string
object
object