Skip to main content
POST
Create a payment link

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
subMerchantId
string
required

The subMerchantId associated with the payment link.

Example:

"jpt-sim-md-1"

totalAmount
number
required

The total amount of the payment link.

Example:

55

description
string
required

The payment link description.

items
object[]

Line items included in the total amount.

totalModifiers
object[]

Adjustments applied to the total, such as discounts or additional fees.

receipt
object

Email receipt settings for the payment link. Receipts are off by default. A receipt is sent only when hostedSession.functions.collectEmail.enabled is true and the payer enters an email address on the hosted page.

hostedSession
object

Object to edit configuration of created hosted session.

Response

Payment link successfully created.