# checkoutSession

### Description

Initiate the checkout process for a single payment by calling this endpoint. Save the `id` and `url` from response body. The `id` parameter is the sessionId (Used when checking status of this checkout), and the `url` parameter is the checkout URL (You pass this to your end-user).

{% code overflow="wrap" %}

```javascript
public checkoutSession(reqParams: VyCheckoutSessionRequest) : VyPromise<VyCheckoutSessionDto>
```

{% endcode %}

{% tabs %}
{% tab title="Details" %}
**Parameters**

| reqParams | [VyCheckoutSessionRequest](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/pay/vycheckoutsessionrequest) | Request data for the operation |
| --------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------ |

**Returns**

VyPromise<[VyCheckoutSessionDto](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/pay/vycheckoutsessiondto)>
{% endtab %}
{% endtabs %}
