For AI agents: markdown of this page — /docs-content-en/entities/requisite-links/get.md documentation index — /llms.txt
Get a requisite link
GET /v1/requisite-links/:entityTypeId/:entityId
Returns a specific requisite link by the owner identifier pair.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ParameterentityTypeId (path) |
Typenumber | Requiredyes | DescriptionLink owner type. Values — Link fields |
ParameterentityId (path) |
Typenumber | Requiredyes | DescriptionOwner ID. The source depends on the type — see the same reference |
Examples
curl — personal key
curl "https://vibecode.bitrix24.com/v1/requisite-links/2/3773" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl "https://vibecode.bitrix24.com/v1/requisite-links/2/3773" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const entityTypeId = 2
const entityId = 3773
const res = await fetch(
`https://vibecode.bitrix24.com/v1/requisite-links/${entityTypeId}/${entityId}`,
{ headers: { 'X-Api-Key': 'YOUR_API_KEY' } },
)
const { success, data } = await res.json()
console.log('Client requisite:', data.requisiteId)
JavaScript — OAuth application
const entityTypeId = 2
const entityId = 3773
const res = await fetch(
`https://vibecode.bitrix24.com/v1/requisite-links/${entityTypeId}/${entityId}`,
{
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
},
)
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata |
Typeobject | DescriptionLink object |
Fielddata.entityTypeId |
Typenumber | DescriptionOwner type. Values — Link fields |
Fielddata.entityId |
Typenumber | DescriptionOwner ID |
Fielddata.requisiteId |
Typenumber | DescriptionAttached client requisite ID, 0 — not linked. Source: GET /v1/requisites |
Fielddata.bankDetailId |
Typenumber | DescriptionAttached client bank detail ID, 0 — not linked. Source: GET /v1/bank-details |
Fielddata.mcRequisiteId |
Typenumber | DescriptionYour company's requisite ID, 0 — not linked |
Fielddata.mcBankDetailId |
Typenumber | DescriptionYour company's bank detail ID, 0 — not linked |
Response example
{
"success": true,
"data": {
"entityTypeId": 2,
"entityId": 3773,
"requisiteId": 45,
"bankDetailId": 0,
"mcRequisiteId": 0,
"mcBankDetailId": 0
}
}
Error response example
404 — there is no link for this pair:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "Not found"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionBitrix24 returned a "not found" error: there is no link for the entityTypeId and entityId pair, or the owner entity itself does not exist |
| HTTP404 | CodeNOT_FOUND |
DescriptionBitrix24 returned an empty result instead of an error — there is no link for this pair |
| HTTP400 | CodeINVALID_ANCHOR |
DescriptionentityTypeId or entityId in the path is not a positive integer |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionAPI key lacks the crm scope |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionAPI key has no configured tokens |
Full list of common API errors — Errors.
Known specifics
A link has no separate numeric id. It is identified by the pair of owner values — entityTypeId and entityId, both passed in the path.
A missing link and missing attachments are different states. If the link was never registered, the response is 404. If the link is registered but no requisite is attached to it, the response is 200 and all four identifiers equal 0.