This will allow you to retrieve the information related to a particular payment transaction in Kartra.
TypeParametersValues
POSTcmd*get_transaction_details
POSTtransaction_id*integer

* Required fields Here is an example:

'actions' => [
    '0' => [
        'cmd' => 'get_transaction_details',
        'transaction_id' => 99432
    ]
]

Here are the results returned by the request:

ParametersValues
transaction_detailsString (JSON encoded string containing the details of the payment transaction)
  JSON parameters:
For sale transactionsValues
transaction_idinteger A unique numeric identifier for the transaction id.
lead_first_namestring The lead first name at the moment of purchase.
lead_last_namestring The lead last name at the moment of purchase.
lead_emailstring The lead email at the moment of purchase.
lead_idinteger A unique numeric identifier for the lead id.
lead_usernamestring The lead username.
lead_countrystring The lead country at the moment of purchase.
lead_country_code_2string The lead two letter country code at the moment of purchase.
lead_country_code_3string The lead three letter country code at the moment of purchase.
lead_statestring The lead state at the moment of purchase.
lead_phone_country_codestring The lead phone country code at the moment of purchase.
lead_phone_numberstring The lead phone number at the moment of purchase.
lead_addressstring The lead address at the moment of purchase.
lead_citystring The lead city at the moment of purchase.
lead_zipstring The lead zip at the moment of purchase.
lead_zipstring The lead zip at the moment of purchase.
product_namestring The product name at the moment of purchase.
product_idinteger The product id linked to the transaction.
product_price_pointinteger The product price point linked to the transaction.
transaction_full_amountfloat The final paid amount on this specific transaction.
transaction_quantity  integer The product quantity.
transaction_affiliatestring Username of the affiliate, "N/A" if none.
transaction_jvstring Username of the jv, "N/A" if none.
transaction_dateyyyy-mm-dd hh:mm:ss Transaction date EST.
transaction_typestring The transaction type. Possible values: 'sale'
transaction_parent_idinteger The id of the parent transaction (in the case of sale it is 0)
transaction_subscription_idstring A unique identifier for the subscription id (PayPal transactions will return PayPal subscription id. If there is no recurring payments this will be "N/A").
transaction_internal_subscription_idinteger A unique numeric identifier for the subscription id(if there is no recurring payments this will be "N/A").
transaction_subscription_pay_number integer The payment number of the subscription related to the transaction, if any. If not the value will be "N/A"
transaction_discountfloat If any discount coupon was applied, the amount in dollars deducted from the original price. "N/A" if none.
transaction_taxfloat The amount of sales tax or VAT. "N/A" if none.
transaction_base_amountfloat The base price for the transaction (for trial this will be the base price of the initial transaction).
transaction_shippingfloat The shipping cost.
transaction_last_4_card_digitsinteger The last 4 digits of the used card (‘N/A’ if PayPal)
original_idinteger In case of a payment subscription, the order ID of the first transaction within the subscription. In this case it will be the same as the transaction_id since it is a first payment.
vendor_tracking_id_1string Vendor’s tracking ID 1 if the sale was generated from a tracking link.
vendor_tracking_id_2string Vendor’s tracking ID 2 if the sale was generated from a tracking link.
vendor_tracking_link string Vendor’s tracking link name.
trialinteger 1 or 0, depending on whether trial is activated or not.
trial_period integer The trial period in days.
trial_amount float The trial amount.
rebill_circleinteger Days left for the next payment. Present only for recurring subscription payments.
installmentsinteger The number of installments for the subscription. Present only for recurring subscription payments with finite number of installments.
frequency string The frequency of recurrence. Possible values ('every_year', 'every_2_years'). Present only for recurring subscription payments with price point type recurrent.
payments_leftinteger Number of upcoming payments until the end of the subscription. 9999 if “cancelled by customer”. Present only for recurring subscription payments.
shipping_first_namestring Lead’s shipping first name. "N/A" if none.
shipping_last_namestring Lead’s shipping last name. "N/A" if none.
shipping_addressstring Lead’s shipping address. "N/A" if none.
shipping_citystring Lead’s shipping city. "N/A" if none.
shipping_zipstring Lead’s shipping zip. "N/A" if none.
shipping_countrystring Lead’s shipping country. "N/A" if none.
shipping_statestring Lead’s shipping state. "N/A" if none.
payment_processor_type string The payment processor type: “PayPal”, “Braintree”, “Stripe”, “Authorize.net”
  JSON parameters:
