Debt Payments#

Debt Payments represent payments received from debtors toward collection cases. These are recorded by the collection partner as payments come in.

The Debt Payment object#

AttributeTypeDescription
idstringUnique identifier with dp_ prefix
objectstringAlways "debt_payment"
casestringCollection Case ID
amountintegerPayment amount in smallest currency unit
currencystringISO 4217 currency code
typeenumfull_payment, partial_payment, installment
payment_datetimestampWhen the payment was received
payoutstringYour payout ID (after fee deduction)
fee_amountintegerCollection fee deducted
net_amountintegerAmount you receive
createdtimestampTime at which the object was created
{
  "id": "dp_pay_001",
  "object": "debt_payment",
  "case": "dc_a1b2c3d4",
  "amount": 120000,
  "currency": "eur",
  "type": "installment",
  "payment_date": 1707436800,
  "payout": "po_debt_001",
  "fee_amount": 17400,
  "net_amount": 102600,
  "created": 1707436800
}

List Debt Payments#

GET /v1/debt_payments

ParameterTypeDescription
casestringFilter by collection case
created[gte]timestampCreated on or after
limitintegerNumber of objects (1–100)
curl "https://api.casapay.com/v1/debt_payments?case=dc_a1b2c3d4" \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"

Retrieve a Debt Payment#

GET /v1/debt_payments/:id

curl https://api.casapay.com/v1/debt_payments/dp_pay_001 \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"