Glossary

Stripe Payment Attempt Record

A Stripe Payment Attempt Record is the record of one attempt to collect a payment, on Stripe or through another processor, with the amounts requested, authorized, guaranteed, failed, canceled and refunded on that attempt, and it belongs to a Payment Record that holds every attempt at the same payment.

Also called: PaymentAttemptRecord, payment_attempt_record, latest_payment_attempt_record, par_ ID, payment attempt

14-day free trial · card required · cancel anytime

Definition

Stripe’s API reference defines it in one sentence: “A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe.” Each attempt “tries to collect a fixed amount of money from a fixed customer and payment method.” Its ID starts with par_.

Attempts never stand alone. Each one belongs to a Payment Record (an ID starting with pr_), which Stripe calls “the record of a payment,” including “all attempts and outcomes associated with it.” If a card is declined twice and accepted on the third try, that is one Payment Record with three Payment Attempt Records. The Payment Record points at the newest one through latest_payment_attempt_record. The rule that keeps the money straight is short: “Only one attempt per Payment Record can have guaranteed funds.”

For most Stripe accounts, the Charge has been the object that tells you money was collected. The Payment Attempt Record does that job for payments where no Charge exists. Stripe Orchestration is the clearest case: Stripe creates “Payment Records and Payment Attempt Records instead of Charges for payments routed to other processors,” so the PaymentIntent’s latest_charge is null and the attempt record is the only per-attempt record there is.

Key points

  • +One Payment Attempt Record per attempt. Retries add new attempts to the same Payment Record, and only one attempt can have guaranteed funds.
  • +The amount fields split the requested amount by outcome: amount_authorized, amount_guaranteed, amount_failed, amount_canceled and amount_refunded.
  • +processor_details says who processed the attempt. reported_by says whether Stripe or you reported it (stripe or self).
  • +For an orchestrated PaymentIntent, Stripe generates a new attempt record every time you confirm it and links it as latest_payment_attempt_record.
  • +For payments processed on Stripe, processor_details.stripe.derived_balance_transactions lists the balance transaction IDs, so you can reconcile fees without retrieving a Charge.
  • +You list a payment’s attempts with GET /v1/payment_attempt_records and the required payment_record parameter.
  • +Each attempt can hold entries (initiated, authenticated, authorized, guaranteed, failed, canceled) that form an append-only log. Entries are limited to preview users.

Reading the amount fields

Every amount on a Payment Attempt Record is an object with a currency and a value in the minor unit, and each one answers a different question about the same attempt. Stripe’s definitions:

amount_requested is “The amount you initially requested for this payment.” amount_authorized is “The portion of the requested amount that has been authorized to be guaranteed by the payment provider.” amount_guaranteed is “The portion of the requested amount that has been guaranteed by the payment provider.” amount_failed is “The portion of the requested amount that failed to be collected,” and amount_canceled is the portion “canceled by the user, or that you no longer intend to collect.” amount_refunded is “The amount that has been refunded to the customer on this payment.”

Stripe’s own list example shows the pattern for a retry. The older attempt, par_123, has amount_requested 10000, amount_guaranteed 0 and amount_failed 10000. The newer one, par_124, has amount_requested 10000, amount_guaranteed 10000 and amount_failed 0. Read side by side, that is one 100.00 USD payment that failed once and then succeeded, not two payments.

The other fields give context. processor_details carries a type and the processor’s own reference (Stripe’s sample shows a custom processor with a payment_reference). payment_method_details describes what was debited. customer_presence is on_session or off_session, and reported_by is stripe or self. payment_record ties the attempt back to its parent.

Where Payment Attempt Records come from

There are two routes, and the reported_by field tells you which one created a given attempt.

Stripe creates them. With Orchestration on, every PaymentIntent gets a Payment Record whose ID stays the same for the PaymentIntent’s life, and Stripe’s sample payload describes latest_payment_attempt_record as “A record of the latest attempt, generated every time you confirm the PaymentIntent.” That holds whether the attempt was processed by Stripe or routed to another processor. For historical payments made with the Charges API, Stripe says to “use the Charge ID to retrieve the PaymentAttemptRecord.”

You report them. For payments taken entirely off Stripe, the Payment Records API lets you report the payment, and Stripe “automatically creates an associated PaymentAttemptRecord using the data provided.” A failed try is reported against the existing Payment Record, and a new try is reported as a new attempt on the same record. Stripe notes that “Retries can use the same or different payment method and processor.” Refunds are reported against the Payment Record too, and you can report several partial refunds until the full amount is refunded.

Stripe says Subscriptions (with Smart Retries) and invoices paid out of band use Payment Records as “the core primitive for tracking payment outcomes,” which is why failed off-Stripe attempts are worth reporting even though no money moved.

