201Successful Response
Schema: SuccessEnvelope_PaymentResponse_
successbooleanmessagestringcodestringdataapp__api__v1__schemas__credit_line__PaymentResponse
/api/v1/credit/paymentsRecords a debit the partner executed and returns the allocation and corrected balances in one response. Allocation is not selectable: oldest loan first, and within a loan accrued interest, then the disbursement fee, then principal (D-10, D-11). paid_on is the date the money landed. Send pending: true to record an initiated debit without allocating, then confirm settlement. Pass loan_id for the per-row Pay action, subject to the per-loan minimum (D-09). Idempotent on external_payment_id.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: PaymentRecordRequest
credit_line_idstringexternal_line_idstringexternal_payment_idstringrequiredPartner payment ID. The idempotency key.
amount_centsintegerrequiredpaid_onstring · daterequiredThe date the payment counts from: when the money landed, not when the merchant pressed Pay (§10.6). A partner reporting at initiation sends pending=true and confirms settlement later.
methodstringloan_idstringPer-row Pay (§7.2): allocate to this loan only. Subject to the per-loan minimum (D-09).
pendingbooleanRecord the debit as initiated but not settled. Nothing is allocated until settlement is confirmed (O-10).
Schema: SuccessEnvelope_PaymentResponse_
successbooleanmessagestringcodestringdataapp__api__v1__schemas__credit_line__PaymentResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.