Solar Proof API Documentation -Delete Customer

 

 

API > Customers > Delete Customer

POST http://localhost/apidata.php?api_key=17eca4408560ac218adef09fa710647ccde4&action=deletecustomer

Delete Customer.

Parameters
data (JSON Object) A JSON object containing the following keys:
  • apikey (string): Your API key.
  • action (string): "createcustomer"
  • pkcustomerid (integer): 79461
200 (Success) Returns
Message (string) { "Message": "Customer Deleted Permanently!", "CustomerId": "79461" }
Non-200 (Error) Returns

Details of the error:

code (string) The error code.
message (string) A description of the error.
Example Request

{
    "data": {
        "apikey": "17eca4408560ac218adef09fa710647ccde4",
        "action": "deletecustomer",
        "pkcustomerid": 79461,
    }
}
Example Response

                        {
                            "Message": "Customer Deleted Permanently!",
                            "CustomerId": "79461"
                        }