> For the complete documentation index, see [llms.txt](https://ninja-lender.gitbook.io/api-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ninja-lender.gitbook.io/api-en/api-methods/resending.md).

# Resending

* Application must be purchased
* It works only if the function of sending data to the webhook is enabled. To activate this feature you need to contact us and provide a webhook\`s url.

**method:** POST

**url:** <https://ninjalender.online/client/loan/buy&#x20>;

**Headers:**

| header key     | header content    |
| -------------- | ----------------- |
| Content-Type:  | application/json; |
| Authorization: | Bearer AToken;    |

\
&#x20;Where AToken is the token that was received during authorization. &#x20;

**Request body:**

| Key    | Type        | Required | Description        |
| ------ | ----------- | -------- | ------------------ |
| params | JSON.object | +        | Request parameters |

&#x20;**params:**

| Key | Type | Required | Description |
| --- | ---- | -------- | ----------- |
| id  | int  | +        | id of loan  |

&#x20;**response:**

| Key     | Type   | Description   |
| ------- | ------ | ------------- |
| code    | int    | Response code |
| message | string | Message       |

&#x20;**Request example:**

```
{
  "params": {
    "id": 562
  }
}
```

&#x20;**Response example:**

```
[
  {
    "code": 0,
    "message": "ok"
  }
]
```

&#x20;**List of errors:**

| Key      | Message                                     |
| -------- | ------------------------------------------- |
| -99      | System error! Try again later or contact us |
| -98      | Expired token                               |
| -2000001 | Invalid token                               |
| -2040501 | Params is required                          |
| -2040502 | id must not be blank                        |
| -2040503 | Loan not found                              |
| -2040504 | Cant resend loan                            |
| -2040505 | Cant send loan of other organization        |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ninja-lender.gitbook.io/api-en/api-methods/resending.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
