All URIs are relative to https://api.fortnox.se/3
Method | HTTP request | Description |
---|---|---|
get_order | GET /orders/{documentNumber} | Get a specific order |
update_order | PUT /orders/{documentNumber} | Update order |
Order get_order(document_number)
Get a specific order
Retrieves the details of an order. You need to supply the unique document number that was returned when the order was created or retrieved from the list of orders.
# load the gem
require 'standout_fortnox'
api_instance = StandoutFortnox::OrdersApi.new
document_number = 56 # Integer | Document number
begin
#Get a specific order
result = api_instance.get_order(document_number)
p result
rescue StandoutFortnox::ApiError => e
puts "Exception when calling OrdersApi->get_order: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
document_number | Integer | Document number |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Order update_order(document_number, body)
Update order
Update an order, find by document number
# load the gem
require 'standout_fortnox'
api_instance = StandoutFortnox::OrdersApi.new
document_number = 56 # Integer | documentNumber of order to update
body = StandoutFortnox::Order.new # Order | Order object to be updated
begin
#Update order
result = api_instance.update_order(document_number, body)
p result
rescue StandoutFortnox::ApiError => e
puts "Exception when calling OrdersApi->update_order: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
document_number | Integer | documentNumber of order to update | |
body | Order | Order object to be updated |
No authorization required
- Content-Type: application/json
- Accept: application/json