Reverses a ReceivedDebit and creates a DebitReversal object.
Parameters
- received_
debitstringRequired The ReceivedDebit to reverse.
- metadataobject
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.
Returns
Returns a DebitReversal object.
{ "id": "debrev_1MtkMLLkdIwHu7ixIcVctOKK", "object": "treasury.debit_reversal", "amount": 1000, "created": 1680755021, "currency": "usd", "financial_account": "fa_1MtkMLLkdIwHu7ixrkGP4bqB", "hosted_regulatory_receipt_url": "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xTTJKVGtMa2RJd0h1N2l4KM6SuaEGMgaqNYp8YbE6NpNWYhI1PSbr_jlZwdPHUJHYBRG6-5T1Bmpq4GkpUhVvzLMDWZWkMVIveXHgiVwLUgpMM4Jx8w", "linked_flows": null, "livemode": false, "metadata": {}, "network": "ach", "received_debit": "rd_1MtkMLLkdIwHu7ixoiUFN4qd", "status": "processing", "status_transitions": { "completed_at": null }, "transaction": "trxn_1MtkMLLkdIwHu7ix2BG3LwWW"}Retrieves a DebitReversal object.
Parameters
No parameters.
Returns
Returns a DebitReversal object.
{ "id": "debrev_1MtkMLLkdIwHu7ixIcVctOKK", "object": "treasury.debit_reversal", "amount": 1000, "created": 1680755021, "currency": "usd", "financial_account": "fa_1MtkMLLkdIwHu7ixrkGP4bqB", "hosted_regulatory_receipt_url": "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xTTJKVGtMa2RJd0h1N2l4KM6SuaEGMgaqNYp8YbE6NpNWYhI1PSbr_jlZwdPHUJHYBRG6-5T1Bmpq4GkpUhVvzLMDWZWkMVIveXHgiVwLUgpMM4Jx8w", "linked_flows": null, "livemode": false, "metadata": {}, "network": "ach", "received_debit": "rd_1MtkMLLkdIwHu7ixoiUFN4qd", "status": "processing", "status_transitions": { "completed_at": null }, "transaction": "trxn_1MtkMLLkdIwHu7ix2BG3LwWW"}Returns a list of DebitReversals.
Parameters
- financial_
accountstring Returns objects associated with this FinancialAccount.
- received_
debitstring Only return DebitReversals for the ReceivedDebit ID.
- resolutionenum
Only return DebitReversals for a given resolution.
Possible enum valueslostDebitReversal was lost, and no Transactions will be created.
wonDebitReversal was won, and a crediting Transaction will be created.
- statusenum
Only return DebitReversals for a given status.
Possible enum valuescanceledThe DebitReversal has been canceled before it has been sent to the network and no funds have been returned to the account. (Currently not supported).
completedThe network has provided a resolution for the DebitReversal. If won, a crediting Transaction is created.
processingThe DebitReversal starting state.
More parameters
- ending_
beforestring - limitinteger
- starting_
afterstring
Returns
A dictionary with a data property that contains an array of up to limit DebitReversals, starting after DebitReversal starting_. Each entry in the array is a separate DebitReversal object. If no more DebitReversals are available, the resulting array will be empty.
{ "object": "list", "url": "/v1/treasury/debit_reversals", "has_more": false, "data": [ { "id": "debrev_1MtkMLLkdIwHu7ixIcVctOKK", "object": "treasury.debit_reversal", "amount": 1000, "created": 1680755021, "currency": "usd", "financial_account": "fa_1MtkMLLkdIwHu7ixrkGP4bqB", "hosted_regulatory_receipt_url": "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xTTJKVGtMa2RJd0h1N2l4KM6SuaEGMgaqNYp8YbE6NpNWYhI1PSbr_jlZwdPHUJHYBRG6-5T1Bmpq4GkpUhVvzLMDWZWkMVIveXHgiVwLUgpMM4Jx8w", "linked_flows": null, "livemode": false, "metadata": {}, "network": "ach", "received_debit": "rd_1MtkMLLkdIwHu7ixoiUFN4qd", "status": "processing", "status_transitions": { "completed_at": null }, "transaction": "trxn_1MtkMLLkdIwHu7ix2BG3LwWW" } ]}A Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe. For example, you can create a Payment Record to model a payment made on a different payment processor, in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or more Payment Attempt Records, which represent individual attempts made on a payment network.
- GET/
A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe. Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment Record can have guaranteed funds.