---
updatedAt: 2025-07-20T12:27:47.000Z
agentTools:
  projectIndex: https://rivhit-api.readme.io/llms.txt
---

# Customer.Delete

### Delete a Customer

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Detele a Customer",
    "version": "1.0.0"
  },
  "paths": {
    "/online/RivhitOnlineAPI.svc/Customer.Delete": {
      "post": {
        "summary": "Customer.Delete",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "api_token": {
                    "type": "string",
                    "format": "uuid",
                    "example": "0279BF82-CD57-49BA-837C-930F0E2EB805",
                    "description": "Rivhit Merchant API Identifier.\n\n**Format:** `UUID`\n**Default:** No\n",
                    "nullable": false,
                    "deprecated": false
                  },
                  "customer_id": {
                    "type": "integer",
                    "example": 0,
                    "description": "Rivhit Customer Identifier.\n\n**Range:** 0 to 999999999\n**Default:** No\n"
                  },
                  "request_reference": {
                    "type": "string",
                    "example": "abcdefg-&123456789",
                    "description": "The Customer Creation Request Reference.\n\n~ Use for future search with method - Status.LastRequest\n~ Should be unique value\n**Length:** 2GB\n**Default:** No\n",
                    "nullable": true,
                    "deprecated": false
                  }
                },
                "required": [
                  "api_token",
                  "customer_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success - Customer Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "integer",
                      "example": 0,
                      "description": "The Response Error/Status Number (0 = Success)"
                    },
                    "client_message": {
                      "type": "string",
                      "example": "",
                      "description": "The Client Error Message."
                    },
                    "debug_message": {
                      "type": "string",
                      "example": "",
                      "description": "The Response Error Message."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "delete_success": {
                          "type": "boolean",
                          "example": true,
                          "description": "Indicates if the Customer Deletion was Succsesful."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "error_code": 0,
                  "client_message": "",
                  "debug_message": "",
                  "data": {
                    "delete_success": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Request Error"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "integer",
                      "example": 500,
                      "description": "Error code of the response."
                    },
                    "client_message": {
                      "type": "string",
                      "example": "הלקוח אינו קיים",
                      "description": "The Client Error Message."
                    },
                    "debug_message": {
                      "type": "string",
                      "example": "-22 : CUSTOMER_NOT_EXISTS",
                      "description": "The Response Error Message."
                    },
                    "data": {
                      "type": "array",
                      "example": null,
                      "description": "Document Details"
                    }
                  }
                },
                "example": {
                  "error_code": 500,
                  "client_message": "הלקוח אינו קיים",
                  "debug_message": "-22 : CUSTOMER_NOT_EXISTS",
                  "data": null
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.rivhit.co.il/"
    }
  ]
}
```