Get Invoice Fields and Associated Products crm.invoice.fields
Choose a tool for developing with an AI agent:
- use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
- use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation
Scope:
crmWho can execute the method: any user
DEPRECATED
Development of this method has been halted. Please use Universal Methods for Invoices.
This method returns the description of the fields of an invoice, including custom fields.
No parameters are required.
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/crm.invoice.fields
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/crm.invoice.fields
try
{
const response = await $b24.callMethod(
'crm.invoice.fields',
{}
);
const result = response.getData().result;
if (result.error())
{
console.error(result.error());
}
else
{
console.dir(result);
}
}
catch(error)
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'crm.invoice.fields',
[]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
error_log($result->error());
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error fetching invoice fields: ' . $e->getMessage();
}
BX24.callMethod(
"crm.invoice.fields",
{},
function(result)
{
if(result.error())
console.error(result.error());
else
console.dir(result.data());
}
);
require_once('crest.php');
$result = CRest::call(
'crm.invoice.fields',
[]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
// client and ctx are already created — see the Go SDK section
res, err := client.Core().Call(ctx, "crm.invoice.fields", nil, b24.WithIdempotent())
if err != nil {
return fmt.Errorf("crm.invoice.fields: %w", err)
}
// The response arrives as json.RawMessage — unmarshal it
// into a struct matching the response shape shown below on this page.
fmt.Printf("%s\n", res.Result)
Returned Data
Required parameters are marked with *
|
Name |
Description |
Note |
|
ID |
Identifier |
Read-only |
|
ACCOUNT_NUMBER* |
Number |
|
|
COMMENTS |
Manager's comment |
|
|
CREATED_BY |
Created by user |
Read-only |
|
CURRENCY |
Currency identifier |
Read-only |
|
DATE_BILL |
Billing date |
|
|
DATE_INSERT |
Creation date |
|
|
DATE_MARKED |
Rejection date |
Provided if the invoice is rejected |
|
DATE_PAY_BEFORE |
Payment due date |
|
|
DATE_PAYED |
Date changed to paid status |
Read-only |
|
DATE_STATUS |
Date of status change |
Read-only |
|
DATE_UPDATE |
Date of update |
Read-only |
|
EMP_PAYED_ID |
Identifier of the user who last marked the invoice as paid |
Read-only |
|
EMP_STATUS_ID |
Identifier of the user who last changed the invoice status |
Read-only |
|
LID |
Site identifier |
Read-only |
|
XML_ID |
External code |
|
|
ORDER_TOPIC* |
Subject |
|
|
PAY_SYSTEM_ID* |
Identifier of the payment form |
|
|
PAY_VOUCHER_DATE |
Payment date |
Provided if the invoice is paid |
|
PAY_VOUCHER_NUM |
Payment document number |
Provided if the invoice is paid |
|
PAYED |
Payment status |
Read-only |
|
PERSON_TYPE_ID* |
Payer type identifier |
|
|
PRICE |
Amount |
Read-only |
|
REASON_MARKED |
Status comment |
Provided if the invoice is paid or rejected |
|
RESPONSIBLE_EMAIL |
Responsible person's e-mail |
Read-only |
|
RESPONSIBLE_ID |
Identifier of the responsible person |
|
|
RESPONSIBLE_LAST_NAME |
Last name of the responsible person |
Read-only |
|
RESPONSIBLE_LOGIN |
Login of the responsible person |
Read-only |
|
RESPONSIBLE_NAME |
First name of the responsible person |
Read-only |
|
RESPONSIBLE_PERSONAL_PHOTO |
Identifier of the responsible person's photo |
Read-only |
|
RESPONSIBLE_SECOND_NAME |
Middle name of the responsible person |
Read-only |
|
RESPONSIBLE_WORK_POSITION |
Position of the responsible person |
Read-only |
|
STATUS_ID |
Status identifier |
Identifier from the "INVOICE_STATUS" reference |
|
TAX_VALUE |
Tax amount |
Read-only |
|
UF_COMPANY_ID |
Company identifier |
Provided if the payer is a "Legal Entity" |
|
UF_CONTACT_ID |
Contact identifier |
Provided if the payer is an "Individual" or as a contact person for the company |
|
UF_MYCOMPANY_ID |
Identifier of your company |
Provided as the company with invoice details (the link to the details is set separately) |
|
UF_DEAL_ID |
Identifier of the associated deal |
|
|
USER_DESCRIPTION |
Comment |
|
|
PR_LOCATION |
Location identifier |
Required if using document tax mode |
|
INVOICE_PROPERTIES |
List of properties |
If the client is a company, the following keys may be specified (all values are of type string):
If the client is a contact:
|
|
PRODUCT_ROWS |
List of product items |
Fields of the product item:
|