Payment links
List payment links
Before you call this endpoint
- An API key needs the
payments:readscope. - Once your business has an IP allowlist, every live key must call from an address on it.
- Guide: Payment links
Query Parameters
Filter to Active, Paid, Expired or Disabled.
1 <= value <= 200500 <= value0Response Body
application/json
application/json
curl -X GET "https://example.com/api/b/v1/payment-links"{ "links": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "title": "string", "description": "string", "amount_type": "string", "amount_minor": 0, "min_amount_minor": 0, "max_amount_minor": 0, "currency": "string", "usage": "string", "state": "active", "redirect_url": "string", "expires_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "payments": 0, "account": "acct_4f1c9a2b7d3e8f6a0b1c2d3e", "is_test": false } ]}Quote the fee on a charge
InversePay's fee on a charge, from your plan, before you open it. Priced exactly as the charge itself will be, so the quote is the fee. To put your own margin on a sale, decide what you want to keep and ask with `net_minor`. On a plan charging 2%, say, keeping 10,000 RWF means charging 10,205 RWF. The fee is on the amount the payer pays, so adding 2% to your price falls just short. `price` is the plan the quote was priced on, so you can price any other amount without asking again: the percentage of the amount, rounded down, plus the flat part, then no less than the floor and no more than the cap.
Create a payment link
Make a shareable page that collects a payment. Send `account` to collect into one of your accounts other than the main one; every charge the link raises, and its webhooks and settlement, name it.