---
agentTools:
  projectIndex: https://zafepay.readme.io/llms.txt
---

# Delete single payment buyer

Single Payment Buyers that already have some paid installment cannot be deleted.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Onlypays",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.staging.zafepay.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/integration/single_payment_buyers/{single_payment_buyer_id}": {
      "delete": {
        "summary": "Delete single payment buyer",
        "description": "Single Payment Buyers that already have some paid installment cannot be deleted.",
        "operationId": "delete-single-payment-buyer",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "Header to access api endpoints (Check the authentication section).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"id\": \"ff012f32-2b4e-4087-9fd8-7f1ba57670d5\",\n        \"buyer\": {\n            \"id\": \"19c95bbc-f9be-4c7a-aec8-1d9f9478dd04\",\n            \"created_at\": \"2023-10-10T17:56:26\",\n            \"email\": \"b@gmail.com\",\n            \"external_id\": \"customer002\",\n            \"name\": \"B Smith\",\n            \"updated_at\": \"2023-10-10T17:56:26\"\n        },\n        \"created_at\": \"2023-10-11T19:13:43\",\n        \"external_id\": \"sp001\",\n        \"extra_fields\": {\n            \"Age\": \"26\"\n        },\n        \"installment\": null,\n        \"single_payment_id\": \"5d58d855-09ee-4087-bba3-3a000d36c1ea\",\n        \"status\": \"active\",\n        \"updated_at\": \"2023-10-11T19:16:34\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "ff012f32-2b4e-4087-9fd8-7f1ba57670d5"
                        },
                        "buyer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "example": "19c95bbc-f9be-4c7a-aec8-1d9f9478dd04"
                            },
                            "created_at": {
                              "type": "string",
                              "example": "2023-10-10T17:56:26"
                            },
                            "email": {
                              "type": "string",
                              "example": "b@gmail.com"
                            },
                            "external_id": {
                              "type": "string",
                              "example": "customer002"
                            },
                            "name": {
                              "type": "string",
                              "example": "B Smith"
                            },
                            "updated_at": {
                              "type": "string",
                              "example": "2023-10-10T17:56:26"
                            }
                          }
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2023-10-11T19:13:43"
                        },
                        "external_id": {
                          "type": "string",
                          "example": "sp001"
                        },
                        "extra_fields": {
                          "type": "object",
                          "properties": {
                            "Age": {
                              "type": "string",
                              "example": "26"
                            }
                          }
                        },
                        "installment": {},
                        "single_payment_id": {
                          "type": "string",
                          "example": "5d58d855-09ee-4087-bba3-3a000d36c1ea"
                        },
                        "status": {
                          "type": "string",
                          "example": "active"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2023-10-11T19:16:34"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "64c97d0ad3b2f2002d150a5d:6526f3c2ea23e1000b4f34e8"
}
```