Documentation

sale.order.getFields

sale.order.getFields()

The method returns order fields.

Parameters

No parameters.

Examples

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


Returned fields

FieldDescription TypeRequired
idOrder ID. Read only. int
lidSite ID. string*
dateInsertDate order created. datetime
dateUpdateDate order updated. Read only. datetime
personTypeIdPayer type ID. int*
personxmlIdPayer type external ID. Read only. string
statusIdStatus ID. char
dateStatusDate status updated. Read only. datetime
markedMarked order. char
dateMarkedDate order marked. Read only. datetime
empMarkedIdUser ID who performed marking. int
reasonMarkedReason for marking. string
pricePrice. float
discountValueDiscount value. float
taxValueOrder tax. Read only. float
userDescriptionUser description. string
additionalInfoAdditional information. string
commentsComments. string
companyIdCompany ID, associated with order. int
responsibleIdResponsible ID. int
recurringIdSubscription extension ID (if available). char
lockedByWho blocked the order. char
dateLockDate blocked. Read only. datetime
recountFlagRecount flag (Y/N). char
affiliateIdAffiliate ID. int
orderTopicOrder subject. string
xmlIdExternal ID. string
statusxmlIdStatus external ID. Read only. string
versionDocument version. Read only. int
externalOrderFlag Y/N: order from external system or not. char
canceledCancelled. char
dateCanceledCancellation date. Read only. datetime
empCanceledIdCancellation date. int
reasonCanceledCancellation reason. string
userIdCustomer ID. int*
currencyCurrency. string*
accountnumberAccount number. Read only. string
payedOrder paid. Read only. Int
deductedApplied discount. Read only. char

© «Bitrix24», 2001-2024