Skip to content

Payment Terms Extension

br.dev.bcp.common.payment.terms · extends checkout and order

Optional capability

Payment terms are an optional capability. No business or platform needs to implement it, and a checkout without it remains valid: the total is the amount due at completion, as defined by the checkout core. Pix remains the BCP reference payment method. This page creates no new Brazilian rule on installments, interest, or consumer credit; terms such as "à vista" or "3x sem juros" appear only as examples of free text.

Overview

The extension lets a Business offer the Buyer a choice of when payment for a checkout is due. An inn can offer to pay for the whole stay at booking, or to pay a deposit now and the balance at check-in. A business selling equipment can offer payment in 30 days alongside immediate payment.

A payment term is an addressable, presentable choice made up of one or more payment schedules. Each schedule is one payment: an amount and a complete, Buyer-facing statement of when it is due.

The extension adds two properties to checkout.payment:

  • terms[] — the terms the Business offers on this checkout. Response only.
  • selected_term_id — the selected term. Present on every response that carries terms; the Platform writes it to change the selection.

The Buyer chooses one of the terms in terms[] the same way they choose a fulfillment option.

When a Checkout Carries Terms

The Business offers terms when the checkout has something to say about payment timing — a choice between terms, or a single term whose schedules need to be disclosed. If payment is due in full at completion, the Business can omit terms and selected_term_id.

When terms is present, it MUST contain at least one term, and selected_term_id MUST reference one of them. The checkout total is the total of the selected term.

Presentation

Presentation is term-agnostic: the Platform does not need to model deposits, installments, or credit to present a term. Knowing the checkout currency, a Platform that reads only title, description, schedules[].description, and schedules[].amount MUST be able to present what is due and when, for every term; the Business MUST write terms so that this holds.

This floor covers amounts and due dates, but does not by itself satisfy a legal disclosure duty (for example, highlighting finance charges). Those duties go through the mandatory disclosures channel. type and due_at are supplementary: they let the Platform separate "now" from "later", order schedules, or create reminders, without ever being required.

A Business that offers exactly one term is informing, not asking: the Platform SHOULD present it without suggesting a choice.

Schedules

A schedule is one payment: a term that charges four times has four schedules. The Business MUST make each description a complete statement of when and how that payment is due, so the Platform can display it verbatim. The Platform MAY use type and due_at for a richer presentation, but MUST NOT present a derived due date that contradicts the description.

Due class. type is an open vocabulary with a single well-known value:

Type Meaning
immediate The payment is due at checkout completion.

Any other value means the payment is not due at completion; the description says when. The Platform MUST treat an unknown type as not due at completion. Values such as deferred or on_shipment carry no protocol meaning beyond "not immediate".

Due dates. due_at is an absolute RFC 3339 date-time. The Business SHOULD provide it when it can determine it at checkout and MUST omit it when it depends on a future event ("on delivery"). due_at never replaces the description.

Amounts. Each schedule has a single amount, in the checkout currency, inclusive of taxes and all charges. For the selected term, the sum of the schedules MUST equal the checkout total. Unselected terms are indicative. When the selected term changes the cost of the purchase — a discount for immediate payment, a charge for deferred payment — the difference MUST appear as its own entry in checkout.totals (negative discount or positive fee), and the Business SHOULD provide display_text.

Selection

Selecting a term is a checkout update: the Platform sets selected_term_id and the Business returns the recalculated checkout, which is authoritative for all derived state — totals, line prices, discount eligibility, policies[], messages[], and offered payment handlers. The Platform MUST NOT assume that terms[] values survive selection and MUST re-render from the response.

  • The Business MUST use terms[].id values unique within the checkout. Absent a Buyer choice, the Business selects a default.
  • The Platform MUST omit selected_term_id on create (the IDs do not exist yet) and on complete (the term is already agreed).
  • A selection that no longer resolves, a selection undone by a conflict with another choice (for example, a same-day delivery option), or an in-place change to the selected term MUST be reported with the payment_term_changed warning in messages[]. The Business MUST NOT silently substitute the term.

Instruments and Eligibility

The extension does not change how instruments are submitted. Handler and instrument eligibility for a checkout is a runtime outcome: the Business resolves it and returns the authoritative ucp.payment_handlers in the response, valid only for that response.

