My Products
Help
kashyap
PARTNER

How do we get order type and transaction type list in API?

by kashyap

We are planning to create sales order or invoice type orders via API. API require Order type and Transaction type.  How we can get the list for both types? We are planning to display this list in our integration setting page, so user can select as per thier needs.

1 REPLY 1
omelhus
PARTNER

by omelhus
export enum OrderTypeEnum {
    NormalOrder = 1,
    DirectOrder = 2,
    CashOrder = 3,
    RealisedOrder = 4,
    QuotationOrder = 5,
    UnprocessedOrder = 6,
    AdvanceOrder = 7,
    BudgetOrder = 8,
    CreditCardOrder = 9,
}

export enum TransactionTypeEnum {
    Sales = 1,
    Hire = 2,
    Loan = 3,
    Loss = 4,
    FurtherProcessing = 5,
    Purchase = 6,
    Production = 7,
    StockTransfer = 8,
}