Skip to content
Navigation

Get a card authorization link

GET
https://api.nicer.travel/commerce/payment-methods/card-link

Reads a live card authorization link before the card page shows consent: the exact statement the person accepts, when the link expires, and what completing it grants. Whoever holds the link may read it: its capability travels as Authorization: PaymentLink <token> or X-Payment-Link-Token, as on the completing route, and a signed-in caller changes nothing. Errors: 401 ERROR_AUTHENTICATION_REQUIRED without a capability; 404 COMMERCE_PAYMENT_METHOD_LINK_NOT_FOUND for a link that is missing, expired or revoked, or whose advisor is no longer an active advisor of the agency.

Authorization

  • bearerAuth
    optional
    HTTP Bearer (JWT)

    Authorization: Bearer <token>

Returns

200

OK

JSON
  • consentCopy
    string
    required

    The exact statement the person accepts; the same text is stored with the authorization.

    minLength: 1
  • expiresAt
    string
    required

    When the link stops working.

    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
  • grantScopeKind
    USER
    or
    TRIP
    or
    ADVISOR
    required

    What completing the link grants. ADVISOR: the card to the advisor who made the link. USER: a personal card for the person who made it, who must be signed in. TRIP: the card to everyone working the link's trip (links made before advisor grants).

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

429

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close