Skip to main content

Create session

Authentication - to start using invoice API, you must first call using the following script. This will allow you to receive a session token, which will be required later.

Environments

There are two environments available for integration:

  • Production environment: https://business.payments.defexa.io/

Header Parameters

ParameterMandatoryDescription
Authorizationyes"Bearer merchant_private_key" - The api key as a string.
Content-TypeyesAll request bodies should have content type application/json and be valid JSON.

Response Parameters

ParameterDescription
successtrue/false
statusrequest status
expirationrepresents server timestamp of session expiration moment
session_tokenuse this parameter in the invioce API request body
user_idmerchant user_id

API Base URL: https://business.payments.defexa.io/

curl "https://business.payments.defexa.io/api/v1/da/login" \
  -X POST \
  -H "Authorization: Bearer merchant_private_key" \
  -H "Content-Type: application/json"