Loan Service
string · uuid · requiredstring · requiredinteger · int32 · required
loans--cancel
Operations addressed under /loans — 79 operations.
Rendered section: This page contains the cancel route group from loans. This is a presentation-only partition; it does not change the API contract or operation tags in the downloadable OpenAPI.
cancel-loan
POST
https://dg-sandbox.dgpays.com/loan-service
/loans/{id}/cancel
Add Authorization: Bearer <token> yourself — generated samples and Try it do not attach a credential.
Error codes this operation is known to raise
| Code | Status | Meaning |
|---|---|---|
ERR_LOAN_17 | 400 | LOAN_MUST_NOT_BE_NULL |
ERR_LOAN_75 | 400 | LOAN_STATUS_NOT_SUITABLE_TO_UPDATE |
path Parameters
idcancel-loan › Request Body
descriptionreasonPermitted values — validated against the cancel_reason parameter.
| Value | Meaning |
|---|---|
1 | customer request |
2 | Failed Transaction |
3 | Mismatched Transaction |
4 | Cancel For Rules |
5 | Cancel due to refund |
Permitted values — validated against the cancel_reason parameter. The service rejects any other value.
| Value | Token | Labels |
|---|---|---|
1 | customer request | en: customer request · tr: müşteri talebi · ar: طلب العميل |
2 | Failed Transaction | no label seeded |
3 | Mismatched Transaction | no label seeded |
4 | Cancel For Rules | en: Cancel For Rules · tr: Kurallar için iptal · ar: إلغاء وفقًا للقواعد |
5 | Cancel due to refund | en: Cancel due to refund · tr: İade ödemesi nedeniyle iptal et · ar: إلغاء بسبب استرداد المبلغ |
cancel-loan › Responses
Success. The catalog declares no response fields for this operation. The body is UNKNOWN CONTENT. The response type this route registers was read from the service's own source and is published on this operation as x-aura-code-response.
No data returned