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:
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
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
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
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
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
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
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
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
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
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
Transformed the response to a nested (2D) structure to match the Merchant dashboard's Payout Balance page.
- Renamed keys:
balance_totalis nowtotal_balance_cents.
- Removed keys:
payment_fee_total,tax_total.
- Structural changes:
- Added new
payments,refunds,platform_model,corrections,komoju_card_chargesandmiscsections.payments:- Moved here:
payment_totalnow calledcaptured_amount_total - New keys:
processing_fees
- Moved here:
refunds:- Moved here:
refund_totalnow calledrefunded_amount_total_centsrefund_fee_totalnow calledrefund_processing_fees_centsand includes taxrefunded_customer_fee_totalnow calledrefunded_customer_fees_centsand 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_centsof each of its amounts.
- Added new
Full API Reference for this endpoint
GET settlements
Renamed one key name, added a number of new keys, and made changes to several returned values.
Renamed keys:
amountis nowsettlement_amount_centsin order to make the key more clear and less generic.
Added keys:
- NOTE: values for keys ending in
_centsare returned as integers (not strings); any integers related to fees can be negative integers. transaction_amount_centsfee_amount_centsfee_tax_amount_centsfx_currencyfx_conversion_ratefx_conversion_amount_centsbank_transfer_fee_amount_centsremittance_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_centsis now returned as an integer rather than a string.download: all keys in this section (such ascsvorxls) 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
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:
amountis nowsettlement_amount_centsin order to make the key more clear and less generic.
Removed keys:
payment_totalpayment_fee_totalrefund_totalrefund_fee_totalrefunded_customer_fee_totalcorrection_totaltax_totalbalance_amount
Added keys:
- NOTE: values for keys ending in
_centsare returned as integers (not strings); any integers related to fees can be negative integers. transaction_amount_centsfee_amount_centsfee_tax_amount_centsfx_currencyfx_conversion_ratefx_conversion_amount_centsbank_transfer_fee_amount_centsremittance_amount_centspaymentscaptured_amount_total_centsprocessing_fees_centstotal_cents
refundsrefunded_amount_total_centsrefund_processing_fees_centsrefunded_customer_fees_centstotal_cents
platform_model(for platform merchants only)fund_transfer_total_centspayment_share_total_centspayment_share_refund_total_centsplatform_fee_total_centsplatform_fee_refund_total_centssubmerchant_management_fees_cents(for platform merchants only)total_cents
correctionstotal_cents
komoju_card_chargestotal_cents
disbursementsdisbursement_amount_total_centsdisbursement_fee_total_centstotal_cents
miscclearing_total_centskomoju_card_discount_total_centschargeback_fixed_fee_total_centsother_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 ascsvorxls) 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
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
Updated format of the report.
- Return value changes:
- The format of the returned report has been updated.