code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.treasury.CreditReversal.create(
    received_credit="rc_1LSdrp2eZvKYlo2C0tawQb1y",
  )
  '''Response {
    "id": "credrev_1LSdrp2eZvKYlo2CSJ0201zO",
    "object": "treasury.credit_reversal",
    "amount": 1000,
    "currency": "usd",
    "financial_account": "fa_1LSdro2eZvKYlo2CWVkCW1Pl",
    "hosted_regulatory_receipt_url": "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xMDMyRDgyZVp2S1lsbzJDKJn_qJcGMgYHS9NYj7Q6NpPuY0UuEPSTQxO3DPFGtDNDQjVNpIbZoX5kIkvqyeeJ5sfFJLxascVMn_jUgKJEg_H4rEb70g",
    "livemode": false,
    "metadata": {},
    "network": "ach",
    "received_credit": "rc_1LSdrp2eZvKYlo2C0tawQb1y",
    "status": "processing",
    "status_transitions": {
      "posted_at": null
    },
    "transaction": "trxn_1LSdro2eZvKYlo2Cdo11cZOl"
  }'''
nl: Create a CreditReversalReverses a ReceivedCredit and creates a CreditReversal object.Parameters received_credit required The ReceivedCredit 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 CreditReversal object