Actalink Docs
Acta billings/Paymentlink

Create Checkout Session

This api makes a request to Actalink subscription server to create a checkout session for payment link. for example if https://pay.acta.link/payment-link/135910b9-5450-49bc-876a-a4bcec33f09b is the payment link, the consumer will open this payment link on his browser. The dapp will make a POST request to subscription server to create the checkout session

POST
/api/createcheckoutsession

Request Body

application/jsonRequired
paymentIdRequiredstring

Payment link Id of a subscription.

curl -X POST "http://localhost:4000/api/createcheckoutsession" \
  -H "Content-Type: application/json" \
  -d '{
    "paymentId": "135910b9-5450-49bc-876a-a4bcec33f09b"
  }'

Unique session Id will be returned.

{
  "sessionId": "6e72f344ef0b52721fb4aa8a75a769b5ba5f2fcb1a"
}