---
title: "$viva->orders->checkoutUrl()"
method: GET
path: "/Orders/checkoutUrl"
tags: ["Orders"]
---

# $viva->orders->checkoutUrl()

`GET /Orders/checkoutUrl`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/docs/Orders/checkoutUrl/get.ts> (a function with typed inputs; its response is checked against the schema)

Génère l'URL Smart Checkout pour un code d'ordre existant, sans appel API.

```php
$url = $viva->orders->checkoutUrl(orderCode: 1234567890);
// => 'https://demo.vivapayments.com/web/checkout?ref=1234567890'
```

## Query parameters

- `orderCode` integer, required

## Response `200`

`string` — URL de checkout

## Changes

- **2026-03-18** `b25ecb15a272`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/changes/Orders/checkoutUrl/get.md)

---

[API](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php.md) - [All operations](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/llms.txt) - [OpenAPI document](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/revisions/bcafd06ce584?raw)
