Developer Center

DeleteInvoice

Deletes the specified invoice.

Method / Endpoint

DELETE/ {{API_URL}} Billing/DeleteInvoice/ {{ID}}

Request Parameters

Parameter Name Type Requirement Description
{{ID}} Integer Yes Invoice ID number

External Sample

curl --location --request DELETE 'https://example.com/api/Billing/DeleteInvoice/123' \
--header 'Apikey: [YOUR_API_KEY]'

Internal Sample

Helper::Load("Api");
try {
    $result = Api::Billing()->DeleteInvoice(123);
    print_r($result);
}
catch (Exception $e)
{
    echo 'Error: '.$e->getMessage();
}

Sample JSON Response

{
    "status": "successful"
}

Response Parameters

Parameter Name Type Description
status String Action Status "successful" or "error"
message String Error message if action status is "error"
UpdateInvoice CreateInvoiceItem

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top