Method: CDEKApiClient::API::Order#create

Defined in:
lib/cdek_api_client/api/order.rb

#create(order_data) ⇒ Hash

Creates a new order.

Parameters:

Returns:

  • (Hash)

    the response from the API.



18
19
20
21
# File 'lib/cdek_api_client/api/order.rb', line 18

def create(order_data)
  response = @client.request('post', 'orders', body: order_data)
  handle_response(response)
end