Get Payment
GET /payments/{transaction_uuid}
Returns the details of an existing Payment.
Response Fields
uuid
string
The Transaction’s UUID.
Example value: trx_422f0f81-5001-4cce-a229-242d9ab9960a
code
string
The Transaction’s code.
Example value: TXNMW9PCWE
status
string
The Transaction’s status.
Example value: SUCCESSFUL
Other values: CREATED
, PENDING
, PROCESSING
,
SUCCESSFUL
, REFUNDED
, DISPUTED
,
FAILED
, CANCELED
, REVERSED
tenant
object
The ID of the Tenant that originated the transaction.
Example value:
{ "uuid": "ten_0521aadc-5fbd-4b3c-af0a-a4f4b8d6f20" }
type
string
The type of Transaction.
Example value: PAYMENT
creation_source
string
The creation source of the Transaction.
Example value: MERCHANT_PORTAL
amount
integer
The amount of money, in the smallest denomination of the currency indicated by currency, including the values after the decimal separator. For example, when currency is USD, amount is in cents. $10.00 USD is 1000.
Example value: 10000
variable_fee
integer
The variable fee amount for this transaction.
Example value: 300
fixed_fee
integer
The fixed fee amount for this transaction.
Example value: 100
total_fee
integer
The total fee amount charged for this transaction.
Example value: 400
net_amount
integer
The total net amount (total_amount minus total_fee) to be paid for this transaction
Example value: 9600
currency
object
The type of currency, in ISO 4217 format. See Currency for values. For example, the currency code for US dollars is USD.
Example value: {"code":"USD"}
description
string
The description of this transaction. Users may see this description (e.g., in email receipts DRUO sends on your behalf).
Example value: Insurance policy renewal - INV12324
remarks
string
funding_source
object
The ID of the account used to fund this transaction.
Example value:
{"uuid": "acc_7985e8a4-8f38-4eab-8b27-a5d1c6dbf340"}
statement_descriptor
string
Description that DRUO will report to institutions so that it appears on your customers’ statements. This request may or may not be honored by the institutions. Must contain at least one letter, and be between 4 and 22 characters.
Example value: NOVO BILLING* INV12324
primary_reference
string
An optional primary ID you can associate with the transaction for your own purposes (such as to associate the transaction with an entity ID in your own database). This value cannot exceed 40 characters.
Example value: ABC123
secondary_reference
string
An optional secondary ID you can associate with the transaction for your own purposes (such as to associate the transaction with an entity ID in your own database). This value cannot exceed 40 characters.
Example value: bj39fhow39fhqp3f0hfae4344
metadata
string
Set of key-value pairs that you can attach to an object. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long.
Example value: {"order_id": "6735"}
decline_reason
string
The reason behind a transaction being declined.
Example value: INSUFFICCIENT_FUNDS
auto_send_receipt
boolean
If true, the system should generate a receipt automatically to the preffered receipt method.
Example value: FALSE
due_date
string
Transaction due date
Example value: 2021-11-15
date_created_gmt
string
Transaction created date
Example value: 2021-11-15T23:23:38
date_updated_gmt
string
Transaction updated date
Example value: 2021-11-15T23:23:38
additional_recipients
array
Information of the corresponding transactions created for the additional recipients passed.
Example value:
[ { "tenant_id": "ten_82121783-2f4b-4f62-ad45-a32fbe4e86e7", "amount": "1000", "description": "Payout split by percentage", "uuid": "trx_d9c67ff8-8739-462a-9b6b-932d3805e2b3" }, { "tenant_id": "ten_35516d40-ca41-4fa3-885c-d13d0ccdae0a", "amount": "4000", "description": "Payout split by quantity first", "uuid": "trx_3668b659-3221-4b4b-8dc1-d4a8967fd3bf" }, { "tenant_id": "ten_35516d40-ca41-4fa3-885c-d13d0ccdae0a", "amount": "2000", "description": "Payout split by quantity second", "uuid": "trx_a38462e3-b9ec-4ea1-8657-6916b3905827" }, { "tenant_id": "ten_35516d40-ca41-4fa3-885c-d13d0ccdae0a", "amount": "2800", "description": "Remaining transaction for original merchant.", "uuid": "trx_7d054cd5-4bdf-4e0b-9bde-853959538131" } ]
curl --location 'https://api.druo.com/payments/trx_37935176-22fe-4a51-bcba-ee4a82235407' \ --header 'DRUO-Version: 2021-11-22' \ --header 'Authorization: Bearer ACCESS_TOKEN'
{ "payment": { "uuid": "trx_37935176-22fe-4a51-bcba-ee4a82235407", "code": "T3Y4I2QKWOW", "status": "SUCCESSFUL", "tenant": { "uuid": "ten_82121783-2f4b-4f62-ad45-a32fbe4e86e7" }, "type": "PAYMENT", "creation_source": "MERCHANT_PORTAL", "amount": 150000, "variable_fee": "3000", "fixed_fee": "0", "total_fee": "3000", "net_amount": "147000", "currency": { "code": "COP" }, "description": "Nequi Transaction with Juan", "remarks": null, "funding_source": { "uuid": "acc_f5f1cd79-5efe-4a21-b516-f586dc9105b7" }, "statement_descriptor": null, "primary_reference": "", "secondary_reference": "", "metadata": null, "decline_reason": null, "auto_send_receipt": "false", "due_date": "2023-04-30", "date_created_gmt": "2023-04-26T21:48:32.537Z", "date_updated_gmt": "2023-04-26T21:48:56.475Z" } }