Quick Exchange
  • Quick Exchange for Partners
  • Expired Quote Handling
  • Widget Integration
    • Embedded Widget
    • Configuration
      • Config Version
      • Settlement Defaults
      • Settlement Parameters
      • Custom Styles
      • Identity
      • Special Layout
      • Partner Fields
    • Event Hooks
  • API Integration
    • Authentication
    • User Session
      • OAuth
      • KYC
    • Settlements
  • Settlements
    • Funding Methods
      • BLOCKCHAIN_TRANSFER
      • BLOCKCHAIN_DELEGATED_BROADCAST
      • CARD_PAYMENT
        • Test Cards
    • Payout Methods
      • BLOCKCHAIN_TRANSFER
      • LIQUID_PARTNER_WALLET
      • LIQUID_WALLET
      • LIQUID_USER_WALLET
  • E-Commerce
    • X-Quoine-Auth
    • Intents (Fixed Settlements)
      • Deliverable Currency
    • Transactions
      • Transaction Status
Powered by GitBook
On this page

Was this helpful?

  1. API Integration

User Session

Liquid is obliged to impost first party KYC on end users from the first dollar. To achieve this, the api has implemented user sessions, to track users between KYC/authentication and creating a transaction.

Create user session

POST https://partners.liquid.com/api/v1/session

Request Body

Name
Type
Description

public_api_key

string

Partner public API key

ancestor_origins

string

Application window ancestor origins

identity

object

Object containing identity proof

user_locale

string

User locale

config

object

Front end application config.

{
  "success": true,
  "payload": {
    "session_id": "e750928c-ef64-4206-9345-ac8d743feb1a",
    "session_secret": "201e04f5-03e1-41c2-8245-fc6e54be0e51",
    "environment": "PRODUCTION",
    "client_info": {
      "suggested_country": "JP"
    },
    "default_transaction": {
      "funding_settlement": {
        "currency": "JPY",
        "quantity": "50"
      },
      "payout_settlement": {
        "currency": "BTC"
      }
    },
    "widget_configuration": null,
    "_links": {
      "terms_of_service": {
        "href": "https://help.liquid.com/en/articles/3969828-quick-exchange-by-liquid-end-user-terms-of-use"
      }
    }
  }
}
PreviousAuthenticationNextOAuth

Last updated 4 years ago

Was this helpful?