Skip to navigation

Create secure PIN or wallet session

PIN_DISPLAY returns credentials for the issuer’s PIN display component (method STRIPE_ELEMENTS) and requires a browser-generated nonce; it is available where capabilities.pinDisplay is true. PIN_CHANGE returns a client token for the issuer’s secure PIN input (method HIGHNOTE_SECURE_INPUTS), where capabilities.pinChange is true; the cardholder sets or changes the PIN in that component, so the PIN goes straight to the issuer. Raw PINs are never accepted. WALLET_PROVISIONING returns, depending on the card program, an ephemeral key for the issuer’s native SDK (ISSUER_SDK) or an encrypted payload for the wallet (SERVER_PAYLOAD). Native wallet SDKs, device eligibility, entitlements and wallet certification remain required. READY means credentials are available, not that the PIN was shown or set or that wallet enrollment completed. Separate kind grants and cardDetails:reveal are enforced; issuer keys may also display card details. Credentials are stored encrypted only for idempotent replay and are excluded from GET and events. Sessions expire after at most two minutes; expired/canceled/reassigned sessions cannot replay credentials.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Path parameters

cardIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters
The card's ID.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Idempotency-KeystringRequiredformat: "^(?:[!#-~][!-~]{0,254}|"[!#-\[\]-~]{1,255}")$"1-257 characters

Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with Idempotent-Replayed: true; the same key with a different request is refused with IDEMPOTENCY_KEY_REUSED. A key can be used again 30 days after its operation completes.

Request

This endpoint expects an object.
kindenumRequired

PIN_DISPLAY, PIN_CHANGE or WALLET_PROVISIONING.

Allowed values:
walletenumOptional

Required for WALLET_PROVISIONING.

Allowed values:
noncestringOptional1-1024 characters

The issuer component’s nonce. Required for PIN_DISPLAY and for ISSUER_SDK wallet provisioning.

applePayobjectOptional

Required for Apple Pay when capabilities.walletProvisioning is SERVER_PAYLOAD. Values come from the device’s Apple Pay provisioning request.

googlePayobjectOptional

Required for Google Pay when capabilities.walletProvisioning is SERVER_PAYLOAD. Values come from the device’s Google Pay wallet.

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Idempotent-ReplayedenumOptional

Sent as true when this response repeats the first response to the same Idempotency-Key. A replay keeps the first response’s status and body, including the requestId of a problem; X-Request-Id is new.

Allowed values:
LocationstringOptional
The session metadata resource.

Response

Create secure PIN or wallet session.
idstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

object"cardServicingSession"

Always cardServicingSession.

accountHolderIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

cardIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

kindenum

PIN_DISPLAY, PIN_CHANGE or WALLET_PROVISIONING.

Allowed values:
methodenum

STRIPE_ELEMENTS for PIN_DISPLAY. HIGHNOTE_SECURE_INPUTS for PIN_CHANGE: credentials holds clientToken, paymentCardId and environment for Highnote’s Secure Inputs SDK. For wallets, the card’s capabilities.walletProvisioning.

Allowed values:
statusenum

READY, EXPIRED or REVOKED.

Allowed values:
createdAtdatetime
When the session was created.
expiresAtdatetime
When the credentials expire. At most 2 minutes after creation.
walletenumOptional

The wallet, for WALLET_PROVISIONING.

Allowed values:
credentialsstringOptional<=4096 characters

JSON encoded issuer credentials, returned only at creation and authorized replay before expiry. Render in the approved SDK/component; never log or persist in the client.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
503
Service Unavailable Error