Create Collection

Collections are unique to each merchant. You can create collections through the LeanX Portal or by using API.

Authentication

LeanX uses Auth Token to authenticate in each request's header.

Auth Token can be retrieved in your portal dashboard under API page.

Request Header

{
    "auth-token": "LP-0D7C06DE-MM|7394e58e-edee-4c42-9ca5-bcbc449f1b9f|2141df4a3cb633d5ce8683bb0c55067e5caebfbe07390dde277dc455bcc95c91723a81b5e565c7c02d68fb84e396722563016bf99e576a4b8cdbe4423fbf226b"
}

Create a Collection

HTTP Method: POST

https://api.leanx.dev/api/v1/merchant/create-payment-collection

Request Body

{
  "title": "Public API Collection Creation",
  "description": "This is public API collection description",
  "enable_billing_address": true
}

Attributes

Property
Type
Description

title*

String

Title of your collection

description*

String

Description of the collection

enable_billing_address*

Boolean

Allow payer to enter billing address in payment page

Response

{
  "response_code": 2000,
  "description": "SUCCESS",
  "app_version": "/api/v1",
  "talk_to_server_before": "2023-01-31T14:28:30.842232",
  "data": {
    "collection_uuid": "CL-C0D7F54A90-LNP"
  }
}

Last updated