v1.1.0
This release updates the default B2BRouter API version from 2025-10-13 to 2026-03-02.
This is a safe upgrade. The SDK's PHP interface is unchanged. If you're not ready to adopt the new API version, pin the previous one:
$client = new B2BRouterClient('your-api-key', [
'api_version' => '2025-10-13',
]);What changed in the SDK
- Default API version updated to
2026-03-02 - Request ID header updated to
X-B2B-API-Request-Id(falls back toX-Request-Idfor older API versions) - Added versioning policy documentation
- New example:
use_previous_api_version.php
API version 2026-03-02 migration guide
The following changes apply only if you use API version 2026-03-02 (the new default).
Removed invoice fields
Use allowance_charges_attributes instead:
discount_amount,discount_percent,discount_text→allowance_charge_indicator: "allowance"charge_amount,charge_percent,charge_reason→allowance_charge_indicator: "charge"apply_taxes_to_charge→ individualapply_taxesper allowance/chargecharge_is_reimbursable_expense→ individualis_reimbursable_expenseper allowance/charge
Same removals apply to invoice line fields (discount_*, charge_*).
Invoice search: taxcode replaced by query
// Before (API 2025-10-13)
$invoices = $client->invoices->all($accountId, ['taxcode' => 'ESB12345678']);
// After (API 2026-03-02)
$invoices = $client->invoices->all($accountId, ['query' => 'tin_value=ESB12345678']);Other API changes
type_documentrenamed totype_codeon invoices- Scheme fields (
tin_scheme,cin_scheme,pin_scheme) now return zero-padded 4-char strings (e.g.,"0007"instead of7) - POST create endpoints return
201 Createdinstead of200 OK(SDK handles this transparently) contact_idignored forIssuedSimplifiedInvoice- Contact
is_providerdefaults totruewhen creating via API
New API fields (automatic, no SDK changes needed)
- Invoice:
base_quantity,tax_currency_code,tax_amount_in_tax_currency,payments_on_account - TaxReport:
annulled_by_id,corrected_by_id, KSeF-specific fields - TaxReportLine:
item_seller_identifier,item_standard_identifier - BankAccount:
is_default
Upgrade
composer update b2brouter/b2brouter-phpFull changelog: v1.0.0...v1.1.0