Payment Links API · current V2

Payment Links

Create, customize and track hosted charges via API. V2 concentrates the current integration; the V1 reference remains available for existing integrations.

Base URLhttps://api.iopay.com.br/api
AuthenticationBearer token
VersionsCurrent V2 · V1 compatibility

One API for the full link lifecycle.

V2 lets you create, get, update, delete and list Payment Links, as well as query the transactions originated by those links.

Checkout

Items, Order Bump and identity.

Configure items, optional offers, primary color and banner when needed.

Commercial condition

Installments, interest and usage.

Define installments, interest pass-through, availability window and maximum number of payments.

Operation

Queryable links and transactions.

List charges and filter the generated transactions by status, method, period and link.

Create a Payment Link

The items[*].amount and order_bump_items[*].amount values are given in cents. The main amount is calculated as the sum of the items; Order Bumps are not included in the initial amount.

Consider BASE_URL = https://api.iopay.com.br/api in the examples below.

POST {{BASE_URL}}/v2/payment_link
{
  "title": "Order #1001",
  "description": "Compra de produtos diversos",
  "status": "enabled",
  "open_at": null,
  "end_at": null,
  "max_payments": 1,
  "max_installment": 3,
  "highlight_installment_condition": true,
  "enabled_payment_methods": {
    "credit": true,
    "pix": true,
    "boleto": true
  },
  "pass_interest_to_customer": true,
  "customer_interest_starts_at_installment": 1,
  "primary_color": "4099b4",
  "items": [
    {
      "name": "Produto principal",
      "amount": 60000
    }
  ],
  "order_bump_items": [
    {
      "name": "Garantia estendida",
      "amount": 15000
    }
  ]
}
Payment methods. V2 documents credit, pix and boleto. At least one method must be enabled and also allowed for the authenticated account. debit is not available for Payment Links.

V2 features

FeatureMain fieldsUse
Itemsitems[]Products that make up the link's initial amount.
Order Bumporder_bump_items[]Optional items offered at checkout.
Methodsenabled_payment_methodsCredit, Pix and boleto according to the account's enablement.
Installmentsmax_installment · highlight_installment_conditionFrom 1 to 12 installments, respecting the account setup.
Interestpass_interest_to_customer · customer_interest_starts_at_installmentControl of interest pass-through to the buyer.
Availabilityopen_at · end_at · max_paymentsLink window and usage limit.
Identityprimary_color · bannersPrimary color and optional checkout banner.
Splitsplit_rules[]Percentage or fixed distribution for enabled accounts.

Endpoints

MethodRouteOperation
POST/v2/payment_linkCreate link in JSON.
POST/v2/payment_linkCreate link with banner via multipart.
GET/v2/payment_link/{ID_LINK}Get a link.
PATCH/v2/payment_link/{ID_LINK}Partially update.
DELETE/v2/payment_link/{ID_LINK}Delete a link.
GET/v2/payment_link/listList links with filters and pagination.
GET/v2/payment_link/list/transactionsList transactions originated by links.

Operational listings

Links

Filter the charge base.

page, limit, offset, sort, status and creation range via date_range.

Transactions

Find the right payment.

Besides pagination and period, filter by id_link, status and payment_type.

Partial update. In PATCH, omitted fields remain unchanged. Sending order_bump_items: [] removes the Order Bumps; split_rules: [] removes the split rules; primary_color: null restores the default theme.

V2 for new integrations. V1 for compatibility.

Developer Central highlights V2 as the current reference. Existing integrations that still depend on the previous contract can continue to consult the public V1 documentation.