Skip to content

Commit

Permalink
fix: feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Ernst committed Aug 31, 2023
1 parent 16370c9 commit e0e9b3f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/documentation/50.php-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -645,13 +645,9 @@ $savedOrderCollection = $orderCollection->save();

### Adding order notes to an order

It is possible to add notes to an order. These notes are visible in the
backoffice. A note can be either a customer note or a webshop note. A webshop
note can be created in the admin panel of an e-commerce platform.
It is possible to add notes to an order. These notes are visible in the backoffice. A note can be either a customer note or a webshop note. A webshop note can be created in the admin panel of an e-commerce platform.

To add a note to an order, simply create
an `OrderNote` and add it to an `OrderNoteCollection`. Then, save the collection
to our API.
To add a note to an order, simply create an `OrderNote` and add it to an `OrderNoteCollection`. Then, save the collection to our API.

```php
use MyParcelNL\Sdk\src\Model\Fulfilment\OrderNote;
Expand All @@ -672,9 +668,7 @@ $savedOrderNoteCollection = $orderNoteCollection->save();
```

::: note
Note: The uuid of an order can be found in the response of the `save` method of
the `OrderCollection`. Therefore, you need to save the order first before you
can add notes to it.
Note: The uuid of an order can be found in the response of the `save` method of the `OrderCollection`. Therefore, you need to save the order first before you can add notes to it.
:::

### Setting up webhooks
Expand Down

0 comments on commit e0e9b3f

Please sign in to comment.