# Sales

### API Endpoints:

<table data-card-size="large" data-view="cards" data-full-width="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4>List Sales <mark style="color:green;"><code>GET</code></mark></h4></td><td>Retrieves a list of all sales. You can apply filters to narrow down the results based on date, status, customer, and more.</td><td></td><td><a href="sales/list-sales">list-sales</a></td></tr><tr><td><h4>Fetch Sale <mark style="color:green;"><code>GET</code></mark></h4></td><td>Fetches details of a specific sale using the sale ID. This is useful for viewing complete sale details.</td><td></td><td><a href="sales/fetch-sale">fetch-sale</a></td></tr><tr><td><h4>Add Sale <mark style="color:purple;"><code>POST</code></mark></h4></td><td>Allows you to add a new sale record. Such as receipts, invoices, quotes</td><td></td><td><a href="sales/add-sale">add-sale</a></td></tr><tr><td><h4>Edit Sale <mark style="color:yellow;"><code>PUT</code></mark></h4></td><td>Edit details of an existing sale. This endpoint can be used to modify quantities, products, or prices in a sale that has not been finalized.</td><td></td><td><a href="sales/edit-sale">edit-sale</a></td></tr><tr><td><h4><strong>Update Sale Balance </strong><mark style="color:yellow;"><strong><code>PUT</code></strong></mark></h4></td><td>Updates the balance of a specific sale. This endpoint is typically used to apply payments made for a sale.</td><td></td><td><a href="sales/update-balance">update-balance</a></td></tr><tr><td><h4>Cancel Sale <mark style="color:yellow;"><code>PUT</code></mark></h4></td><td>Cancels a specific sale. This is irreversible and should be used with caution to ensure data integrity.</td><td></td><td><a href="sales/cancle-sale">cancle-sale</a></td></tr><tr><td><h4>Refund Sale <mark style="color:yellow;"><code>PUT</code></mark></h4></td><td>Sets a specific sale status to refunded. This is irreversible and should be used with caution to ensure data integrity.</td><td></td><td><a href="sales/refund-sale">refund-sale</a></td></tr></tbody></table>