For refund/chargeback/partial refund transactionsValues
transaction_idinteger A unique numeric identifier for the transaction id.
lead_first_namestring The lead first name at the moment of purchase.
lead_last_namestring The lead last name at the moment of purchase.
lead_emailstring The lead email at the moment of purchase.
lead_idinteger A unique numeric identifier for the lead id.
lead_usernamestring The lead username.
lead_countrystring The lead country at the moment of purchase.
lead_country_code_2string The lead two letter country code at the moment of purchase.
lead_country_code_3string The lead three letter country code at the moment of purchase.
lead_statestring The lead state at the moment of purchase.
lead_phone_country_codestring The lead phone country code at the moment of purchase.
lead_phone_numberstring The lead phone number at the moment of purchase.
lead_addressstring The lead address at the moment of purchase.
lead_citystring The lead city at the moment of purchase.
lead_zipstring The lead zip at the moment of purchase.
product_namestring The product name at the moment of purchase.
product_idinteger The product id linked to the transaction.
product_price_pointinteger The product price point linked to the transaction.
transaction_full_amountfloat The final paid amount on this specific transaction.
transaction_quantity  integer The product quantity. Not present in cancellations.
transaction_affiliatestring Username of the affiliate, "N/A" if none.
transaction_jvstring Username of the jv, "N/A" if none.
transaction_dateyyyy-mm-dd hh:mm:ss Transaction date EST.
transaction_typestring The transaction type. Possible values: 'refund', 'chargeback', 'partial_refund'
transaction_parent_idinteger The id of the parent transaction
transaction_subscription_idstring A unique identifier for the subscription id (PayPal transactions will return PayPal subscription id. If there is no recurring payments this will be 0).
transaction_internal_subscription_idinteger A unique numeric identifier for the subscription id(if there is no recurring payments this will be 0).
transaction_subscription_pay_number integer The payment number of the subscription related to the transaction, if any.
transaction_discountfloat If any discount coupon was applied, the amount in dollars deducted from the original price. "N/A" if none.
transaction_taxfloat The amount of sales tax or VAT. "N/A" if none.
transaction_base_amountfloat The base price for the transaction (for trial this will be the base price of the initial transaction).
transaction_shippingfloat The shipping cost.
original_idinteger In case of a payment subscription, the order ID of the first transaction within the subscription. In this case it will be the same as the transaction_id since it is a first payment.
vendor_tracking_id_1string Vendor’s tracking ID 1 if the sale was generated from a tracking link.
vendor_tracking_id_2string Vendor’s tracking ID 2 if the sale was generated from a tracking link.
vendor_tracking_link string Vendor’s tracking link name.
shipping_first_namestring Lead’s shipping first name. "N/A" if none.
shipping_last_namestring Lead’s shipping last name. "N/A" if none.
shipping_addressstring Lead’s shipping address. "N/A" if none.
shipping_citystring Lead’s shipping city. "N/A" if none.
shipping_zipstring Lead’s shipping zip. "N/A" if none.
shipping_countrystring Lead’s shipping country. "N/A" if none.
shipping_statestring Lead’s shipping state. "N/A" if none.
payment_processor_type string The payment processor type: “PayPal”, “Braintree”, “Stripe”, “Authorize.net”
  JSON parameters:
For rebill transactionsValues
transaction_idinteger A unique numeric identifier for the transaction id.
lead_first_namestring The lead first name at the moment of purchase.
lead_last_namestring The lead last name at the moment of purchase.
lead_emailstring The lead email at the moment of purchase.
lead_idinteger A unique numeric identifier for the lead id.
lead_usernamestring The lead username.
lead_countrystring The lead country at the moment of purchase.
lead_country_code_2string The lead two letter country code at the moment of purchase.
lead_country_code_3string The lead three letter country code at the moment of purchase.
lead_statestring The lead state at the moment of purchase.
lead_phone_country_codestring The lead phone country code at the moment of purchase.
lead_phone_numberstring The lead phone number at the moment of purchase.
lead_addressstring The lead address at the moment of purchase.
lead_citystring The lead city at the moment of purchase.
lead_zipstring The lead zip at the moment of purchase.
product_namestring The product name at the moment of purchase.
product_idinteger The product id linked to the transaction.
product_price_pointinteger The product price point linked to the transaction.
transaction_full_amountfloat The final paid amount on this specific transaction.
transaction_quantity  integer The product quantity. Not present in cancellations.
transaction_affiliatestring Username of the affiliate, "N/A" if none.
transaction_jvstring Username of the jv, "N/A" if none.
transaction_dateyyyy-mm-dd hh:mm:ss Transaction date EST.
transaction_typestring The transaction type. Possible values: 'rebill'
transaction_parent_idinteger The id of the parent transaction (in the case of refunds/chargebacks)
transaction_subscription_idstring A unique identifier for the subscription id (PayPal transactions will return PayPal subscription id. If there is no recurring payments this will be 0).
transaction_internal_subscription_idinteger A unique numeric identifier for the subscription id(if there is no recurring payments this will be 0).
transaction_subscription_pay_number integer The payment number of the subscription related to the transaction.
transaction_discountfloat If any discount coupon was applied, the amount in dollars deducted from the original price. "N/A" if none.
transaction_taxfloat The amount of sales tax or VAT. "N/A" if none.
transaction_base_amountfloat The base price for the transaction (for trial this will be the base price of the initial transaction).
transaction_shippingfloat The shipping cost.
original_idinteger In case of a payment subscription, the order ID of the first transaction within the subscription. In this case it will be the same as the transaction_id since it is a first payment.
vendor_tracking_id_1string Vendor’s tracking ID 1 if the sale was generated from a tracking link.
vendor_tracking_id_2string Vendor’s tracking ID 2 if the sale was generated from a tracking link.
vendor_tracking_link string Vendor’s tracking link name.
shipping_first_namestring Lead’s shipping first name. "N/A" if none.
shipping_last_namestring Lead’s shipping last name. "N/A" if none.
shipping_addressstring Lead’s shipping address. "N/A" if none.
shipping_citystring Lead’s shipping city. "N/A" if none.
shipping_zipstring Lead’s shipping zip. "N/A" if none.
shipping_countrystring Lead’s shipping country. "N/A" if none.
shipping_statestring Lead’s shipping state. "N/A" if none.
rebill_circleinteger Days left for the next payment.
installmentsinteger The number of installments for the subscription. Present only for recurring subscription payments with finite number of installments.
frequencystring The frequency of recurrence. Possible values ('every_year', 'every_2_years'). Present only for recurring subscription payments with price point type recurrent.
payments_leftinteger Number of upcoming payments until the end of the subscription. 9999 if “cancelled by customer”.
payment_processor_type string The payment processor type: “PayPal”, “Braintree”, “Stripe”, “Authorize.net”
failed_reattempt_number integer If this is a reattempt of a failed transaction, the retry number
  JSON parameters:
