Open Context Protocol is live! 🚀 Read the launch post
deleteCustomersCustomerBankAccountsId

deleteCustomersCustomerBankAccountsId

Delete a customer source

Details

  • Method: DELETE
  • Path: /v1/customers/{customer}/bank_accounts/{id}
  • Operation ID: DeleteCustomersCustomerBankAccountsId

Parameters

{
  "customer": {
    "description": "",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "id": {
    "description": "",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "anyOf": [
    {
      "anyOf": [
        {
          "$ref": "#/components/schemas/account"
        },
        {
          "$ref": "#/components/schemas/bank_account"
        },
        {
          "$ref": "#/components/schemas/card"
        },
        {
          "$ref": "#/components/schemas/source"
        }
      ],
      "title": "Polymorphic",
      "x-resourceId": "payment_source",
      "x-stripeBypassValidation": true
    },
    {
      "anyOf": [
        {
          "$ref": "#/components/schemas/deleted_bank_account"
        },
        {
          "$ref": "#/components/schemas/deleted_card"
        }
      ],
      "title": "Polymorphic",
      "x-resourceId": "deleted_payment_source",
      "x-stripeBypassValidation": true
    }
  ]
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('stripe')

# Call this tool
result = await agent.call_tool('deleteCustomersCustomerBankAccountsId', {
    # Add required parameters here
})