This repository was archived by the owner on Aug 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Installation
1313$ composer require marcortola/cuentica
1414```
1515
16- Usage
16+ Usage examples
1717------------
1818``` php
1919use MarcOrtola\Cuentica\CuenticaClient;
@@ -28,6 +28,12 @@ $customer = $cuenticaClient->customer()->customer(1);
2828$customer->setCountryCode('US');
2929$cuenticaClient->customer()->update($customer);
3030
31+ // Delete a customer by ID.
32+ $cuenticaClient->customer()->delete(1);
33+
34+ // Search customers.
35+ $customers = $cuenticaClient->customer()->search('my query string', $pageSize, $page);
36+
3137// Create a customer (it's individual, but can be a company or a generic one).
3238$customer = new Individual(
3339 'My street',
@@ -47,6 +53,12 @@ $invoice = new Invoice(
4753 [new Charge(false, 103.88, 'other', 42133)]
4854);
4955$cuenticaClient->invoice()->create($invoice);
56+
57+ // Get invoice PDF contents.
58+ $pdfContents = $cuenticaClient->invoice()->pdf(1);
59+
60+ // Find an invoice by ID.
61+ $pdfContents = $cuenticaClient->invoice()->invoice(1);
5062```
5163Read the Cuéntica API documentation [ here] ( https://apidocs.cuentica.com/versions/latest_release/ ) .
5264
You can’t perform that action at this time.
0 commit comments