For failed transactionsValues
transaction_idinteger A unique numeric identifier for the transaction id.
lead_first_namestring The lead first name at the moment of purchase.
lead_last_namestring The lead last name at the moment of purchase.
lead_emailstring The lead email at the moment of purchase.
lead_idinteger A unique numeric identifier for the lead id.
lead_usernamestring The lead username.
lead_countrystring The lead country at the moment of purchase.
lead_country_code_2string The lead two letter country code at the moment of purchase.
lead_country_code_3string The lead three letter country code at the moment of purchase.
lead_statestring The lead state at the moment of purchase.
lead_phone_country_codestring The lead phone country code at the moment of purchase.
lead_phone_numberstring The lead phone number at the moment of purchase.
lead_addressstring The lead address at the moment of purchase.
lead_citystring The lead city at the moment of purchase.
lead_zipstring The lead zip at the moment of purchase.
product_namestring The product name at the moment of purchase.
product_idinteger The product id linked to the transaction.
product_price_pointinteger The product price point linked to the transaction.
transaction_full_amountfloat The final paid amount on this specific transaction.
transaction_quantity  integer The product quantity.
transaction_affiliatestring Username of the affiliate, "N/A" if none.
transaction_jvstring Username of the jv, "N/A" if none.
transaction_dateyyyy-mm-dd hh:mm:ss Transaction date EST.
transaction_typestring The transaction type. Possible values: 'failed'
transaction_parent_idinteger The id of the parent transaction (in the case of refunds/chargebacks)
transaction_subscription_idstring A unique identifier for the subscription id (PayPal transactions will return PayPal subscription id. If there is no recurring payments this will be 0).
transaction_internal_subscription_idinteger A unique numeric identifier for the subscription id(if there is no recurring payments this will be 0).
transaction_subscription_pay_number integer The payment number of the subscription related to the transaction.
transaction_discountfloat If any discount coupon was applied, the amount in dollars deducted from the original price. "N/A" if none.
transaction_taxfloat The amount of sales tax or VAT. "N/A" if none.
transaction_base_amountfloat The base price for the transaction (for trial this will be the base price of the initial transaction).
transaction_shippingfloat The shipping cost.
original_idinteger In case of a payment subscription, the order ID of the first transaction within the subscription. In this case it will be the same as the transaction_id since it is a first payment.
vendor_tracking_id_1string Vendor’s tracking ID 1 if the sale was generated from a tracking link.
vendor_tracking_id_2string Vendor’s tracking ID 2 if the sale was generated from a tracking link.
vendor_tracking_link string Vendor’s tracking link name.
shipping_first_namestring Lead’s shipping first name. "N/A" if none.
shipping_last_namestring Lead’s shipping last name. "N/A" if none.
shipping_addressstring Lead’s shipping address. "N/A" if none.
shipping_citystring Lead’s shipping city. "N/A" if none.
shipping_zipstring Lead’s shipping zip. "N/A" if none.
shipping_countrystring Lead’s shipping country. "N/A" if none.
shipping_statestring Lead’s shipping state. "N/A" if none.
payment_processor_type string The payment processor type: “PayPal”, “Braintree”, “Stripe”, “Authorize.net”
failed_reattempt_number integer If this is a reattempt of a failed transaction, the retry number
  JSON parameters:
