public void PushCustomerOrderTransaction(OrderPayload payload) { var customerId = EnsureCustomerExists(payload); var order = _orderApi .Insert(payload.ToOrder(customerId)) .DeserializeFromJson <OrderParent>() .order; //var transaction = _orderApi // .InsertTransaction(order.id, payload.ToOrderTransaction()) // .DeserializeFromJson<TransactionParent>() // .transaction; }