We’re working with the Settlements endpoint and have some questions about what each SettlementEntry represents.
Should every SettlementEntry in a Settlement reference a Payment, Refund or Dispute using the payment_id field? Is this supposed to be 1-to-1 or 1-to-many?
Can you explain what a SettlementEntry with no payment_id and type = OTHER represents? Is there another object that this entry is linked to?
Each settlement entry should be telling you how the total settlement was calculated. Per the docs:
The returned Settlement objects include an entries field that lists the transactions that contribute to the settlement total. Most settlement entries correspond to a payment payout, but settlement entries are also generated for less common events, like refunds, manual adjustments, or chargeback holds.
OTHER is used when no other type matches, but I’m not sure for certain what it might stand for. Do you have a settlement_id that has this? I might be able to see what it’s meant to represent on our side.