Menu
Get Transaction
Fetch a transaction
/transactions/{transaction_id}Use it in a workflow
- Add a step and choose the Recurly connector.
- Pick the Get Transaction action (under transaction).
- Fill in the fields below, then reference the result from later steps as
{{getTransaction.response.data}}.
Request
Path parameters
transaction_idstringrequiredTransaction ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
Response
Returns 200 with an object. Read it in later steps with {{getTransaction.response.data.<field>}}.
idstringobjectstringuuidstringThe UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
original_transaction_idstringIf this transaction is a refund (`type=refund`), this will be the ID of the original transaction on the invoice being refunded.
accountobjectidstringobjectstringcodestringThe unique identifier of the account.
emailstring (email)The email address used for communicating with this customer.
first_namestringlast_namestringcompanystringparent_account_idstringbill_tostringdunning_campaign_idstringUnique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.
initiatorstringMust be sent for one-time transactions in order to provide context on which entity is submitting the transaction to ensure proper fraud checks are observed, such as 3DS. If the customer is in session, send `customer`. If this is a merchant initiated one-time transaction, send `merchant`.
One ofcustomermerchant
invoiceobjectidstringobjectstringnumberstringbusiness_entity_idstringUnique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled.
typestringOne ofchargecreditlegacy
statestringOne ofopenpendingprocessingpast_duepaidclosedfailedvoidedDefault "all"
merchant_reason_codestringThis conditional parameter is useful for merchants in specific industries who need to submit one-time Merchant Initiated transactions in specific cases. Not all gateways support these methods, but will support a generic one-time Merchant Initiated transaction. Only use this if the initiator value is "merchant". Otherwise, it will be ignored. - Incremental: Send `incremental` with an additional purchase if the original authorization amount is not sufficient to cover the costs of your service or product. For example, if the customer adds goods or services or there are additional expenses. - No Show: Send `no_show` if you charge customers a fee due to an agreed-upon cancellation policy in your industry. - Resubmission: Send `resubmission` if you need to attempt collection on a declined transaction. You may also use the force collection behavior which has the same effect. - Service Extension: Send `service_extension` if you are in a service industry and the customer has increased/extended their service in some way. For example: adding a day onto a car rental agreement. - Split Shipment: Send `split_shipment` if you sell physical product and need to split up a shipment into multiple transactions when the customer is no longer in session. - Top Up: Send `top_up` if you process one-time transactions based on a pre-arranged agreement with your customer where there is a pre-arranged account balance that needs maintaining. For example, if the customer has agreed to maintain an account balance of 30.00 and their current balance is 20.00, the MIT amount would be at least 10.00 to meet that 30.00 threshold.
One ofincrementalno_showresubmissionservice_extensionsplit_shipmenttop_upDefault "none"
voided_by_invoiceobjectidstringobjectstringnumberstringbusiness_entity_idstringUnique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled.
typestringOne ofchargecreditlegacy
statestringOne ofopenpendingprocessingpast_duepaidclosedfailedvoidedDefault "all"
subscription_idsarray<string>If the transaction is charging or refunding for one or more subscriptions, these are their IDs.
typestring- `authorization` – verifies billing information and places a hold on money in the customer's account. - `capture` – captures funds held by an authorization and completes a purchase. - `purchase` – combines the authorization and capture in one transaction. - `refund` – returns all or a portion of the money collected in a previous transaction to the customer. - `verify` – a $0 or $1 transaction used to verify billing information which is immediately voided.
One ofauthorizationcapturepurchaserefundverify
originstringDescribes how the transaction was triggered.
One ofapichargebackexternal_recoveryforce_collecthppmerchantrecurly_adminrecurlyjsrecurringrefunded_externallytransparenttoken_apiapi_force_collectapi_sub_changeapi_verify_cardrefund_balanceamazon_v2_ipn
currencystring3-letter ISO 4217 currency code.
descriptionstringThe description that gets sent to the gateway.
amountnumber (float)Total transaction amount sent to the payment gateway.
statusstringThe current transaction status. Note that the status may change, e.g. a `pending` transaction may become `declined` or `success` may later become `void`.
One ofchargebackdeclinederrorpendingprocessingscheduledsuccessvoid
successbooleanDid this transaction complete successfully?
backup_payment_method_usedbooleanIndicates if the transaction was completed using a backup payment
refundedbooleanIndicates if part or all of this transaction was refunded.
billing_addressobjectfirst_namestringlast_namestringcollection_methodstringThe method by which the payment was collected.
One ofautomaticmanual
payment_methodobjectobjectstringOne ofbacsamazonamazon_billing_agreementapple_payapple_pay_merchant_tokenbank_account_infobraintree_apple_paycheckcredit_cardeftgateway_tokengoogle_paygoogle_pay_device_paniban_bank_accountmoney_orderotherpaypalpaypal_billing_agreementrokusepadirectdebitvenmowire_transferbraintree_v_zeroboletocash_appupi_autopaypix_automaticomercadopagoklarnabraintree_google_paystripe_link
card_typestringVisa, MasterCard, American Express, Discover, JCB, etc.
One ofAmerican ExpressDankortDiners ClubDiscoverELOForbrugsforeningenHipercardJCBLaserMaestroMasterCardTest CardUnion PayUnknownVisaTarjeta Naranja
first_sixstringCredit card number's first six digits.
last_fourstringCredit card number's last four digits. Will refer to bank account if payment method is ACH.
last_twostringThe IBAN bank account's last two digits.
exp_monthintegerExpiration month.
exp_yearintegerExpiration year.
gateway_tokenstringA token used in place of a credit card in order to perform transactions.
cc_bin_countrystringThe 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known.
funding_sourcestringThe funding source of the card, if known.
One ofcreditdebitchargeprepaiddeferred_debit
gateway_codestringAn identifier for a specific payment gateway.
gateway_attributesobject1 fieldsGateway specific attributes associated with this PaymentMethod
card_network_preferencestringRepresents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
One ofBancontactCartesBancairesDankortMasterCardVisa
billing_agreement_idstringBilling Agreement identifier. Only present for Amazon or Paypal payment methods.
name_on_accountstringThe name associated with the bank account.
account_typestringThe bank account type. Only present for ACH payment methods.
One ofcheckingsavings
routing_numberstringThe bank account's routing number. Only present for ACH payment methods.
routing_number_bankstringThe bank name of this routing number.
usernamestringUsername of the associated payment method. Currently only associated with Venmo.
ip_address_v4stringIP address provided when the billing information was collected: - When the customer enters billing information into the Recurly.js or Hosted Payment Pages, Recurly records the IP address. - When the merchant enters billing information using the API, the merchant may provide an IP address. - When the merchant enters billing information using the UI, no IP address is recorded.
ip_address_countrystringstatus_codestringstatus_messagestringFor declined (`success=false`) transactions, the message displayed to the merchant.
customer_messagestringFor declined (`success=false`) transactions, the message displayed to the customer.
customer_message_localestringpayment_gatewayobjectidstringobjectstringtypestringnamestringgateway_messagestringTransaction message from the payment gateway.
gateway_referencestringTransaction reference number from the payment gateway.
gateway_approval_codestringgateway_response_codestringgateway_response_timenumber (float)Time, in seconds, for gateway to process the transaction.
gateway_response_valuesobjectThe values in this field will vary from gateway to gateway.
cvv_checkstringWhen processed, result from checking the CVV/CVC value on the transaction.
One ofDIMNPSUX
avs_checkstringWhen processed, result from checking the overall AVS on the transaction.
One ofABCDEFGHIJKLMNOPQRSTUVWXYZ
created_atstring (date-time)updated_atstring (date-time)voided_atstring (date-time){
"id": "string",
"object": "string",
"uuid": "string",
"original_transaction_id": "string",
"account": {
"id": "string",
"object": "string",
"code": "string",
"email": "name@example.com",
"first_name": "string",
"last_name": "string",
"company": "string",
"parent_account_id": "string",
"bill_to": "string",
"dunning_campaign_id": "string"
},
"initiator": "customer",
"invoice": {
"id": "string",
"object": "string",
"number": "string",
"business_entity_id": "string",
"type": "charge",
"state": "all"
},
"merchant_reason_code": "none",
"voided_by_invoice": {
"id": "string",
"object": "string",
"number": "string",
"business_entity_id": "string",
"type": "charge",
"state": "all"
},
"subscription_ids": [
"string"
],
"type": "authorization",
"origin": "api"
}
Need more? See the Recurly guide for connection setup and behaviour shared by every action.