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
Field | Description | Type | Required |
---|---|---|---|
id | Order ID. Read only. | int | |
lid | Site ID. | string | * |
dateInsert | Date order created. | datetime | |
dateUpdate | Date order updated. Read only. | datetime | |
personTypeId | Payer type ID. | int | * |
personxmlId | Payer type external ID. Read only. | string | |
statusId | Status ID. | char | |
dateStatus | Date status updated. Read only. | datetime | |
marked | Marked order. | char | |
dateMarked | Date order marked. Read only. | datetime | |
empMarkedId | User ID who performed marking. | int | |
reasonMarked | Reason for marking. | string | |
price | Price. | float | |
discountValue | Discount value. | float | |
taxValue | Order tax. Read only. | float | |
userDescription | User description. | string | |
additionalInfo | Additional information. | string | |
comments | Comments. | string | |
companyId | Company ID, associated with order. | int | |
responsibleId | Responsible ID. | int | |
recurringId | Subscription extension ID (if available). | char | |
lockedBy | Who blocked the order. | char | |
dateLock | Date blocked. Read only. | datetime | |
recountFlag | Recount flag (Y/N). | char | |
affiliateId | Affiliate ID. | int | |
orderTopic | Order subject. | string | |
xmlId | External ID. | string | |
statusxmlId | Status external ID. Read only. | string | |
version | Document version. Read only. | int | |
externalOrder | Flag Y/N: order from external system or not. | char | |
canceled | Cancelled. | char | |
dateCanceled | Cancellation date. Read only. | datetime | |
empCanceledId | Cancellation date. | int | |
reasonCanceled | Cancellation reason. | string | |
userId | Customer ID. | int | * |
currency | Currency. | string | * |
accountnumber | Account number. Read only. | string | |
payed | Order paid. Read only. | Int | |
deducted | Applied discount. Read only. | char |
© «Bitrix24», 2001-2024