code: public function createCustomer(array $data)
      {
          $response = $this->sendRequest('POST', 'customers', ['content-type' => 'application/json'], json_encode($data));
  
          $result = $this->processResponse($response);
  
          if ($result['code'] == '0') {
              $customer = $result['customer'];
  
              return $customer;
          } else {
              return false;
          }
      }
docs: @param array $data
  
  @throws \Exception
  
  @return array|bool