All URIs are relative to https://api.fortnox.se/3
Method | HTTP request | Description |
---|---|---|
add_invoice_payment | POST /invoicepayments | Creates an invoice payment |
bookkeep_invoice_payment | PUT /invoicepayments/{Number}/bookkeep | Bookkeeps the invoice payment |
get_invoice_payment | GET /invoicepayments/{Number} | Retrieves a single invoice payment |
remove_invoice_payment | DELETE /invoicepayments/{Number} | Removes an invoice payment |
update_invoice_payment | PUT /invoicepayments/{Number} | Updates an invoice payment |
InvoicePayment add_invoice_payment(body)
Creates an invoice payment
Creates an invoice payment
# load the gem
require 'standout_fortnox'
api_instance = StandoutFortnox::InvoicePaymentsApi.new
body = StandoutFortnox::InvoicePayment.new # InvoicePayment | Invoice payment object that should be added
begin
#Creates an invoice payment
result = api_instance.add_invoice_payment(body)
p result
rescue StandoutFortnox::ApiError => e
puts "Exception when calling InvoicePaymentsApi->add_invoice_payment: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | InvoicePayment | Invoice payment object that should be added |
No authorization required
- Content-Type: application/json
- Accept: application/json
bookkeep_invoice_payment(number)
Bookkeeps the invoice payment
Bookkeeps the invoice payment
# load the gem
require 'standout_fortnox'
api_instance = StandoutFortnox::InvoicePaymentsApi.new
number = 56 # Integer | Numeric id of the invoice payment
begin
#Bookkeeps the invoice payment
api_instance.bookkeep_invoice_payment(number)
rescue StandoutFortnox::ApiError => e
puts "Exception when calling InvoicePaymentsApi->bookkeep_invoice_payment: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
number | Integer | Numeric id of the invoice payment |
nil (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
InvoicePayment get_invoice_payment(number)
Retrieves a single invoice payment
Retrieves a single invoice payment
# load the gem
require 'standout_fortnox'
api_instance = StandoutFortnox::InvoicePaymentsApi.new
number = 56 # Integer | Numeric id of the invoice payment
begin
#Retrieves a single invoice payment
result = api_instance.get_invoice_payment(number)
p result
rescue StandoutFortnox::ApiError => e
puts "Exception when calling InvoicePaymentsApi->get_invoice_payment: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
number | Integer | Numeric id of the invoice payment |
No authorization required
- Content-Type: application/json
- Accept: application/json
remove_invoice_payment(number)
Removes an invoice payment
Removes an invoice payment
# load the gem
require 'standout_fortnox'
api_instance = StandoutFortnox::InvoicePaymentsApi.new
number = 56 # Integer | Numeric id of the invoice payment
begin
#Removes an invoice payment
api_instance.remove_invoice_payment(number)
rescue StandoutFortnox::ApiError => e
puts "Exception when calling InvoicePaymentsApi->remove_invoice_payment: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
number | Integer | Numeric id of the invoice payment |
nil (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
InvoicePayment update_invoice_payment(number, body)
Updates an invoice payment
Updates an invoice payment
# load the gem
require 'standout_fortnox'
api_instance = StandoutFortnox::InvoicePaymentsApi.new
number = 56 # Integer | Numeric id of the invoice payment
body = StandoutFortnox::InvoicePayment.new # InvoicePayment | Invoice payment object that should be added
begin
#Updates an invoice payment
result = api_instance.update_invoice_payment(number, body)
p result
rescue StandoutFortnox::ApiError => e
puts "Exception when calling InvoicePaymentsApi->update_invoice_payment: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
number | Integer | Numeric id of the invoice payment | |
body | InvoicePayment | Invoice payment object that should be added |
No authorization required
- Content-Type: application/json
- Accept: application/json