Delete Document


Sometimes, you'd want to delete notary request process. This endpoint would allow you to delete all notary transaction for that particular document.


Endpoint

Method URI Headers Example
GET /business/document/delete/{document_uuid} 'Bearer {api_token}' Bearer ljbVhIAhdrJLHvrSqzb6dzblvd78wGs5LGyB

{success} If the API has been authenticated and the document id has been.

Sample Response

{info} Possible responses are success, unauthenticated or fail.

Code 200

{
  "success": true,
  "message": "was successfully deleted and associated signers were also removed."
}

{danger} Error response Unauthenticated

Please check your API Key.

Code 401

{
    "error": true,
    "message": "Invalid token"
}

{danger} Error response Document Not found

Please check your API Key.

Code 422

{
  "error": true,
  "message": "Document ID not found / Document has already been notarized"
}

PHP Code Sample

    $client = new Client();
    $api_key = 'api_key';
    $url = 'https://production.onlinenotary.net/api/v1/business/document/delete/{document_uuid}';        
    $response = $client->request('GET', $url , 
        ['auth' => [
            null,
            $api_key
        ],
    ]);

Live Demo