Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.15 KB

VouchersApi.md

File metadata and controls

56 lines (34 loc) · 1.15 KB

StandoutFortnox::VouchersApi

All URIs are relative to https://api.fortnox.se/3

Method HTTP request Description
add_voucher POST /vouchers Create a voucher

add_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.

Example

# 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

Parameters

Name Type Description Notes
body Voucher Voucher object to create

Return type

Voucher

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json