TBBN.Merchant Platform docs
WORKING

TradeEngine

post/v1/trade-engine/settlement

The authoritative TradeValue/settlement computation — offer-service and trade-session-service call this rather than reimplementing the formula (TradeValue = OriginalPrice + RequestedAmount - WillingToPay per listing). All listings in a trade must share one currency; cross-currency settlement-of-record is not yet supported and is rejected outright.

Request body

FieldTypeRequired
listingIdsAstring[]yes
listingIdsBstring[]yes
extraAmountAnumber
extraAmountBnumber

Response (201)

FieldTypeRequired
currencystring
sideAValuenumber
sideBValuenumber
differencenumber
owingSideA | B |