deleteCustomersCustomerCardsId
Delete a customer source
Details
- Method:
DELETE - Path:
/v1/customers/{customer}/cards/{id} - Operation ID:
DeleteCustomersCustomerCardsId
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('deleteCustomersCustomerCardsId', {
# Add required parameters here
})