Documentation

sale.order.getFields

sale.order.getFields()

The method returns order fields.

Returned fields:

Field Description
idOrder ID.
lidSite ID.
dateInsertDate when order is created.
dateUpdateDate when order is updated.
personTypeIdPayer type ID .
statusIdStatus ID.
dateStatusDate when status modified.
empStatusIdUser ID who changed status.
markedOrder marking.
dateMarkedDate when order is marked.
empMarkedIdUser ID who marked the order.
reasonMarkedReason to mark an order.
pricePrice.
discountValueDiscount value.
taxValueOrder tax value.
userDescriptionUser description.
additionalInfoAdditional information.
commentsComments.
companyIdCompany ID, binded to order.
responsibleIdResponsible party ID.
datePayBeforeDate of previous purchase.
dateBillDate of invoice.
recurringIdRecurring subscription code (if any).
lockedByWho blocked the order.
dateLockDate when blocked.
recountFlagRecount flag (Y/N).
affiliateIdAffiliate identifier.
deliveryDocNumNumber of shipment document.
deliveryDocDateDate when shipment document is created.
updated1cUpdate via 1С.
orderTopicOrder topic.
xmlIdExternal ID.
id1cID in 1С.
versionDocument version.
version1cVersion in 1С.
externalOrderFlag Y/N: order via external system.
canceledCancellation status.
empCanceledIdDate when cancelled.
reasonCanceledReason for cancelling.
userIdClient ID.
currencyCurrency.

Parameters

No parameters.

Examples

BX24.callMethod(
    'sale.order.getFields', 
    {}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2021, «Bitrix Inc.», 2021