Skip to main content
POST
Generate session

Authorizations

ngnc-sec-key
string
header
default:""
required

Body

application/json
business_id
string
required

Your unique LINK business ID. Identifies the business collecting the payment.

amount
number
required

Amount the customer pays at checkout, in the currency below.

Example:

50

currency
enum<string>
default:USD
required

Checkout currency. USD only.

Available options:
USD
reference_id
string
required

Your own reference for this payment, generated on your side. Use it to match the session back to your records.

Example:

"ORDER-10294"

success_url
string
required

Where the customer is redirected after a successful payment.

Example:

"https://yourdomain.com/payment/success"

cancel_url
string
required

Where the customer is redirected if the payment fails or is cancelled.

Example:

"https://yourdomain.com/payment/cancelled"

Response

Checkout session created.

status
string
Example:

"success"

data
object