Skip to main content

Checkout Expiry Date

info

This field sets the date after which the checkout session will not be valid.

  • Maximum value: 24 hours after session creation.

Default:

  • 1 hour after session creation

Format: yyyy-MM-ddTHH:mm:ss.fffZ

Request Example

{
"amount": "48900",
"currency": "ISK",
"returnUrl": "https://your-ecommerce-website.com/straumur_redirect",
"reference": "9990QQAZ1221",
"expiresAt": "2023-03-15T12:00:00.000Z"
}

Request Field

FieldTypeRequiredDescriptionExampleMinMax
expiresAtDatetimeOptionalThe date the session expires in the following format: YYYY-MM-DD T hh:mm:ss.mmm Z. Default is 1 hour after session creation.2023-03-15T12:00:00.000ZDateTime.UtcNowDateTime.UtcNow + 24 hours