Why Stripe points Charge-based reporting at it

Two assumptions sit under a lot of Stripe reporting: every successful payment has a Charge, and every Charge has a balance transaction. Orchestration breaks both. Stripe’s routing guide says payment volume from other processors “won’t have Balance Transactions because funds don’t move through your Stripe account,” and its instruction for anyone affected is direct: “If you rely on Charges for any of your internal reporting or reconciliation, you must use Payment Attempt Records instead across all of your Stripe volume.” Note the last part. Routed payments have no Charge, so a report that mixes Charges and attempt records can double count or miss payments. One object for everything is the fix.

For the payments Stripe still processes, the attempt record also leads to the money. Retrieve the Payment Record or Payment Attempt Record with a preview API version, and processor_details.stripe.derived_balance_transactions holds “an unordered array of BalanceTransaction IDs.” Retrieve each one for fees and availability. Stripe adds: “You don’t need to retrieve the associated Charge.”

Three caveats from the same page. The Payment Record carries references for its latest attempt only, so earlier attempts have to be retrieved for their own. References can appear late: for bank debits when Stripe submits the payment, for asynchronous captures after the first success response. And historical payments may have none, because “An empty array doesn’t establish that a payment has no balance transaction.”

What it means for QuickBooks

A Payment Attempt Record is a processing record, not an accounting entry, and the mapping to QuickBooks follows from the guaranteed rule. A Payment Record is one sale. Its guaranteed attempt is the one that collected the money. Failed and canceled attempts are history: they explain why a payment took three tries, but nothing about them belongs in the books.

So for each Payment Record, book the guaranteed amount once, against the account for the processor in that attempt’s processor_details. If the attempt was processed by Stripe, the money is in your Stripe balance and flows through your Stripe clearing account and payouts as usual, with fees in its derived balance transactions. If another processor guaranteed it, the money settles through that processor, and the sale belongs in that processor’s clearing account. A later amount_refunded on the attempt is a refund to record against the same account.

The common mistake is booking per attempt. A payment declined on Stripe and accepted on Braintree has two attempt records and one sale. If a report or import counts attempt records, that payment shows up twice, once with nothing guaranteed. Filter on amount_guaranteed, or read attempts through their Payment Record, and the count comes out right.

Frequently asked questions

What is a Payment Attempt Record in Stripe?

It is the record of one attempt to collect a payment, on Stripe or through another processor. It holds the amounts requested, authorized, guaranteed, failed, canceled and refunded for that attempt, plus the processor and payment method used. Each one belongs to a Payment Record, which groups every attempt at the same payment. Its ID starts with par_.

What is the difference between a Payment Record and a Payment Attempt Record?

The Payment Record is the payment. The Payment Attempt Record is one try at collecting it. A payment declined twice and accepted on the third try has one Payment Record and three Payment Attempt Records. The Payment Record links the newest attempt as latest_payment_attempt_record, and Stripe allows only one attempt per Payment Record to have guaranteed funds.

Does a Payment Attempt Record replace the Stripe Charge?

For payments Stripe routes to another processor through Orchestration, yes: Stripe creates Payment Records and Payment Attempt Records instead of Charges, and latest_charge is null. Stripe tells businesses that rely on Charges for reporting or reconciliation to use Payment Attempt Records across all of their Stripe volume. Payments processed on Stripe still have Charges.

How do I find the fees for a payment from its Payment Attempt Record?

For a payment processed on Stripe, retrieve the Payment Record or Payment Attempt Record with a preview API version and read processor_details.stripe.derived_balance_transactions. It lists the balance transaction IDs, and each one has the fee. Payments processed by another processor have no Stripe balance transactions, so their fees come from that processor’s reports.

Should failed payment attempts be recorded in QuickBooks?

No. A failed or canceled attempt collected nothing, so there is nothing to book. Record the amount_guaranteed from the one guaranteed attempt on each Payment Record as the sale, and any amount_refunded on it as a refund. Counting attempt records instead of Payment Records is the usual way a retried payment ends up in the books twice.

What customers say about running Stripe through Acodei

Stripe Verified Partner BadgeIntuit QuickBooks
★★★★★
“If you're testing out all the different Stripe/QuickBooks integration apps right now, let me save you some time. This one is the best one by far.”
RyanOwner at Indie Music Academy
★★★★★
“Works well and is really helpful for massive transactions. The support is really fast and helpful. 100% recommended.”
AndresCo-founder and CEO at Kanguro Collections and Reinsurance

Related reading

More glossary terms

See the full glossary

Ready to try Acodei?

Connect Stripe to QuickBooks Online in minutes and let the fees, refunds, and payouts land where your accountant expects them.

14-day free trial · card required · cancel anytime