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

deleteCouponsCoupon

Delete a coupon

Details

  • Method: DELETE
  • Path: /v1/coupons/{coupon}
  • Operation ID: DeleteCouponsCoupon

Parameters

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

Response Schema

{
  "description": "",
  "properties": {
    "deleted": {
      "description": "Always true for a deleted object",
      "enum": [
        true
      ],
      "type": "boolean"
    },
    "id": {
      "description": "Unique identifier for the object.",
      "maxLength": 5000,
      "type": "string"
    },
    "object": {
      "description": "String representing the object's type. Objects of the same type share the same value.",
      "enum": [
        "coupon"
      ],
      "type": "string"
    }
  },
  "required": [
    "deleted",
    "id",
    "object"
  ],
  "title": "DeletedCoupon",
  "type": "object",
  "x-expandableFields": [],
  "x-resourceId": "deleted_coupon"
}

Usage

from ocp_agent import OCPAgent

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

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