Payment links
A link for one product, with any add-ons you choose, to put in an email, a message, a social profile, or a button on any page. No code and no website needed.
Create one
- In the dashboard, create the product: its title, price, and what the buyer sees after paying.
- Open Payments → Payment links, choose New link, and pick the product. Optionally pick its add-ons, or give it a quantity, a label, an end date, or a maximum number of payments.
- Copy the link (
https://pay.shipbill.io/p/…) and share it.
Each visit opens a fresh checkout for that product at its price. The buyer pays with a method you've connected and gets an invoice by email; you get an email for the sale, and a payment.succeeded event if you've added a webhook.
From the API
The same link from your server, for example to make one per campaign:
curl https://api.shipbill.io/v1/payment-links \
-H "Authorization: Bearer $SHIPBILL_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{ "product": "prod_…", "label": "Newsletter", "max_payments": 100 }'The answer's url is the link. It belongs to the mode of the key that made it.
Add-ons, and a quantity the buyer chooses
A product can list add-ons: other products of yours, in its currency, each with a quantity. Making a link, you pick which of them it sells, at what quantities, and how: Included in every sale, or Offered as a box the buyer may tick. With the API, send items, each with offered. The checkout, invoice, and receipt list each item bought. A link's items, like its product, are set when it's made: to sell something else, make another link. If an included add-on is archived, the link can't be paid until it's back; an offered one just isn't offered.
On a subscription, a one-time add-on is charged with the first payment only, and a subscription product renewing as it does is a recurring add-on, renewing with it: see Add-ons.
Turn on Buyers can choose a quantity on a product, with the least and the most, and its link's and buy button's checkout show a stepper on its line; the price and tax follow it. A link can fix its own quantity instead. Your server's checkouts keep the quantity it sends. A subscription renews at the quantity bought.
Each payment provider is sent the set as it takes one: see several products, or several of one.
Disable or delete a link
Disable, in a link's menu, stops it selling until you Enable it again: its address says the link is no longer available. With the API, update its status to disabled or active. A link ShipBill paused after many declined cards in a short time shows Paused, and Resume starts it again.
Delete… removes it for good, after asking; tick several to delete them together with Delete selected. With the API, DELETE /v1/payment-links/{id}. A deleted link leaves every list, and its address answers as a disabled one's does. That address is never given to another link, so one you've shared never sells something else. A checkout a buyer has already opened from it can still be paid, and the payments, invoices, and analytics made through it keep it. A deletion can't be undone: to stop a link for now, disable it.
The Enabled and Disabled filters above the list keep disabled links out of view without deleting them.