Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit f46ad7b

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 4cef8cd + 55d102e commit f46ad7b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Installation
1313
$ composer require marcortola/cuentica
1414
```
1515

16-
Usage
16+
Usage examples
1717
------------
1818
```php
1919
use 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
```
5163
Read the Cuéntica API documentation [here](https://apidocs.cuentica.com/versions/latest_release/).
5264

0 commit comments

Comments
 (0)