For cancellation transactionsValues
transaction_idinteger A unique numeric identifier for the transaction id.
lead_first_namestring The lead first name at the moment of purchase.
lead_last_namestring The lead last name at the moment of purchase.
lead_emailstring The lead email at the moment of purchase.
lead_idinteger A unique numeric identifier for the lead id.
lead_usernamestring The lead username.
lead_countrystring The lead country at the moment of purchase.
lead_country_code_2string The lead two letter country code at the moment of purchase.
lead_country_code_3string The lead three letter country code at the moment of purchase.
lead_statestring The lead state at the moment of purchase.
lead_phone_country_codestring The lead phone country code at the moment of purchase.
lead_phone_numberstring The lead phone number at the moment of purchase.
lead_addressstring The lead address at the moment of purchase.
lead_citystring The lead city at the moment of purchase.
lead_zipstring The lead zip at the moment of purchase.
lead_ipstring The lead ip at the moment of purchase.
product_namestring The product name at the moment of purchase.
product_idinteger The product id linked to the transaction.
product_price_pointinteger The product price point linked to the transaction.
transaction_dateyyyy-mm-dd hh:mm:ss Transaction date EST.
transaction_typestring The transaction type. Possible values: 'cancellation'
transaction_parent_idinteger The id of the parent transaction (in the case of refunds/chargebacks)
transaction_subscription_idstring A unique identifier for the subscription id (PayPal transactions will return PayPal subscription id. If there is no recurring payments this will be 0).
transaction_internal_subscription_idinteger A unique numeric identifier for the subscription id(if there is no recurring payments this will be 0).
transaction_last_4_card_digitsinteger The last 4 digits of the used card (‘N/A’ if PayPal)
original_idinteger In case of a payment subscription, the order ID of the first transaction within the subscription. In this case it will be the same as the transaction_id since it is a first payment.
vendor_tracking_id_1string Vendor’s tracking ID 1 if the sale was generated from a tracking link.
vendor_tracking_id_2string Vendor’s tracking ID 2 if the sale was generated from a tracking link.
vendor_tracking_link string Vendor’s tracking link name.
payment_processor_type string The payment processor type: “PayPal”, “Braintree”, “Stripe”, “Authorize.net”
  Example of the returned JSON array:
{
    "get_transaction_details":{
        "transaction_details":{
            "transaction_id":"99432",
            "lead_first_name":"Joe",
            "lead_last_name":"Smith",
            "lead_email":"joe.smith@domain.com",
            "lead_id":"4174086",
            "lead_username":"emailtest5e9476c0",
            "product_name":"Product kartra",
            "product_id":"5425",
            "product_price_point":"2",
            "transaction_full_amount":"4.00",
            "transaction_quantity":"1",
            "transaction_affiliate":"N/A",
            "transaction_jv":"N/A",
            "transaction_date":"2020-12-23 06:22:03",
            "transaction_type":"sale",
            "transaction_parent_id":"0",
            "transaction_subscription_id":"1670",
            "transaction_internal_subscription_id":"13670",
            "transaction_subscription_pay_number":"1",
            "transaction_last_4_card_digits":"1234",
            "original_id":"48111",
            "lead_country":"United States",
            "lead_country_code_2":"US",
            "lead_country_code_3":"USA",
            "lead_state":"New York",
            "lead_phone_country_code":"1",
            "lead_phone_number":"555-43556",
            "lead_address":"1st street",
            "lead_city":"New York",
            "lead_zip":"430022",
            "lead_ip":"127.0.0.1",
            "transaction_discount":"N/A",
            "transaction_tax":"N/A",
            "vendor_tracking_id_1":"N/A",
            "vendor_tracking_id_2":"N/A",
            "trial":"0",
            "trial_period":"N/A",
            "trial_amount":"N/A"
            "rebill_circle":"66",
            "installments":21,
            "payments_left":21,
            "shipping_first_name":"N/A",
            "shipping_last_name":"N/A",
            "shipping_address":"N/A",
            "shipping_city":"N/A",
            "shipping_zip":"N/A",
            "shipping_country":"N/A",
            "shipping_state":"N/A",
            "transaction_shipping":"0.00",
            "transaction_base_amount":"4.00",
            "vendor_tracking_link":"",
            "payment_processor_type":"Stripe"
        }
    }
}
Error Cases:
Type NumberMessageCause
247Transaction doesn't exist
  • The transaction you are trying to find does not exist in our database.
An example of an error message:
{
  "status": "Error",
  "message": "Transaction doesn't exist",
  "type": "247"
}