# VyCheckoutSessionRequest

## Properties

| Field             | Type                                                                                    | Description                                                                                                                                                                                                                                    | Required |
| ----------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| LineItems         | [VyLineItemRequest](/sdk-reference/c-sdk-v3/object-references/pay/vylineitemrequest.md) |                                                                                                                                                                                                                                                | ✗        |
| SuccessUrl        | string                                                                                  | The URL where your user will be directed in case of successful checkout. (URLs must begin with http or https)                                                                                                                                  | ✗        |
| CancelUrl         | string                                                                                  | The URL where your user will be directed in case they decide to cancel the payment. (URLs must begin with http or https)                                                                                                                       | ✗        |
| Mode              | string                                                                                  | Only \*\*payment\*\* mode is allowed.                                                                                                                                                                                                          | ✗        |
| ExpiresAt         | DateTime                                                                                | The date-time at which the Checkout Session will expire. It can be set to expire anytime between 30 minutes to 24 hours after it's created. By default, it expires 24 hours after creation. This field accepts a date-time in ISO-8601 format. | ✗        |
| ClientReferenceId | string                                                                                  | A distinctive identifier for the Checkout Session. This might be a customer ID, cart ID, or something similar, and can be utilized to match the session with your internal systems.                                                            | ✗        |
| Customer          | [VyCustomerRequest](/sdk-reference/c-sdk-v3/object-references/pay/vycustomerrequest.md) |                                                                                                                                                                                                                                                | ✗        |

## References

**Operation**

* [CheckoutSession](/sdk-reference/c-sdk-v3/function-references/pay/checkout/checkoutsession.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sdk.venly.io/sdk-reference/c-sdk-v3/object-references/pay/vycheckoutsessionrequest.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
