API and Order function update