getCustomersCustomerSourcesId
Retrieve a specified source for a given customer.
Details
- Method:
GET - Path:
/v1/customers/{customer}/sources/{id} - Operation ID:
GetCustomersCustomerSourcesId
Parameters
{
"customer": {
"description": "",
"required": true,
"location": "path",
"type": "string"
},
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"required": false,
"location": "query",
"type": "array"
},
"id": {
"description": "",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"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
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('stripe')
# Call this tool
result = await agent.call_tool('getCustomersCustomerSourcesId', {
# Add required parameters here
})