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

postCustomersCustomerSourcesId

Update a specified source for a given customer.

Details

  • Method: POST
  • Path: /v1/customers/{customer}/sources/{id}
  • Operation ID: PostCustomersCustomerSourcesId

Parameters

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

Response Schema

{
  "anyOf": [
    {
      "$ref": "#/components/schemas/card"
    },
    {
      "$ref": "#/components/schemas/bank_account"
    },
    {
      "$ref": "#/components/schemas/source"
    }
  ]
}

Usage

from ocp_agent import OCPAgent

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

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