SalesMania
    SalesMania
    • Authentication & Select Database
      • Get bearer token from Basic Auth
        GET
      • Get list of databases
        GET
      • Get team token for a selected database
        GET
    • Customers
      • Get customers
        GET
      • Add new customer
        POST
      • Get customer by ID
        GET
      • Update customer by ID
        PATCH
      • Delete customer by ID
        DELETE
    • Products
      • Get products
        GET
      • Add new product
        POST
      • Get product by ID
        GET
      • Update product by ID
        PATCH
      • Delete product by ID
        DELETE
    • Visits
      • Get visits
        GET
      • Add new visit
        POST
    • Orders
      • Add new order
        POST
      • Get order by ID
        GET
      • Update order by ID
        PATCH
    • Team
      • Get teams
        GET
    • Schemas
      • Customer
      • Product
      • Ext Order
      • Webhook External Order

    Ext Order

    {
        "ext_cust_no": "string",
        "ext_cust_id": 0,
        "ext_salesman_number": "string",
        "ext_order_id": "string",
        "trans_date": "2025-01-01",
        "disc_amount": 0,
        "disc_percent": "string",
        "description": "string",
        "sm_company_id": 0,
        "sm_customer_id": 0,
        "sm_team_id": 0,
        "sm_order_id": 0,
        "sm_status": "string",
        "ordered_product": [
            {
                "ext_product_code": "string",
                "ext_product_id": 0,
                "qty": 0,
                "price": 0,
                "item_disc_percent": "string",
                "item_disc_amount": 0,
                "unit": {
                    "name": "string",
                    "ratio": 0
                },
                "description": "string",
                "sm_product_id": 0
            }
        ]
    }
    Built with