Split Payments Extension¶
br.dev.bcp.common.payment.split_payments · extends checkout
Optional capability
Split payments are an optional capability. A single-instrument
checkout remains valid without it, and Pix
remains the BCP reference payment method. This page creates no new
Brazilian rule; instrument types other than pix (gift_card,
store_credit, loyalty) are illustrative and defined by each handler.
Overview¶
The extension lets the Buyer pay a single checkout with more than one
instrument — for example, a gift card and the remainder with Pix. The
Business declares in its profile the instrument combinations it accepts, in
allowed_combinations.
Each instrument is submitted in one of two modes:
- Specified amount (
amountpresent): the Platform requests a specific contribution. - Open amount (
amountomitted): the Business determines the contribution during processing (for example, by checking the gift card balance).
In the response, the Business reports in the same amount field the amount
actually authorized or charged on each processed instrument. The response
amount is informational only.
Every amount is in minor units of the checkout currency (centavos, in
BRL). Handlers whose instruments are in another currency or have no currency
(loyalty points) MUST convert the contribution to the checkout currency.
Instruments are submitted in allocation priority order: the first has the first claim on the total, the second the next, and so on. The Business MAY process authorizations in a different order for operational reasons; array order governs amount allocation, not processing sequence.
Discovery¶
{
"ucp": {
"version": "2026-11-16",
"capabilities": {
"br.dev.bcp.common.payment.split_payments": [
{
"version": "2026-11-16",
"extends": "br.dev.bcp.shopping.checkout",
"spec": "https://bcp.dev.br/draft/specification/split-payments",
"schema": "https://bcp.dev.br/draft/schemas/common/payment_split_payments.json",
"config": {
"allowed_combinations": [
[
{ "types": ["pix"], "min": 1, "max": 1 },
{ "types": ["gift_card"], "max": 2 }
],
[
{ "types": ["gift_card"], "min": 1, "max": 5 }
]
]
}
}
]
}
}
}
Reading the combinations:
- Pix + gift cards: exactly one Pix, plus up to two gift cards (optional). Valid: Pix only, Pix + 1 gift card, Pix + 2 gift cards.
- Gift cards only: 1 to 5 gift cards, with no other type.
Schema¶
Payment Instrument (Split Payments)¶
With the capability active, each instrument in checkout.payment.instruments
gains the optional amount field.
Payment instrument extended with an optional per-instrument amount for split payments.
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | A unique identifier for this instrument instance. Typically assigned by the platform for instruments it collects. For a business-owned saved instrument returned on an identity-linked response, this identifier is assigned by the business; the platform MUST treat it as an opaque, business-scoped reference, and the business resolves it server-side when the buyer selects it. |
| handler_id | string | Yes | The unique identifier for the handler instance that produced this instrument. This corresponds to the 'id' field in the Payment Handler definition. |
| type | string | Yes | The broad category of the instrument (e.g., 'card', 'tokenized_card'). Specific schemas will constrain this to a constant value. |
| billing_address | object | No | The billing address associated with this payment method. |
| credential | object | No | The base definition for any payment credential. Handlers define specific credential types. |
| display | object | No | Display information for this payment instrument. Each payment instrument schema defines its specific display properties, as outlined by the payment handler. |
| amount | integer | No | Contribution amount for this instrument expressed in ISO 4217 minor units of the containing capability object's currency. On request: the platform's requested contribution (omit for open-amount). On response: the actual amount authorized or charged (omitted when not finally processed). |
Business Profile Configuration¶
See Business Split Payments Config in the Schema Reference for the canonical field definition.
allowed_combinations is an array of valid combinations. Each combination is
an array of instrument groups — constraints that together define a valid
way to split the payment. A set of instruments is valid if it matches any
combination.
Instrument Group¶
See Instrument Group in the Schema Reference for the canonical field definition.
Matching algorithm: a submission matches a combination if there is an
assignment of each submitted instrument to exactly one group such that the
instrument's type is in the group's types and each group's count falls
between min and max (inclusive). The Business MAY use any algorithm to
find that assignment.
Processing¶
- The Platform submits the instruments in
payment.instruments, in allocation priority order. - The Business MUST derive each instrument's contribution, in array
order:
- Specified amount: the Business MUST authorize the provided
amount. - Open amount: the Business determines the contribution — typically the available balance, up to the remainder of the total after prior contributions. A zero balance is a valid R$ 0.00 contribution, not a failure.
- Specified amount: the Business MUST authorize the provided
Errors¶
A split payment either completes in full or has no financial effect. If
the Business cannot process a specified-amount instrument, or cannot reach the
total, it MUST return payment_failed in messages[] and MUST void or
refund every authorization it made. The Buyer MUST NOT be left charged for
an incomplete split.
At the protocol layer, each request is processed independently: split state does not persist across requests. A changed set of instruments is a new submission, with a new idempotency key.
When the split fails or is incomplete, the Business MUST emit a
payment_failed error for each failed instrument, with path pointing at the
instrument. It MAY emit info messages for successful instruments:
[
{
"type": "info",
"path": "$.payment.instruments[0]",
"content": "Gift card with a balance of R$ 30.00."
},
{
"type": "error",
"code": "payment_failed",
"path": "$.payment.instruments[1]",
"severity": "recoverable",
"content": "The Pix charge expired without payment."
}
]
The severity is recoverable because the Platform can collect a replacement
instrument and resubmit.
The Business MUST return an error when:
- an instrument cannot be processed (invalid credential, suspected fraud, decline, expiration, insufficient balance) — a zero balance on an open amount is not a failure;
- the total cannot be reached with all submitted instruments;
- the sum of specified
amountvalues exceeds the total; - the instruments do not match any
allowed_combinations.
Response: Actual Amounts¶
In the response, the Business MUST populate amount on every authorized or
charged instrument with the actual contribution — including open-amount ones —
and MUST omit it on the others (voided authorization, instrument not
attempted). The response amount serves the Buyer experience and auditing: the
Platform MUST NOT treat it as state preserved across subsequent requests,
and the Business MUST NOT rely on it being echoed.
With payment terms, split payments combine only with a single-schedule term.
Example: Gift Card and Pix¶
"Use my gift card first and pay the rest with Pix." A R$ 100.00 order.
The Business checks the gift card balance (R$ 30.00), authorizes that amount, and creates the Pix charge for the remaining R$ 70.00, which the Platform displays to the Buyer as usual in the Pix flow:
{
"payment": {
"instruments": [
{
"id": "pi_vale_1",
"handler_id": "vale_handler",
"type": "gift_card",
"credential": { "type": "gift_card", "token": "vale_abc123" },
"amount": 3000
},
{
"id": "pi_pix_1",
"handler_id": "pix_recebedor_001",
"type": "pix",
"credential": {
"type": "pix_charge",
"provider_payment_id": "ORD01JQ8Z9F2C4B1E7A3D4C8F",
"copia_e_cola": "00020126580014br.gov.bcb.pix0136123e4567-e12b-12d1-a456-4266554400005204000053039865802BR5909Loja Exemplo6009Sao Paulo62070503***6304ABCD",
"expires_at": "2026-07-08T15:30:00Z",
"binding": { "checkout_id": "chk_bcp_pix_001" }
},
"amount": 7000
}
]
}
}
The gift_card type and its credential are illustrative. The atomicity rule
above applies as for any other instrument: if the split does not complete, the
gift card authorization is voided and the response carries payment_failed on
the failed instrument.