v.2025-01-28
In API version v.2025-01-28, we’ve improved how partial captures are represented, expanded the available information on settlements (including a revamped CSV and XLS format), and introduced updates for Platform Model. Review this changelog for more information on what endpoints have changed.
Updated Endpoints
Partial Captures improvements:
- GET payments
- POST payments
- GET payments/:id
- PATCH payments/:id
- POST payments/:id/capture
- POST payments/:id/refund
- POST payments/:id/cancel
- POST payments/:id/finalize
- GET merchants/merchant_id/payments
Settlements & Platform Model improvements:
- GET balances/:id
- GET settlements
- GET settlements/:id
- GET settlements/:id/csv
- GET settlements/:id/xls
Partial Captures improvements
Partial captures are now represented using a new "captures" array on payment object, instead of being shown as partial refunds, simplifying reporting and reconciliation.
GET payments
GET payments
The response object for partially captured payments has been updated.
- Return value changes:
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: partially captured payments no longer show a refund for the difference between the authorized amount and captured amount.
Full API Reference for this endpoint
POST payments
POST payments
The response object for partially captured payments has been updated.
- Return value changes:
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
Full API Reference for this endpoint
GET payments/:id
GET payments/:id
The response object for a partially captured payment has been updated.
- Return value changes:
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
Full API Reference for this endpoint
PATCH payments/:id
PATCH payments/:id
The response object for a partially captured payment has been updated.
- Return value changes:
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
Full API Reference for this endpoint
POST payments/:id/capture
POST payments/:id/capture
The response object for a partially captured payment has been updated.
- Return value changes:
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
Full API Reference for this endpoint
POST payments/:id/refund
POST payments/:id/refund
The response object for a partially captured payment has been updated.
- Return value changes:
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
Full API Reference for this endpoint
POST payments/:id/cancel
POST payments/:id/cancel
The response object for a partially captured payment has been updated.
Return value changes:
-
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
Full API Reference for this endpoint
POST payments/:id/finalize
POST payments/:id/finalize
The response object for a partially captured payment has been updated.
- Return value changes:
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: a refund for the difference between the authorized amount and captured amount is not shown if the payment is a partially captured payment.
Full API Reference for this endpoint
GET merchants/:merchant_id/payments
GET merchants/:merchant_id/payments
The response object for a partially captured payment has been updated.
- Return value changes:
amount_refunded
: the refund amount for the difference between the authorized amount and captured amount is no longer included for partially captured payments.refunds
: partially captured payments no longer show a refund for the difference between the authorized amount and captured amount.
Full API Reference for this endpoint
Settlements & Platform Model improvements
We updated endpoint structures to support the new Platform Model, and expanded the available keys to include more settlement data. The formats of the CSV and XLS settlement reports have been changed to include this new data as well.
GET balances/:id
GET balances/:id
Transformed the response to a nested (2D) structure to match the Merchant dashboard's Payout Balance page.
- Renamed keys:
balance_total
is nowtotal_balance_cents
.
- Removed keys:
payment_fee_total
,tax_total
.
- Structural changes:
- Added new
payments
,refunds
,platform_model
,corrections
,komoju_card_charges
andmisc
sections.payments
:- Moved here:
payment_total
now calledcaptured_amount_total
- New keys:
processing_fees
- Moved here:
refunds
:- Moved here:
refund_total
now calledrefunded_amount_total_cents
refund_fee_total
now calledrefund_processing_fees_cents
and includes taxrefunded_customer_fee_total
now calledrefunded_customer_fees_centr
and includes tax
- Moved here:
platform_model
(only available for Platform merchants):- Moved here:
fund_transfer_total_cents
- New keys:
payment_share_total_cents
,payment_share_refund_total_cents
,platform_fee_total_cents
,platform_fee_refund_total_cents
,submerchant_management_fees_cents
.
- Moved here:
disbursements
:- New keys:
disbursement_amount_total_cents
,disbursement_fee_total_cents
.
- New keys:
misc
:- New keys:
clearing_total_cents
,komoju_card_discount_total_cents
,chargeback_fixed_fee_total_cents
,other_fee_adjustments_total_cents
(this is the sum of all fee adjustments and any misc. record types that don't belong in other sections. Refer to the API reference for the exhaustive list).
- New keys:
- For each section, added a
total_cents
of each of its amounts.
- Added new
Full API Reference for this endpoint
GET settlements
GET settlements
Renamed one key name, added a number of new keys, and made changes to several returned values.
-
Renamed keys:
amount
is nowsettlement_amount_cents
in order to make the key more clear and less generic.
-
Added keys:
- NOTE: values for keys ending in
_cents
are returned as integers (not strings); any integers related to fees can be negative integers. transaction_amount_cents
fee_amount_cents
fee_tax_amount_cents
fx_currency
fx_conversion_rate
fx_conversion_amount_cents
bank_transfer_fee_amount_cents
remittance_amount_cents
- NOTE: values for keys ending in
-
Return value changes:
status
: "automatic_pending" is now returned as "pending".settlement_amount_cents
(formerlyamount
): the value ofsettlement_amount_cents
is now returned as an integer rather than a string.download
: all keys in this section (such ascsv
orxls
) will show "null" instead of a link if the settlement is cancelled. If the settlement is not cancelled, all links will point to an updated version of the report.
Full API Reference for this endpoint
GET settlements/:id
GET settlements/:id
Renamed two key names, added a number of new keys, made changes to several returned values, and transformed the response to a nested (2D) structure to include details for various kinds of payments and fees.
-
Renamed keys:
amount
is nowsettlement_amount_cents
in order to make the key more clear and less generic.
-
Removed keys:
payment_total
payment_fee_total
refund_total
refund_fee_total
refunded_customer_fee_total
correction_total
tax_total
balance_amount
-
Added keys:
- NOTE: values for keys ending in
_cents
are returned as integers (not strings); any integers related to fees can be negative integers. transaction_amount_cents
fee_amount_cents
fee_tax_amount_cents
fx_currency
fx_conversion_rate
fx_conversion_amount_cents
bank_transfer_fee_amount_cents
remittance_amount_cents
payments
captured_amount_total_cents
processing_fees_cents
total_cents
refunds
refunded_amount_total_cents
refund_processing_fees_cents
refunded_customer_fees_cents
total_cents
platform_model
(for platform merchants only)fund_transfer_total_cents
payment_share_total_cents
payment_share_refund_total_cents
platform_fee_total_cents
platform_fee_refund_total_cents
submerchant_management_fees_cents
(for platform merchants only)total_cents
corrections
total_cents
komoju_card_charges
total_cents
disbursements
disbursement_amount_total_cents
disbursement_fee_total_cents
total_cents
misc
clearing_total_cents
komoju_card_discount_total_cents
chargeback_fixed_fee_total_cents
other_fee_adjustments_total_cents
- this is the sum of all fee adjustments and any misc. record types that don't belong in other sections. Refer to the API reference for the exhaustive list.total_cents
- NOTE: values for keys ending in
-
Return value changes:
download
: all keys in this section (such ascsv
orxls\
) will show "null" instead of a link if the settlement is cancelled. If the settlement is not cancelled, all links will point to an updated version of the report.
Full API Reference for this endpoint
GET settlements/:id/csv
GET settlements/:id/csv
Updated format of the report.
- Return value changes:
- The format of the returned report has been updated.
Full API Reference for this endpoint
GET settlements/:id/xls
GET settlements/:id/xls
Updated format of the report.
- Return value changes:
- The format of the returned report has been updated.