improved the customer api creation/edition