# $orderPage->apiUrl()

> Returns the url to the api endpoint

- Source: `src/Cms/Page.php#L192` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Page.php#L192>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$orderPage->apiUrl(bool $relative = false): string
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$relative` | `bool` | `false` |

## Return type

`string`

## Parent class

`Wagnerwagner\Merx\OrderPage` inherited from `Kirby\Cms\Page`
