code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.treasury.ReceivedCredit.TestHelpers.create(
    amount=1000,
    currency="usd",
    financial_account="fa_1LSdi72eZvKYlo2CAwKTB33F",
    network="ach",
  )
  '''Response {
    "id": "rc_1LSdi72eZvKYlo2CX3M5Bpl3",
    "object": "treasury.received_credit",
    "amount": 1000,
    "created": 1659518271,
    "currency": "usd",
    "description": "Stripe Test",
    "failure_code": null,
    "financial_account": "fa_1LSdi72eZvKYlo2CAwKTB33F",
    "hosted_regulatory_receipt_url": "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xMDMyRDgyZVp2S1lsbzJDKL_6qJcGMgYwhGXwARM6NpPX_oYm0NdRfmg4HF7gER7Hua24GXefNx5zWfk8CkG0CKVp64QeoSTZ8fN_tV6X1ggNfIQxRw",
    "initiating_payment_method_details": {
      "billing_details": {
        "address": {
          "city": null,
          "country": null,
          "line1": null,
          "line2": null,
          "postal_code": null,
          "state": null
        },
        "email": null,
        "name": "Jane Austen"
      },
      "type": "us_bank_account",
      "us_bank_account": {
        "bank_name": "STRIPE TEST BANK",
        "last4": "6789",
        "routing_number": "110000000"
      }
    },
    "linked_flows": {
      "credit_reversal": null,
      "issuing_authorization": null,
      "issuing_transaction": null,
      "source_flow": null,
      "source_flow_type": null
    },
    "livemode": false,
    "network": "ach",
    "reversal_details": {
      "deadline": 1659657600,
      "restricted_reason": null
    },
    "status": "succeeded",
    "transaction": "trxn_1LSdi72eZvKYlo2CQiyepd8w"
  }'''
nl: Test mode: Create a ReceivedCreditUse this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can’t directly create ReceivedCredits initiated by third parties.Parameters amount required Amount (in cents) to be transferred. currency required Three-letter ISO currency code, in lowercase. Must be a supported currency. financial_account required The FinancialAccount to send funds to. network required The rails used for the object.Possible enum valuesach us_domestic_wire  description optional An arbitrary string attached to the object. Often useful for displaying to users. initiating_payment_method_details optional dictionary Initiating payment method details for the object.Show child parametersReturnsA test mode ReceivedCredit object