Payment Links API · V2 current

Payment Links

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

Endpoint V2{{BASE_URL}}/v2/payment_link
AuthenticationBearer token
OtherV2 current · V1 compatibility

An API for the full link cycle.

V2 allows you to create, view, update, delete and list Payment Links, and to view transactions originating from these links.

Checkout

Items, Order Bump and identity.

Set up items, optional offers, primary color and banner when necessary.

Commercial Condition

Parcel, interest and use.

Set installments, interest rate transfers, availability window and maximum payment amount.

Operations

Links and consultable transactions.

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

Creating a Payment Link

The values of items[*].amount and order_bump_items[*].amount They're informed in cents The main value is calculated by the sum of the items; Order Bumps do not enter the starting value

POST {{BASE_URL}}/v2/payment_link
{
  "title": "Pedido #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
    }
  ]
}
Means of payment. V2 documents credit, pix and boleto. At least one method must be enabled and also released to the authenticated account. debit is not available for Payment Links.

V2 resources

The Court of JusticeMain fieldsUse
Other articlesitems[]Products that make up the initial value of the link.
Order Bumporder_bump_items[]Optional items offered at the checkout.
Methodsenabled_payment_methodsCredit, Pix and boleto as authorized by the account.
Installmentsmax_installment · highlight_installment_condition1 to 12 parcels, depending on the account setting.
Interest ratespass_interest_to_customer · customer_interest_starts_at_installmentControl of the transfer of interest to the buyer.
Availabilityopen_at · end_at · max_paymentsLink window and limit of use.
Identityprimary_color · bannersMain color and optional banner from the checkout.
Splitsplit_rules[]Percentage or fixed distribution for enabled accounts.

Endpoints

MethodRoutesOperations
POST/v2/payment_linkCreate a JSON link.
POST/v2/payment_linkCreate a banner link via multipart.
GET/v2/payment_link/{ID_LINK}Check out a link.
PATCH/v2/payment_link/{ID_LINK}Partially updated.
DELETE/v2/payment_link/{ID_LINK}Excluding a link.
GET/v2/payment_link/listList links with filters and pageings.
GET/v2/payment_link/list/transactionsList transactions originating from links.

Operational listings

Links

Filter the billing base.

page, limit, offset, sort, status and breeding interval by date_range.

Transactions

Find the right payment.

In addition to page and period, filter by id_link, status and payment_type.

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

V2 for new integrations. V1 for compatibility.

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