code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.treasury.DebitReversal.create(
    received_debit="rd_1LSdrp2eZvKYlo2CsgwhiPIX",
  )
  '''Response {
    "id": "debrev_1LSdrp2eZvKYlo2CNrjqDeij",
    "object": "treasury.debit_reversal",
    "amount": 1000,
    "currency": "usd",
    "financial_account": "fa_1LSdro2eZvKYlo2CWVkCW1Pl",
    "hosted_regulatory_receipt_url": "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xMDMyRDgyZVp2S1lsbzJDKJn_qJcGMgYOBKehoKU6NpNo8ikrdX5QwuBSMAeRH_1Px31_1fLNkBZWyJ5dI3IrYAiez5qNV2o1A5FYIIITYSTdHuik-w",
    "linked_flows": null,
    "livemode": false,
    "metadata": {},
    "network": "ach",
    "received_debit": "rd_1LSdrp2eZvKYlo2CsgwhiPIX",
    "status": "processing",
    "status_transitions": {
      "completed_at": null
    },
    "transaction": "trxn_1LSdro2eZvKYlo2Cdo11cZOl"
  }'''
nl: Create a DebitReversalReverses a ReceivedDebit and creates a DebitReversal object.Parameters received_debit required The ReceivedDebit to reverse. metadata optional dictionary 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.ReturnsReturns a DebitReversal object