Create a Payment Link
Create a hosted payment link and return the URL to share with customers
201 Created with the full payment link object wrapped in data. Share the returned hosted_url with your customer to collect payment.Idempotency
This endpoint requires anIdempotency-Key header — a unique client-generated identifier (letters, digits, dot, hyphen, underscore; 8–64 characters, e.g. your own order ID). Reusing the same key with an identical body returns the original response without creating a duplicate. Reusing it with a different body returns 409 idempotency_mismatch. Keys expire after 24 hours.
Amount validation
Theamount must equal the sum of every line item (unit_price × quantity). For the example below, 75000 × 2 = 150000.
merchant_branch_reference_number is required when your API key is scoped to a partner or merchant. Branch-scoped keys can omit it — the link is created against that branch automatically.Required scope
payment_links.createAuthorizations
API key passed as a bearer token. Use sk_live_ keys for production and sk_test_ keys for sandbox. Keys are provisioned during merchant onboarding.
Headers
Unique client-generated identifier to prevent duplicate operations. Allowed characters: letters, digits, dot (.), hyphen (-), and underscore (_); 8–64 characters — e.g. your own order ID. Reusing the same key with an identical body returns the original response; reusing it with a different body returns 409 idempotency_mismatch. Keys expire after 24 hours.
^[A-Za-z0-9._-]{8,64}$Body
one_time accepts exactly one successful payment then becomes CONSUMED. multi_use accepts multiple payments, optionally up to max_uses.
one_time, multi_use ISO 4217 currency code. Currently supported: PHP.
"PHP"
Total amount in the smallest currency unit. Must equal the sum of all line items (unit_price × quantity).
x >= 1150000
1 to 100 line items.
1 - 100 elementsISO 8601 timestamp. Must be in the future.
"2026-07-18T00:00:00Z"
Required if your API key is scoped to a partner or merchant. Not required for branch-scoped keys.
"SH-ANG-001"
For multi_use only. Omit or set to null for unlimited. Must be greater than 1. Ignored for one_time links.
x >= 210
Free-form text displayed to the customer on the checkout page.
"Order for wireless earbuds"
Your internal order identifier.
100"ORD-2026-0618-001"
URLs to redirect the customer after payment. Each URL must use HTTPS.
Key-value pairs for your own use. Max 50 keys, key max 40 characters, value max 500 characters.
Response
Payment link created
The payment link object returned by all endpoints.