Create
Creates a new payment link for an active account. The account must exist and be in active status.
Authorizations
JWT issued by POST /api/v1.1/access-token/b2b. Send Authorization: Bearer <token>.
Merchant API key (Credential.api_key). Required on every request.
Path Parameters
Account identifier in ULID format.
Body
Merchant reference number for this payment link.
40^[^\s\/]+$"INV20240513001"
Title displayed for the payment link.
255"Invoice Payment"
Maximum number of successful payments allowed for this link.
1 <= x <= 10000001
Total payment amount. Must equal the sum of all line items. Minimum and maximum limits depend on merchant configuration and selected payment methods.
150000
List of line items used to compose the total payment amount.
1Whether customer details are required during checkout.
true
Optional expiration time as a Unix timestamp in milliseconds (13 digits), interpreted in Asia/Jakarta timezone.
^\d{13}$"1705305600000"
Restricts accepted payment methods for this link. Omit or send an empty array to allow all active payment-link methods. Each entry must be a valid payment method code from the payment methods catalog.
Optional URL to redirect the payer after payment flow completion.
2048"https://merchant.example.com/payment/return"
Optional merchant-defined metadata stored with the payment link.
