Skip to main content
Version: 3.0.0 (current)

Generate a secret

POST /v3/auth

Optional: See the Authentication guide for more information.

Request Body
  • lifetime object

    Define how long this secret should be valid for.

  • unit string

    Possible values: [second, minute, hour, day]

    Default value: hour

  • count integer

    Default value: 24

  • scopes object
  • sessionId string

    Optional: Scope this secret to only be valid for a specific session.

  • tokenId string

    Optional: Scope this secret to only be valid for a specific tokenized payment method.

  • operations string[]

    Possible values: [create_session, read_session, update_session, update_session_metadata, capture_order, refund_order, cancel_order, validate_session, update_cart, update_references, create_hpp, read_token, patch_token, delete_token]

    Optional: Define which operations this secret can be used for.

Responses

Schema
  • secret string
  • expiresAt string
Loading...