The instrument funding a term is charged once per schedule and MUST be capable of all of them. The Business MUST NOT advertise an instrument that cannot fund every schedule of the selected term, and MUST reject one that is submitted. An instrument that can only be charged immediately therefore cannot be offered on a term that defers any part of the payment.

A term with more than one schedule MUST be funded by a single instrument. Split payments combine only with a single-schedule term.

Mandatory Disclosures

Some terms carry a display obligation — finance charges, a non-refundable deposit. The extension creates no channel of its own; it uses the two that already exist:

  1. A policy carries the durable text, with applies_to pointing at the node it concerns (the term, when it is about payment timing; the line, when it is about the product).
  2. A messages[] warning with presentation: "disclosure" and code equal to the policy's type forces display (see Warning Presentation).

The Business remains responsible for the required content, its applicability, its timing, and any express Buyer acknowledgment. Because presenting policies is optional for the Platform, all content that must reach the Buyer goes in the warning's content. A Platform that cannot honor the display MUST escalate via continue_url rather than drop the warning.

An obligation disclosed at checkout does not end there: when a warning governed the accepted term, the Business MUST return it on the order with path $.payment.accepted_term, and use the same target in the paired policy's applies_to. The Business MUST NOT return warnings for terms that were not accepted.

Out of Scope

  • Amounts not determinable at checkout (incidentals, post-purchase adjustments): these are order authorizations and adjustments, not schedules.
  • Multiple currencies in a term: every schedule uses the checkout currency.
  • Recurring commerce: schedules settle the current checkout; they create no future purchases or renewals.
  • Payment execution: the extension states when money is due. It does not define credential storage, authorization of future charges, or capture, and the Platform MUST NOT infer that a deferred payment can be queried, changed, or canceled through BCP.

Discovery

{
  "ucp": {
    "version": "2026-11-16",
    "capabilities": {
      "br.dev.bcp.common.payment.terms": [
        {
          "version": "2026-11-16",
          "extends": ["br.dev.bcp.shopping.checkout", "br.dev.bcp.shopping.order"],
          "spec": "https://bcp.dev.br/draft/specification/payment-terms",
          "schema": "https://bcp.dev.br/draft/schemas/common/payment_terms.json"
        }
      ]
    }
  }
}

Schema

Payment (Checkout)

With the capability active, checkout.payment carries the available terms and the selected one.

Payment object extended with selectable payment terms.

Name Type Required Description
terms Array[object] No Payment terms the Buyer can choose from. An unselected term's amounts are indicative; the selected term's schedule amounts sum to the checkout total.
selected_term_id string No ID of the selected payment term. MUST match one terms[].id from the latest Checkout response. Present in a response whenever terms is, and absent when it is not: the Checkout total is the selected term's total, so a list of terms without a selection would show an amount that matches no stated term. Where the Buyer has made no choice, the Business selects a default. Omitted on create requests because term IDs are checkout-scoped and no terms exist yet, and on complete requests because the term is already agreed by then. Selecting a term is an Update Checkout mutation: the Business response is authoritative for all derived state.

Payment (Order)

On the order, payment carries the accepted term; the others are not projected. The accepted term is the agreement, not a running balance: at order creation, the sum of the schedules MUST equal the order total, and the Business MUST NOT change it afterwards — post-purchase changes go in adjustments[].

Order payment details carrying the term the Buyer accepted at checkout.

Name Type Required Description
accepted_term object No The payment term the Buyer accepted at checkout. Businesses MUST carry it forward so the Order states the amounts owed and when, and MUST ensure its schedule amounts sum to the Order total. The available terms are checkout state and are not projected.

Payment Term

See Payment Term in the Schema Reference for the canonical field definition.

Payment Schedule

See Payment Schedule in the Schema Reference for the canonical field definition.

Examples

Inn: Everything Now, or Deposit and Balance at Check-in

A R$ 1,200.00 stay. Pay everything today for R$ 1,150.00, or pay the first night now and the balance at check-in.

The two terms have different amounts; only the selected one binds to the total. Absent a Buyer choice, the Business selects immediate payment:

