Skip to main content
POST
/
payments
/
session_tokens
Payments - Session token
curl --request POST \
  --url https://api.staging.bnplx.io/payments/session_tokens \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "payment_id": "<string>",
  "client_secret": "<string>"
}
'
{
  "payment_id": "<string>",
  "client_secret": "<string>",
  "installment_providers": [
    {
      "connector": "axytos",
      "plans": [
        {
          "plan_id": "<string>",
          "payment_method": "direct_debit",
          "duration_months": 1,
          "nominal_interest_rate": 123,
          "effective_interest_rate": 123,
          "first_installment_amount": 123,
          "last_installment_amount": 123,
          "down_payment_amount": 123,
          "total_amount": 123,
          "total_interest_amount": 123,
          "total_fees_amount": 123
        }
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.bnplx.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

api-key
string
header
required

Publishable keys are a type of keys that can be public and have limited scope of usage.

Body

application/json
payment_id
string
required

The identifier for the payment

client_secret
string
required

This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK

merchant_connector_details
object

Merchant connector details used to make payments.

Response

Payment session object created or session token was retrieved from wallets

payment_id
string
required

The identifier for the payment

client_secret
string
required

This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK

installment_providers
object[] | null

The list of connectors that provide the installments