POST
/
api
/
service
/
checkout
/
session
/
expire
JavaScript
import Ivy from '@getivy/node-sdk';

const client = new Ivy({
  apiKey: 'My API Key',
});

const response = await client.checkoutsession.expire({ id: 'id' });

console.log(response.id);
{
  "id": "<string>",
  "market": "AF",
  "availableMarkets": [
    "AF"
  ],
  "express": true,
  "paymentMode": "direct",
  "handshake": true,
  "guest": true,
  "disableBankSelection": true,
  "price": {
    "total": 1.01,
    "currency": "EUR",
    "subTotal": 123,
    "shipping": 123,
    "totalNet": 123,
    "vat": 123
  },
  "appId": "<string>",
  "merchantAppId": "<string>",
  "merchant": {
    "id": "<string>",
    "appId": "<string>",
    "address": {
      "firstName": "<string>",
      "lastName": "<string>",
      "line1": "<string>",
      "line2": "<string>",
      "region": "<string>",
      "city": "<string>",
      "zipCode": "<string>",
      "country": "AF"
    },
    "legalName": "<string>"
  },
  "lineItems": [
    {
      "name": "<string>",
      "referenceId": "<string>",
      "singleNet": 123,
      "singleVat": 123,
      "amount": 123,
      "quantity": 1,
      "image": "<string>",
      "category": "5045",
      "EAN": "<string>",
      "co2Grams": 1
    }
  ],
  "plugin": "<string>",
  "prefill": "<any>",
  "locale": "de",
  "required": {
    "phone": true
  },
  "offsetProject": "<string>",
  "expiresAt": 123,
  "created": 123,
  "impactOffsetProjects": [
    "<string>"
  ],
  "shopLogo": "<string>",
  "shopName": "<string>",
  "customer": {
    "id": "<string>"
  },
  "incentiveMode": "<string>",
  "shippingMethods": [
    "<any>"
  ],
  "selectedShippingMethodId": "<string>",
  "status": "open",
  "mandate": {
    "setup": false
  },
  "referenceId": "<string>",
  "displayId": "<string>",
  "metadata": {},
  "category": "<string>",
  "abortReason": "<string>",
  "billingAddress": {
    "firstName": "<string>",
    "lastName": "<string>",
    "line1": "<string>",
    "line2": "<string>",
    "region": "<string>",
    "city": "<string>",
    "zipCode": "<string>",
    "country": "AF"
  },
  "shippingAddress": {
    "firstName": "<string>",
    "lastName": "<string>",
    "line1": "<string>",
    "line2": "<string>",
    "region": "<string>",
    "city": "<string>",
    "zipCode": "<string>",
    "country": "AF"
  },
  "redirectUrl": "<string>",
  "successCallbackUrl": "<string>",
  "errorCallbackUrl": "<string>",
  "quoteCallbackUrl": "<string>",
  "completeCallbackUrl": "<string>",
  "createdAt": "<any>",
  "updatedAt": "<any>",
  "subaccountId": "<string>",
  "paymentSchemeSelection": "instant_preferred"
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json
id
string
required

The checkout session id to expire. By expiring a Checkout Session, users will not be able to access this Checkout Session anymore.

Response

200 - application/json

Returns the expired checkout session

id
string
required
price
object
required
appId
string
required
merchantAppId
string
required
merchant
object
required
lineItems
object[]
required
expiresAt
number
required
created
number
required
status
enum<string>
required
Available options:
open,
closed,
expired
referenceId
string
required
displayId
string
required
redirectUrl
string
required
successCallbackUrl
string
required
errorCallbackUrl
string
required
market
enum<string>
Available options:
AF,
AL,
DZ,
AS,
AD,
AO,
AI,
AQ,
AG,
AR,
AM,
AW,
AU,
AT,
AZ,
BS,
BH,
BD,
BB,
BY,
BE,
BZ,
BJ,
BM,
BT,
BO,
BA,
BW,
BV,
BR,
IO,
BN,
BG,
BF,
BI,
KH,
CM,
CA,
CV,
KY,
CF,
TD,
CL,
CN,
CX,
CC,
CO,
KM,
CG,
CD,
CK,
CR,
CI,
HR,
CU,
CY,
CZ,
DK,
DJ,
DM,
DO,
EC,
EG,
SV,
GQ,
ER,
EE,
ET,
FK,
FO,
FJ,
FI,
FR,
GF,
PF,
TF,
GA,
GM,
GE,
DE,
GH,
GI,
GR,
GL,
GD,
GP,
GU,
GT,
GN,
GW,
GY,
HT,
HM,
VA,
HN,
HK,
HU,
IS,
IN,
ID,
IR,
IQ,
IE,
IL,
IT,
JM,
JP,
JO,
KZ,
KE,
KI,
KP,
KR,
KW,
KG,
LA,
LV,
LB,
LS,
LR,
LY,
LI,
LT,
LU,
MO,
MG,
MW,
MY,
MV,
ML,
MT,
MH,
MQ,
MR,
MU,
YT,
MX,
FM,
MD,
MC,
MN,
MS,
MA,
MZ,
MM,
NA,
NR,
NP,
NL,
NC,
NZ,
NI,
NE,
NG,
NU,
NF,
MP,
MK,
NO,
OM,
PK,
PW,
PS,
PA,
PG,
PY,
PE,
PH,
PN,
PL,
PT,
PR,
QA,
RE,
RO,
RU,
RW,
SH,
KN,
LC,
PM,
VC,
WS,
SM,
ST,
SA,
SN,
SC,
SL,
SG,
SK,
SI,
SB,
SO,
ZA,
GS,
ES,
LK,
SD,
SR,
SJ,
SZ,
SE,
CH,
SY,
TW,
TJ,
TZ,
TH,
TL,
TG,
TK,
TO,
TT,
TN,
TR,
TM,
TC,
TV,
UG,
UA,
AE,
GB,
US,
UM,
UY,
UZ,
VU,
VE,
VN,
VG,
VI,
WF,
EH,
YE,
ZM,
ZW,
AX,
BQ,
CW,
GG,
IM,
JE,
ME,
BL,
MF,
RS,
SX,
SS,
XK
availableMarkets
enum<string>[]
express
boolean
paymentMode
enum<string>
Available options:
direct,
settlement
handshake
boolean
guest
boolean
disableBankSelection
boolean
plugin
string
prefill
any
locale
enum<string>
Available options:
de,
nl,
en,
fr,
es,
fi,
it,
pt,
sv,
pl,
sk,
lt
required
object
offsetProject
string
impactOffsetProjects
string[]
shopName
string
customer
object
incentiveMode
string
shippingMethods
any[]
selectedShippingMethodId
string
mandate
object
metadata
object
category
string
abortReason
string
billingAddress
object
shippingAddress
object
quoteCallbackUrl
string
completeCallbackUrl
string
createdAt
any
updatedAt
any
subaccountId
string
paymentSchemeSelection
enum<string>
Available options:
instant_preferred,
standard,
instant_only