{
  "selected_term_id": "pt_a_vista",
  "terms": [
    {
      "id": "pt_a_vista",
      "title": "Pay everything now",
      "description": { "plain": "Save R$ 50.00 by paying for the stay today." },
      "schedules": [
        {
          "id": "sched_total",
          "type": "immediate",
          "description": { "plain": "Due today, at booking." },
          "amount": 115000
        }
      ]
    },
    {
      "id": "pt_entrada_saldo",
      "title": "First night now, balance at check-in",
      "description": { "plain": "Secure the room with the price of one night." },
      "schedules": [
        {
          "id": "sched_entrada",
          "type": "immediate",
          "description": { "plain": "Due today, at booking." },
          "amount": 30000
        },
        {
          "id": "sched_saldo",
          "type": "deferred",
          "description": { "plain": "Due at check-in, on September 1, 2026, at 3 p.m. (Brasília time)." },
          "due_at": "2026-09-01T15:00:00-03:00",
          "amount": 90000
        }
      ]
    }
  ]
}

The selected term's saving appears where the purchase is priced, as its own totals entry:

[
  { "type": "subtotal", "amount": 120000 },
  { "type": "discount", "amount": -5000, "display_text": "Immediate payment discount" },
  { "type": "total", "amount": 115000 }
]

The Buyer chooses the deposit (update request, excerpt):

{
  "selected_term_id": "pt_entrada_saldo"
}

The recalculated response removes the discount (the total becomes R$ 1,200.00, the sum of the two schedules) and returns the handler set resolved for the term. The non-refundable deposit rule sits in a policy targeting the term:

[
  {
    "type": "com.example.policy.deposit_forfeiture",
    "applies_to": ["$.payment.terms[1]"],
    "description": { "plain": "The R$ 300.00 deposit is non-refundable within 48 hours of arrival." }
  }
]

At completion, the accepted term carries over to the order:

{
  "accepted_term": {
    "id": "pt_entrada_saldo",
    "title": "First night now, balance at check-in",
    "schedules": [
      {
        "id": "sched_entrada",
        "type": "immediate",
        "description": { "plain": "Due today, at booking." },
        "amount": 30000
      },
      {
        "id": "sched_saldo",
        "type": "deferred",
        "description": { "plain": "Due at check-in, on September 1, 2026, at 3 p.m. (Brasília time)." },
        "due_at": "2026-09-01T15:00:00-03:00",
        "amount": 90000
      }
    ]
  }
}

Installments

Three payments, three schedules: one at completion and two with due dates computed by the Business. The title uses free commercial vocabulary; the protocol assigns it no meaning.

{
  "id": "pt_3x",
  "title": "3x sem juros",
  "description": { "plain": "Three payments of R$ 100.00, interest-free." },
  "schedules": [
    {
      "id": "sched_1",
      "type": "immediate",
      "description": { "plain": "Due today." },
      "amount": 10000
    },
    {
      "id": "sched_2",
      "type": "deferred",
      "description": { "plain": "Due on November 15, 2026." },
      "due_at": "2026-11-15T00:00:00-03:00",
      "amount": 10000
    },
    {
      "id": "sched_3",
      "type": "deferred",
      "description": { "plain": "Due on December 15, 2026." },
      "due_at": "2026-12-15T00:00:00-03:00",
      "amount": 10000
    }
  ]
}

Responsibilities

The Platform MUST:

  • present each term's title and each schedule's description and amount, formatted in the checkout currency;
  • re-render from the Business's response after selecting a term;
  • treat an unknown schedule type as not due at completion, and present the term anyway;
  • process warnings linked to terms per Warning Presentation, escalating via continue_url when it cannot honor them.

The Business MUST:

  • reference one of the offered terms in selected_term_id on every response with terms;
  • ensure each schedule's description states, on its own, when the payment is due;
  • ensure the selected term's schedules sum exactly to the total;
  • record in checkout.totals every cost difference introduced by the selected term;
  • report payment_term_changed whenever the term in effect changes;
  • carry the accepted term to the order as payment.accepted_term, with the warning that governed it.

The Business SHOULD provide due_at whenever the date is determinable and keep schedule IDs stable across responses.