All URIs are relative to https://api.fortnox.se/3
Method | HTTP request | Description |
---|---|---|
add_voucher | POST /vouchers | Create a voucher |
Voucher add_voucher(body)
Create a voucher
The created voucher will be returned if everything succeeded, if there was any problems an error will be returned.
# load the gem
require 'standout_fortnox'
api_instance = StandoutFortnox::VouchersApi.new
body = StandoutFortnox::Voucher.new # Voucher | Voucher object to create
begin
#Create a voucher
result = api_instance.add_voucher(body)
p result
rescue StandoutFortnox::ApiError => e
puts "Exception when calling VouchersApi->add_voucher: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | Voucher | Voucher object to create |
No authorization required
- Content-Type: application/json
- Accept: application/json