Objects
Text template
An text_template in SK
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
Kind of object the template can be used for. If empty the snippet can be used global. In this case watch not all placeholders are available: a client has different fields than an invoice.
Valid Values, invoice, estimate, credit_note, payment_reminder, order, contact, email
A meaningful name.
A team uuid. If set only the team and its parent teams can see the record.
Text which may contain placeholders, replaced when the template is used.
Links
/api/text_templates?page=Value&per_page=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| sort_by |
string
(enum)
[created_at, updated_at] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Export
An export in SK
Readonly Properties
The exported data as attachment.
SeeDate the object was created in SK. Never changes afterwards
Date the was finished
Unique identifier - UUID
IDENTITYtrue
Errors and warnings, can contain html markup f.ex. links to contacts with invalid back accounts when doing dtaus export
Date the was started
The export status
Valid Valuespending, in_progress, failed, success
Date the object was edited in SK.
Writable Properties
Comma separated uuid's of the export objects. The backend uses a mysql text-column limited to ~64kb. 100 uuids are ~2.5kb
The type of data to export. Lower-case singular name of the export data's class(invoice,contact..), see available classes in json schema. Not required for text-exports, getting the type from the export_template.
The export type. text: uses an export template defined by a template_id. archived_pdf: zip with archived PDF(documents only). allinone_pdf: All archived PDF(Documents) in one big PDF. attachments: All attachments of the given objects as zip. dtaus: German bank format, relies on valid bank information in your company and for each client of the exported documents. dtaus_lk Lastschrift. dtaus_gk: Gutschrift.
Valid Valuestext, archived_pdf, attachments, dtaus_lk, dtaus_gk, allinone_pdf
A team uuid. If set only the team and its parent teams can see the record.
A export template uuid. Required for text exports. collection_type can be empty as is forced to the templates type
Links
/api/exports?per_page=Value&filter[from]=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[from] | string (date) |
All objects with a date after the date |
| filter[to] | string (date) |
All objects with date before the date |
| sort_by |
string
(enum)
[created_at, updated_at] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Document
This resource is readonly and serves as a convenient way to query documents independent of their type(invoice, order,..). The specific document type is set in each object in the result-set. Internally Document is the base class for all types and special fields are defined in each child-class. Due to this some fields might be missing if you are using this meta-class in queries.
Readonly Properties
Date the object was created in SK. Never changes afterwards.
The exchange rate from the company currency(eg. EUR) to the document currency(USD). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).
Gross total of all line items, 2 decimals places in document currency.
Exchanged gross total, in your company currency.
Unique identifier - UUID
IDENTITYtrue
Net total, 2 decimals places
Net total, 6 decimal places incl. discount
Tax total, 2 decimals places
Date the object was edited in SK.
Writable Properties
Receiver address, normally shown in envelope window. Defaults to client address_field.
DEPRECATED: use contact_id
The contact uuid. When assigning a contact its language, currency, address_field (due days, cash discount) values are used for the document if those doc-fields are not set.
Currency code as defined by the ISO 4217 standard. 3-letter UPCASE: EUR, USD
Date the document is issued. Automatically set when document is opened. Required for non-draft documents.
Some external reference, whatever this may be.
Items for the document. Access items of all types including divider and sub_total items.
DEFAULTany
ITEMS[{"$ref"=>"./line_item.json#properties"}, {"$ref"=>"./divider_item.json#properties"}, {"$ref"=>"./sub_total_item.json#properties"}]
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.
Line items for the document
ITEMS{"$ref"=>"./line_items.json#properties"}
Notes shown after the line items. Can contain information about payments, bank account or a thank-you message. SK placeholders can be used.
Notes shown before the line items. Normally contains salutation and other introductional information. SK placeholders can be used.
Unique number assigned by a user or automatic by the object's number schema.
The specific type of the document singular CamelCased: Invoice, PaymentReminder
Space separated list of tags. Are split and saved as Tag objects on create, update.
A team uuid. If set only the team and its parent teams can see the record.
The headline of a document. Use SK placeholders to prevent excessive typing e.g. 'Your invoice [number]'
Links
/api/documents?filter[created_at_from]=Value&sort_by=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in title, number, address field |
| filter[number] | string |
Find by exact number |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[from] | string (date) |
Objects with a date after the date |
| filter[to] | string (date) |
Objects with date before the date |
| filter[created_at_from] | string (date-time) |
Objects with a creation date after the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[created_at_to] | string (date-time) |
Objects with a creation date before the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[languages] | string |
A list of language codes, comma separated |
| filter[client_ids] | string |
DEPRECATED use contact_ids |
| filter[contact_ids] | string |
A single or a list of contact uuids, comma separated |
| filter[ids] | string |
A single or a list of document uuids, comma separated |
| filter[creator_ids] | string |
Objects created by the given users uuids, comma separated |
| sort_by |
string
(enum)
[title, number, created_at, updated_at, price_total, price_tax, date, due_date] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Export template
An export_template in SK
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
Name of the created export file. Date placeholders can be used: %y-%m-%d_%H-%M_clients.csv
Kind of object the template can be used for.
Valid Valuesinvoice, estimate, credit_note, payment_reminder, order, contact, payment, comment, email, history, product, recurring
A meaningful name.
A team uuid. If set only the team and its parent teams can see the record.
Text with placeholders, replaced when the template is used.
Links
/api/export_templates?sort_by=Value&page=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| sort_by |
string
(enum)
[created_at, updated_at] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Product
A product in SK
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
Product description
Increased on every edit, so SK can detect/prevent a concurrent edit by another user. First save wins.
The name of the product
Unique number assigned by you or if empty SK product number schema.
Net price of a single product
Unit like kg, days, month.
Space separated list of tags. Are split and saved as Tag objects on create, update.
Tax percentage for this product.
A team uuid. If set only the team and its parent teams can see the record.
Links
/api/products?sort_by=Value&filter[q]=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | ["string", "number"] |
Wildcard search in number, name, description, price |
| filter[number] | string |
Search by exact number |
| filter[tags] | string |
Filter by a space delimited list of tags |
| sort_by |
string
(enum)
[name, number, price, created_at, updated_at] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
User
A user as seen by SalesKing
Readonly Properties
Date the record was created in SK. Never changes afterwards.
Unique identifier - UUID
IDENTITYtrue
Last date when the record was edited.
Writable Properties
Email address of the user. Unique in SK
First name
The users gender, used in salutation
Valid Valuesmale, female
The users language, reflected in the interface.
Last name of a person. At least this or the organisation field must be filled for new records
Fax number
Private phone number.
Mobile phone number
Office phone number
Position of a person in a company.
Time zone
Academical title of a person e.g. Dr., Prof
An url associated with the person, e.g its company website.
Links
Sub total item
A sub-total item shows a sum of the previous line items, e.g. to distinguish hardware and service costs on a document.
Readonly Properties
Date the object was created in SK. Never changes afterwards
Gross sub-total
Unique identifier - UUID
IDENTITYtrue
Net sub-total
Date the object was edited in SK.
Writable Properties
When set an existing item will be deleted. This switch is used for items passed-in nested inside their parent object(a document), which is default as long as there is no line item endpoint available.
Title of the sub-total e.g. Hardware total
Required since items are sorted by position.
Links
Comment
An comment in SK must always be related to an object.
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
uuid of the comments parent object.
Object type of the comments parent. Is the camelcased base class name: Document for invoice, credit_note, contact
A team uuid. If set only the team and its parent teams can see the record.
The comment himself.
Links
/api/comments?filter[from]=Value&per_page=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in text |
| filter[from] | string (date) |
All objects with a date after the date |
| filter[to] | string (date) |
All objects with date before the date |
| sort_by |
string
(enum)
[created_at, updated_at] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Attachment
An file attachment
Readonly Properties
Auto detected on upload. Might not always reflect the real content type
Date the object was created in SK. Never changes afterwards
Unique filename set by SK
The filename as set when uploaded
uuid of the object.
IDENTITYtrue
Filesize in kb. Auto detected on upload.
DEPRECATED use attachments/ID/download
Writable Properties
True if the file(pdf) has been digitally signed.
uuid of the attachment parent object.
Object type of the attachment parent. A base class name: Document(for invoice, credit_note) Contact, Message(for email), Template(for email, pdf template)
A team uuid. If set only the team and its parent teams can see the record.
Links
/api/attachments?per_page=Value&sort=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in filename |
| filter[from] | string (date) |
All objects created at and after the date |
| filter[to] | string (date) |
All objects created at and before the date |
| filter[related_object_type] | string (date) |
All objects belonging to the given object type. The singular base class name like: Document, Contact, Export, Message |
| sort_by |
string
(enum)
[filename, related_object_id, related_object_type, created_at] |
Sort the results by the given field |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Invoice
An invoice
Readonly Properties
Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one.
SeeThe contact for the document. Use contact_id field to set a contact.
SeeDate the object was created in SK. Never changes afterwards.
The exchange rate from the company currency(eg. EUR) to the document currency(USD). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).
Gross total of all line items, 2 decimals places in document currency.
Exchanged gross total, in your company currency.
Unique identifier - UUID
IDENTITYtrue
Net total, 2 decimals places
Net total, 6 decimal places incl. discount
Deprecated: use tax_total
Deprecated use net_total_base_raw
Tax total, 2 decimals places
Date the object was edited in SK.
Writable Properties
Receiver address, normally shown in envelope window. Defaults to client address_field if empty and client_id given.
DEPRECATED: use contact_id
The contact uuid. When assigning a contact its language, currency, address_field (due days, cash discount) values are used for the document if those doc-fields are not set.
Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)
Date the invoice is issued. Automatically set when invoice is opened. Required for non-draft documents.
Auto-calculated from date + due days if empty and the document is opened.
Used to calculate the due date of the document. Useless if date and due date are present.
Some external reference, whatever this may be.
Items for the document. Access items of all types including divider and sub_total items. Item creation is currently only supported through line_items array.
DEFAULTany
ITEMS[{"$ref"=>"./line_item.json#properties"}, {"$ref"=>"./divider_item.json#properties"}, {"$ref"=>"./sub_total_item.json#properties"}]
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.
Line items for the document
SeeAuto-incremented to prevent concurrent updates. First save wins and increments version.
Notes shown after the line items. Can contain information about payments, bank account or a thank-you message. SK placeholders can be used.
Notes shown before the line items. Normally contains salutation and other introductional information. SK placeholders can be used.
Unique number assigned by SK invoice number schema. Auto-assigned when invoice is opened. Required unless doc status is draft.
How the document is being payed. Used in new payments.
Valid Valuescash, bank_transfer, credit_card, paypal, direct_debit, cheque, moneybookers, premium_sms
Defaults to draft for new documents, unless otherwise stated. For new documents with status 'open' or 'closed' or doc where the status changes away from draft, following fields are set if empty: number(next in number schema), date(today), due date(due_days must be given). Only draft documents can be deleted. Beware that the overdue-status is virtual as it depends on the real status=open and the document date.
DEFAULTdraft
Valid Valuesdraft, open, closed, overdue
Space separated list of tags. Are split and saved as Tag objects on create, update.
A team uuid. If set only the team and its parent teams can see the record.
The headline of a document. Use SK placeholders to prevent excessive typing e.g. 'Your invoice [number]'
Links
/api/invoices?sort_by=Value&filter[contact_ids]=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in title, number, address field |
| filter[number] | string |
Find by exact number |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[from] | string (date) |
Objects with a date after the date |
| filter[to] | string (date) |
Objects with date before the date |
| filter[languages] | string |
A list of language codes, comma separated |
| filter[client_ids] | string |
DEPRECATED use contact_ids |
| filter[contact_ids] | string |
A single or a list of contact uuids, comma separated |
| filter[ids] | string |
A single or a list of document uuids, comma separated |
| filter[creator_ids] | string |
Objects created by the given users uuids, comma separated |
| sort_by |
string
(enum)
[title, number, created_at, updated_at, price_total, price_tax, date, due_date] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
/api/invoices?source=Value&cancel=Value
| Name | Type | Description / Example |
|---|---|---|
| source | string |
Copies the source(excl. number,date) and returns a new draft document. Fields passed with the object(e.g. notes, title, address_field) are not overwritten. If the source is an Estimate or Order only line_items, contact & tags are copied. |
| cancel | boolean - Depends on: source |
Cancelling a document copies the source and negates all line item values. A source id must be set. |
/api/invoices/{id}/print?base64=Value&template_id=Value
| Name | Type | Description / Example |
|---|---|---|
| template_id * |
UUID of a pdf template used to print the document. MUST be present |
|
| base64 |
If set(any val) the new pdf is returned inside the attachment JSON within 'base64' key. Ommit to save traffic. |
Tag
A tag
Readonly Properties
Unique identifier - UUID
IDENTITYtrue
The tag itself
Usage count of this tag, for all objects in whole company scope.
Writable Properties
Links
/api/tags?sort_by=Value&sort=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in name |
| filter[related_object_type] | string |
Filter tags by their related object base type |
| sort_by |
string
(enum)
[filename, taggings_count] |
Sort the results by the given field |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Company
A company is the main entity, so any data belongs to a company. It is identified by the current subdomain and cannot be edited via API atm
Readonly Properties
Link to a company's SalesKing account.
Date the record was created in SK. Never changes afterwards.
Unique identifier - UUID
IDENTITYtrue
Last date when the record was edited.
Writable Properties
A company can have many addresses, sorted by date descending(new first). Default address used in placeholder is the most recent one.
SeeBank account number.
IBAN Number of the bank account. Is validated
Bank name
Bank number
Bank account owner
SWIFT BIC- Bank Identifier Code
Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)
Email address
Default language, used for new users. Must be a valid language available in SalesKing
Company name
Fax number
Mobile phone number
Office phone number
Unique subdomain identifying the company's SalesKing account.
Tax number, normally applies to a private person running a small business.
Default time zone, used for new users
A company website
VAT number, for a company entitled to pay value added taxes.
Links
An email in SK must always be related to an object. Receivers are limited to 5 per address field.
Readonly Properties
The emails attachments.
SeeDate the object was created in SK. Never changes afterwards
Date the email was delivered by SK. If set, the message cannot be edited anymore.
Unique identifier - UUID
IDENTITYtrue
Is set after an email has been scheduled for sending until it has been sent.
Date the object was edited in SK.
Writable Properties
BCC addresses, comma separated. Max 5, format: a@b.de,'George'
The email text.
CC addresses, comma separated. Max 5, format: a@b.de,'George'
From address. If empty the email of the current user is taken.
uuid of the emails parent object.
Object type of the emails parent. Is the camelcased base class name: Document for invoice, credit_note, contact,..
The email subject.
A team uuid. If set only the team and its parent teams can see the record.
TO addresses, comma separated. Max 5, format: a@b.de,'George'
Links
/api/emails?per_page=Value&filter[draft]=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in body and subject |
| filter[sent] |
Show only sent emails |
|
| filter[draft] |
Show only draft emails |
|
| filter[address] |
Searches in all address fields: bcc, cc, to, from |
|
| filter[from] | string (date) |
All objects updated on/after the date |
| filter[to] | string (date) |
All objects updated on/before the date |
| sort_by |
string
(enum)
[created_at, updated_at] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
/api/emails?send=Value&archived_pdf=Value
| Name | Type | Description / Example |
|---|---|---|
| template_id | string |
UUID of an email template to use. If present, subject, body and attachments of the template are used for the current email. |
| send |
Schedule email for sending. Omit this parameter or set value to 0 or false(String or Integer) to keep email as draft. |
|
| archived_pdf |
Adds the archived pdf from the related resource(if it has one). |
Language
A language in SK can be assigned to documents, contacts and templates. When creating new documents, emails or PDF the language is used to select a specific template or language agnostic defaults. A language has many translations.
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
Language short-code
The name of the language, shown in the interface
Links
/api/languages?sort=Value&sort_by=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| sort_by |
string
(enum)
[name, code, created_at, updated_at] |
Sort the results by the given field => code |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Email template
An email_template in SK
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
Body with placeholders, replaced when the template is used.
Kind of object the template can be used for.
Valid Valuesinvoice, estimate, credit_note, payment_reminder, order, contact
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. A multi-language template must belong to a parent. From then on just choose the parent-template and the localized child version is used if the related object(client, invoice,..) of the email, has the appropriate language.
A meaningful name.
Subject containing placeholders, replaced when the template is used.
A team uuid. If set only the team and its parent teams can see the record.
Links
/api/email_templates?sort_by=Value&per_page=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| sort_by |
string
(enum)
[created_at, updated_at] |
Sort the results by the given field |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
| filter[q] | string |
Searches in name, body, subject |
| filter[kind] |
string
(enum)
[invoice, estimate, credit_note, payment_reminder, order, contact] |
Kind of object this template can be used for |
Payment
An payment in SK must always be related to an document.
Readonly Properties
The exchanged amount.
Date the object was created in SK. Never changes afterwards
The exchange rate from the company currency(eg. EUR) to the document currency(USD). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).
Unique identifier - UUID
IDENTITYtrue
Writable Properties
The payment amount
The cash discount amount. If a client withdraws a cash discount say 2% of 100€, he pays 98€ used in amount and 2€ in cash_discount. Handled separate for correction of sales,vat accounts in bookkeeping.
Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)
Date the payment was made.
Reference number f.ex. issued by the bank.
If set the related document is NOT closed.
DEFAULTfalse
How the payment was made.
Valid Valuescash, bank_transfer, credit_card, paypal, direct_debit, cheque, moneybookers, premium_sms
uuid of the payments parent object.
Object type of the payments parent. Is the camel-cased base class name: Document for invoice, credit_note
A team uuid. If set only the team and its parent teams can see the record.
Links
/api/payments?sort=Value&sort_by=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in title, number, address field |
| filter[from] | string (date) |
All objects with a date after the date |
| filter[to] | string (date) |
All objects with date before the date |
| sort_by |
string
(enum)
[amount, created_at, updated_at] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
/api/payments?late_fee=Value
| Name | Type | Description / Example |
|---|---|---|
| late_fee | number |
If an invoice has payment reminders with a late fee, add the late fee here if it was paid. We create a second payment for the last reminder and close it. |
Credit note
A credit note
Readonly Properties
Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one.
SeeThe contact for the document. Use contact_id field to set a contact.
SeeDate the object was created in SK. Never changes afterwards.
The exchange rate from the company currency(eg. EUR) to the document currency(USD). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).
Gross total of all line items, 2 decimals places in document currency.
Exchanged gross total, in your company currency.
Unique identifier - UUID
IDENTITYtrue
Net total, 2 decimals places
Net total, 6 decimal places incl. discount
Deprecated: use tax_total
Deprecated use net_total_base
Tax total, 2 decimals places
Date the object was edited in SK.
Writable Properties
Address field with the receiver. Shown in envelope window.
DEPRECATED: use contact_id
The contact uuid. When assigning a contact its language, currency, address_field (due days, cash discount) values are used for the document if those doc-fields are not set.
Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)
Date the credit note is issued. Automatically set when document is opened. Required unless doc status is draft.
Auto-calculated from date + due days if empty and the document is opened.
Used to calculate the due date of the credit note. Useless if date and due date are present.
Some external reference, whatever this may be.
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.
Line items for the document
SeeAuto-incremented to prevent concurrent updates. First save wins.
Notes shown after the line items. Can contain information about payments, bank account or a thank-you message. SK placeholders can be used.
Notes shown before the line items. Normally contains salutation and other introductional information. SK placeholders can be used.
Unique number assigned by SK credit note number schema. Auto-assigned when document is opened. Required unless doc status is draft.
How the document is being payed. Used for new payments.
Valid Valuescash, bank_transfer, credit_card, paypal, direct_debit, cheque, moneybookers, premium_sms
Defaults to draft for new documents, unless otherwise stated. For new documents with status 'open' or 'closed' or doc where the status changes away from draft, following fields are set if empty: number(next in number schema), date(today), due date(due_days must be given). Only draft documents can be deleted.
DEFAULTdraft
Valid Valuesdraft, open, closed
Space separated list of tags. Are split and saved as Tag objects on create, update.
A team uuid. If set only the team and its parent teams can see the record.
The headline of a document. Use SK placeholders to prevent excessive typing e.g. 'Your credit note [number]'
Links
/api/credit_notes?filter[created_at_to]=Value&filter[q]=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in title, number, address field |
| filter[number] | string |
Find by exact number |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[from] | date |
Objects with a date on and after the date |
| filter[to] | date |
Objects with date before and on the date |
| filter[created_at_from] | string (date-time) |
Objects with a creation date after the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[created_at_to] | string (date-time) |
Objects with a creation date before the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[languages] | string |
A list of language codes, comma separated |
| filter[client_ids] | string |
A single or a list of client uuids, comma separated |
| filter[ids] | string |
A single or a list of document uuids, comma separated |
| filter[creator_ids] | string |
Objects created by the given users uuids, comma separated |
| sort_by |
string
(enum)
[title, number, created_at, updated_at, price_total, price_tax, date, due_date] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
/api/credit_notes?cancel=Value&source=Value
| Name | Type | Description / Example |
|---|---|---|
| source |
Copies the source(excl. number,date) and returns a new draft document. Fields passed with the object(e.g. notes, title, address_field) are not overwritten. |
|
| cancel | - Depends on: source |
Cancelling a document negates its line item values. A source id must be set. |
/api/credit_notes/{id}/print?template_id=Value&base64=Value
| Name | Type | Description / Example |
|---|---|---|
| template_id * |
UUID of a pdf template used to print the document. MUST be present |
|
| base64 |
If set the new pdf is returned inside the attachment JSON within 'base64' key. Leave empty to save traffic. |
Pdf template
An PDF template. For now this is a read-only resource ONLY returning your own templates. It fits the most important use-case: A user can select a print template.
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
Additional information about the template.
Kind of object the template can be used for.
Valid Valuesinvoice, estimate, credit_note, payment_reminder, order
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. A multi-language template should belong to a parent. From then on just choose the parent-template and the localized child version is used for printing if the related object(order, invoice,..) has the appropriate language.
Name of the template as shown to the user.
A team uuid. If set only the team and its parent teams can see the record.
Links
/api/pdf_templates?page=Value&per_page=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| sort_by |
string
(enum)
[created_at, updated_at, name, kind] |
Sort the results by the given field |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
| filter[q] | string |
Searches in name, description |
| filter[kind] |
string
(enum)
[invoice, estimate, credit_note, payment_reminder, order] |
Kind of object this template can be used for: invoice, order |
Auth permission
A Permission authorises someone to execute actions(grants privileges) in the scope of a context. The context is a resource f.ex: clients, and the privileges a group of actions like: index, show, edit, update. A permission to read invoices has the context: invoices and as privileges: index,show.
Readonly Properties
The context for the permission, being a resource: clients, emails
Unique identifier - UUID
IDENTITYtrue
A permission has many privileges which define the actions someone can execute. Such actions are resource methods like index, update, edit, show
Writable Properties
Context_name and name localized: API Clients read - API Kunden anzeigen
Name for the permission. Since a permission groups multiple privileges the name reflects what someone is allowed to do: read, update, delete. With 'read' granting acccess to the 'index' and 'show' actions of a resource.
Links
/api/auth_permissions?filter[q]=Value&sort=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in name and context names |
| sort_by |
string
(enum)
[auth_permission.name, auth_context.name] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Payment reminder
A payment reminder
Readonly Properties
Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one.
SeeThe contact for the document. Is assigned through the related invoice.
SeeThe contact uuid. Is assigned through the related invoice.
Date the object was created in SK. Never changes afterwards.
The exchange rate from the company currency(eg. EUR) to the document currency(USD). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).
DEPRECATED use net_total bcs there are no taxes applied
Exchanged gross total, in your company currency.
Unique identifier - UUID
IDENTITYtrue
Net total, 2 decimals places
Date the object was edited in SK.
Writable Properties
Receiver address, shown in envelope window. Defaults to invoice.client.address_field if created from invoice.
DEPRECATED: use contact_id
Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)
Date the payment_reminder is issued. Automatically set when created from invoice. Defaults to today.
Auto-calculated from date + due days if empty and the payment_reminder is opened.
Used to calculate the due date of the payment_reminder. Useless if date and due date are present. Taken from settings when created from invoice
Some external reference, whatever this may be.
The invoice for the reminder. If set assumes all other fields are set to custom values, instead of filling them from the invoice. POSTing to invoices/:id/payment_reminders, automatically set this and all other fields.
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.
Line items for the document. Defaults to invoice.gross_total and late fee values from settings
SeeAuto-incremented to prevent concurrent updates. First save wins and increments version.
Notes shown after the line items. Can contain information about payments, bank account or a thank-you message. SK placeholders can be used. Defaults to values from settings
Notes shown before the line items. Normally contains salutation and other introductional information. SK placeholders can be used. Defaults to values from settings
Space separated list of tags. Are split and saved as Tag objects on create, update.
A team uuid. If set, only the team and its parent teams can see the record. Defaults to team id from invoice
The headline of a document. Use SK placeholders to prevent excessive typing e.g. 'Your payment_reminder [number]'. Defaults to values from settings
Links
/api/payment_reminders?filter[q]=Value&filter[contact_ids]=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in title, number, address field |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[from] | string (date) |
All objects with a date after the date |
| filter[to] | string (date) |
All objects with date before the date |
| filter[languages] | string |
A list of language codes, comma separated |
| filter[client_ids] | string |
DEPRECATED use contact_ids |
| filter[contact_ids] | string |
A single or a list of contact uuids, comma separated |
| filter[ids] | string |
A single or a list of document uuids, comma separated |
| sort_by |
string
(enum)
[title, number, created_at, updated_at, price_total, price_tax, date, due_date] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
/api/payment_reminders/{id}/print?base64=Value&template_id=Value
| Name | Type | Description / Example |
|---|---|---|
| template_id * |
UUID of a pdf template used to print the document. MUST be present |
|
| base64 |
If set the new pdf is returned inside the attachment JSON within 'base64' key. Leave empty to save traffic. |
Address
An address in SK is maintained within it's parent object(client, company). The first address(default_address) is used inside the address field of new documents. With multiple addresses sorting(first) is done by date, newest first. So if you add a new adddress it will be the new default one. See order and type property for details about ordering and accessing parcel work or home addresses.
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
When set an existing address will be deleted. This switch is only used when addresses are passed-in nested inside their parent object(a contact).
Should contain the street or otherwise primary address information.
Additional address information, like floor number
Type of the address, as seen by vCard definition. There can only be one type. Inside of SK you can use placeholders like client.parcel_address.city to access the first parcel adr(Same for work_ / home_).
Besides the placeholder default_address, always returns the first address found. Sorting is done by the order(if set) else by date, newest first.
work, home, parcel
City for the address. Must at least be present for an address.
Country of the address.
Geo-Location latitude
Geo-Location longitude
Addresses are normally sorted by date, newest first. If you need to strongly rely on their sorting e.g. default_address (always first) or have multiple addresses of one type(3 parcel), use this field for all adrs.
Single adrs are used in placeholders like: addresses.2.city, returning the second adr found(not necessarily one with order=2).
Post office box number
Country state of address
Zip number of the city. Length must be between 4..10
Links
Line item
A line item for a document
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
When set an existing item will be deleted. This switch is used for items passed-in nested inside their parent object(a document), which is default as long as there is no line item endpoint available.
Item description
Discount in percent applied to the items net total. Can also be negative if you want to add additional charges.
Arbitrary number e.g. external product reference.
The name of an item
Required since items are sorted by position.
Net price of a single item
A uuid of a product, referenced in this item. This makes it easier to track a products turnover and list the documents it is used on. Also see use_product
Quantity of the item. Must be >= 0
Quantity unit: kg, days, month.
Tax percent for a single item.
If set and product_id is present, the products name, description, quantity, unit, price are copied if the according item fields are missing.
Links
Estimate
An estimate
Readonly Properties
Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one.
SeeThe contact for the document. Use contact_id field to set a contact.
SeeDate the object was created in SK. Never changes afterwards.
The exchange rate from the company currency(eg. EUR) to the document currency(USD). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).
Gross total of all line items, 2 decimals places in document currency.
Exchanged gross total, in your company currency.
Unique identifier - UUID
IDENTITYtrue
Net total, 2 decimals places
Net total, 6 decimal places incl. discount
Tax total, 2 decimals places
Date the object was edited in SK.
Writable Properties
Receiver address, normally shown in envelope window. Defaults to client address_field if empty and client_id present.
DEPRECATED: use contact_id
The contact uuid. When assigning a contact its language, currency, address_field (due days, cash discount) values are used for the document if those doc-fields are not set.
Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)
Date the estimate is issued. Automatically set when estimate is opened. Required for non-draft documents.
Auto-calculated from date + due days if empty and the estimate is opened.
Used to calculate the valid-until date of the estimate. Useless if date and due date are present.
Some external reference, whatever this may be.
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.
Line items for the document
SeeAuto-incremented to prevent concurrent updates. First save wins and increments version.
Notes shown after the line items. Can contain information about payments, bank account or a thank-you message. SK placeholders can be used.
Notes shown before the line items. Normally contains salutation and other introductional information. SK placeholders can be used.
Unique number assigned by SK estimate number schema. Auto-assigned when estimate is opened. Required unless doc status is draft.
Defaults to draft for new documents, unless otherwise stated. For new documents with status 'open' or 'closed' or doc where the status changes away from draft, following fields are set if empty: number(next in number schema), date(today), due date(due_days must be given). Only draft documents can be deleted.
DEFAULTdraft
Valid Valuesdraft, open, closed, rejected, billed
Space separated list of tags. Are split and saved as Tag objects on create, update.
A team uuid. If set only the team and its parent teams can see the record.
The headline of a document. Use SK placeholders to prevent excessive typing e.g. 'Your estimate [number]'
Links
/api/estimates?sort=Value&page=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in title, number, address field |
| filter[number] | string |
Find by exact number |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[from] | string (date) |
Objects with a date after the date |
| filter[to] | string (date) |
Objects with date before the date |
| filter[created_at_from] | string (date-time) |
Objects with a creation date after the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[created_at_to] | string (date-time) |
Objects with a creation date before the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[languages] | string |
A list of language codes, comma separated |
| filter[client_ids] | string |
DEPRECATED use contact_ids |
| filter[contact_ids] | string |
A single or a list of contact uuids, comma separated |
| filter[ids] | string |
A single or a list of document uuids, comma separated |
| filter[creator_ids] | string |
Objects created by the given users uuids, comma separated |
| sort_by |
string
(enum)
[title, number, created_at, updated_at, price_total, price_tax, date, due_date] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
/api/estimates?source=Value
| Name | Type | Description / Example |
|---|---|---|
| source | string |
Copies the source(excl. number,date) and returns a new draft document. Fields passed with the object(e.g. notes, title, address_field) are not overwritten. |
/api/estimates/{id}/print?template_id=Value&base64=Value
| Name | Type | Description / Example |
|---|---|---|
| template_id * |
UUID of a pdf template used to print the document. MUST be present |
|
| base64 |
If set the new pdf is returned inside the attachment JSON within 'base64' key. Leave empty to save traffic. |
Client
A client as seen by SalesKing. This resource is DEPRECATED please use contacts instead with type-field set 'Client'
Readonly Properties
Returns the address field used on new docs. Consist of Organisation name and default(first) address
Date the record was created in SK. Never changes afterwards.
Unique identifier - UUID
IDENTITYtrue
Last date when the record was edited.
Writable Properties
A client can have many addresses, sorted by date descending(new first). Default address is the most recent one.
SeeBank account number.
IBAN Number of the bank account. Is validated
Bank name
Bank number
Bank account owner
SWIFT BIC- Bank Identifier Code
Default cash discount for new invoices.
Currency code as defined by the ISO 4217 standard(3-letter UPCASE: EUR, USD). If set the currency is taken for new documents.
Default due days for new invoices.
Email address of the contact.
First name of a person.
Can be empty for a company. Is used in salutation
Valid Valuesmale, female
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the client is emailed, a localized version of a multi-language template(email, pdf) will be used if available. The language will also be set for new documents.
Last name of a person. At least this or the organisation field must be filled for new records
Increased on every edit, so SK can detect/prevent a concurrent edit by another user. First save wins.
Notes for a contact. For day to day information you should use comments instead.
Unique number, auto-created by SK for new client without number.
Name of a company. This or lastname must be present
Default payment method for used for new documemts
Valid Valuescash, bank_transfer, credit_card, paypal, direct_debit, cheque, moneybookers, premium_sms
Fax number
Private phone number
Mobile phone number
Office phone number
Position of a person in a company.
Space separated list of tags. Are split and saved as Tag objects on create, update.
Tax number, normally applies to a private person
A team uuid. If set only the team and its parent teams can see the record.
Academical title of a person e.g. Dr., Prof
An url associated with the person, e.g its company website.
VAT number, for a company or person paying value added taxes.
Links
/api/clients?page=Value&filter[created_at_to]=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Wildcard search in first, last_name, organisation, email, number |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[ids] | string |
A single or a list of client uuids, comma separated |
| filter[created_at_from] | string (date-time) |
Objects with a creation date after the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[created_at_to] | string (date-time) |
Objects with a creation date before the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[birthday_from] | string (date) |
Contacts with a birthday after and on the date. Leave the birthday-to date blank to only search on this day. |
| filter[birthday_to] | string (date) |
Contacts with a birthday date before and on the date. |
| filter[creator_ids] | string |
Objects created by the given users uuids, comma separated |
| filter[number] | string |
Search by number where the number is matched from the start: number% |
| filter[languages] | string |
A single or a list of language codes, comma separated |
| sort_by |
string
(enum)
[organisation, number, email, first_name, last_name, created_at, updated_at] |
Sort the results by the given field => number |
| sort |
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
Divider item
A divider item serves as a separator or headline between line items, e.g. to distinguish hardware and service products on a document. Access and creation is done via documents.items(instead of line_items) where each item has a 'type' field set to its CamelCased class name.
Readonly Properties
Date the object was created in SK. Never changes afterwards
Unique identifier - UUID
IDENTITYtrue
Date the object was edited in SK.
Writable Properties
When set an existing item will be deleted. This switch is used for items submitted nested within their parent object(a document), which is default as long as there is no line item endpoint available.
The divider text
Required since items are sorted by position.
Links
Recurring
An recurring is used as an template for new invoices.
Readonly Properties
The contact for the document. Use contact_id field to set a contact.
SeeDate the object was created in SK. Never changes afterwards.
Gross total of all line items, 2 decimals places
Unique identifier - UUID
IDENTITYtrue
Net total, 2 decimals places
Net total, 6 decimal places incl. discount
Tax total, 2 decimals places
Date the object was edited in SK.
Writable Properties
Receiver address, normally shown in envelope window. Defaults to client address_field if empty and client_id given.
DEPRECATED: use contact_id
The contact uuid. When assigning a contact its language, currency, address_field (due days, cash discount) values are used for the document if those doc-fields are not set.
Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)
First date the recurring is issued. Not allowed to be in the past.
Used to calculate the due date of the recurring. Useless if date and due date are present.
Some external reference, whatever this may be.
The last date the recurring is executed.
Recurring frequency
Valid Valuesyearly, monthly, weekly, quarterly, biweekly, sixmonthly
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.
Line items for the document
SeeAuto-incremented to prevent concurrent updates. First save wins and increments version.
Notes shown after the line items. Can contain information about payments, bank account or a thank-you message. SK placeholders can be used.
Notes shown before the line items. Normally contains salutation and other introductional information. SK placeholders can be used.
Unique name to identify the document. Unlike all other document this one has no number schema and not auto assign
How the document is being payed. Used in new payments.
Valid Valuescash, bank_transfer, credit_card, paypal, direct_debit, cheque, moneybookers, premium_sms
Space separated list of tags. Are split and saved as Tag objects on create, update.
A team uuid. If set only the team and its parent teams can see the record.
The headline of a document. Use SK placeholders to prevent excessive typing e.g. 'Your recurring [number]'
Links
/api/recurrings?filter[from]=Value&filter[contact_ids]=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in title, number, address field |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[from] | string (date) |
Objects with a date after the date |
| filter[to] | string (date) |
Objects with date before the date |
| filter[created_at_from] | string (date-time) |
Objects with a creation date after the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[created_at_to] | string (date-time) |
Objects with a creation date before the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[languages] | string |
A list of language codes, comma separated |
| filter[client_ids] | string |
DEPRECATED use contact_ids |
| filter[contact_ids] | string |
A single or a list of contact uuids, comma separated |
| filter[ids] | string |
A single or a list of document uuids, comma separated |
| filter[creator_ids] | string |
Objects created by the given users uuids, comma separated |
| sort_by |
string
(enum)
[title, number, created_at, updated_at, price_total] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
/api/recurrings?source=Value
| Name | Type | Description / Example |
|---|---|---|
| source | string |
Copies the source(excl. number,date) and returns a new draft document. Fields passed with the object(e.g. notes, title, address_field) are not overwritten. |
Sub
Subscribe to push notifications(webhooks) about object livecycle events like new, update or delete. Only returns subscription for the current app, so you MUST be using oAuth. When a user removes your app its subs are also deleted.
To register you must supply
- callback_url: receives a base64 encode string containing a JSON object with the object in it's latest state, the user_id & subdomain, company_id, hmac-signed with your app secret.
- channel: defining the event, made up of the SINGULAR object name and the action: invoice.delete, payment.new
- register auth_permissions: An app MUST request non-api permissions f.ex.: clients:create. Perms(on company,app,user,team) are checked before any publishing, so if a user cannot create clients in the interface, his apps will not receive any callbacks.
Readonly Properties
Date the record was created in SK. Never changes afterwards.
Unique identifier - UUID
IDENTITYtrue
Last date when the record was edited.
Writable Properties
An url receiving the notification. The url MUST be within the url of the current app and receives a POST with a single signed_request parameter containing an base64 encoded JSON object.
The channel to which to subscribe. See available at subs/channels.
Links
Order
An order
Readonly Properties
Archived PDF version of the document. Is created when an document is printed and archived. A document can have multiple archived versions. This only returns the most recent one.
SeeThe contact for the document. Use contact_id field to set a contact.
SeeDate the object was created in SK. Never changes afterwards.
The exchange rate from the company currency(eg. EUR) to the document currency(USD). The rate is set on document open with the exchange rate based on the document date. If there is no rate for this day, say on weekends, the closest previous day is taken(Sunday->Friday).
Gross total of all line items, 2 decimals places in document currency.
Exchanged gross total, in your company currency.
Unique identifier - UUID
IDENTITYtrue
Net total, 2 decimals places
Net total, 6 decimal places incl. discount
Tax total, 2 decimals places
Date the object was edited in SK.
Writable Properties
Receiver address, normally shown in envelope window. Defaults to client address_field if empty and client_id present.
DEPRECATED: use contact_id
The contact uuid. When assigning a contact its language, currency, address_field (due days, cash discount) values are used for the document if those doc-fields are not set.
Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)
Date the order is issued. Automatically set when order is opened. Required for non-draft documents.
Auto-calculated from date + due days if empty and the document is opened.
Used to calculate the due date for the document. Useless if date and due date are present.
Some external reference, whatever this may be.
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the document is emailed or printed, a localized version of a multi-language template(email, pdf) will be used if available. Defaults to the clients language, if empty and a client is assigned.
Line items for the document
SeeAuto-incremented to prevent concurrent updates. First save wins and increments version.
Notes shown after the line items. Can contain information about payments, bank account or a thank-you message. SK placeholders can be used.
Notes shown before the line items. Normally contains salutation and other introductional information. SK placeholders can be used.
Unique number assigned by SK order number schema. Auto-assigned when order is opened. Required unless doc status is draft.
How the document is being payed. Used in new payments.
Valid Valuescash, bank_transfer, credit_card, paypal, direct_debit, cheque, moneybookers, premium_sms
Defaults to draft for new documents, unless otherwise stated. For new documents with status 'open' or 'closed' or doc where the status changes away from draft, following fields are set if empty: number(next in number schema), date(today), due date(due_days must be given). Only draft documents can be deleted.
DEFAULTdraft
Valid Valuesdraft, open, closed
Space separated list of tags. Are split and saved as Tag objects on create, update.
A team uuid. If set only the team and its parent teams can see the record.
The headline of a document. Use SK placeholders to prevent excessive typing e.g. 'Your order [number]'
Links
/api/orders?filter[to]=Value&per_page=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Search in title, number, address field |
| filter[number] | string |
Find by exact number |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[from] | string (date) |
Objects with a date after the date |
| filter[to] | string (date) |
Objects with date before the date |
| filter[created_at_from] | string (date-time) |
Objects with a creation date after the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[created_at_to] | string (date-time) |
Objects with a creation date before the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[languages] | string |
A list of language codes, comma separated |
| filter[client_ids] | string |
DEPRECATED use contact_ids |
| filter[contact_ids] | string |
A single or a list of contact uuids, comma separated |
| filter[ids] | string |
A single or a list of document uuids, comma separated |
| filter[creator_ids] | string |
Objects created by the given users uuids, comma separated |
| sort_by |
string
(enum)
[title, number, created_at, updated_at, price_total, price_tax, date, due_date] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |
/api/orders?source=Value
| Name | Type | Description / Example |
|---|---|---|
| source | string |
Copies the source(excl. number,date) and returns a new draft document. Fields passed with the object(e.g. notes, title, address_field) are not overwritten. |
/api/orders/{id}/print?template_id=Value&base64=Value
| Name | Type | Description / Example |
|---|---|---|
| template_id * |
UUID of a pdf template used to print the document. MUST be present |
|
| base64 |
If set the new pdf is returned inside the attachment JSON within 'base64' key. Leave empty to save traffic. |
Contact
A contact can be a lead, client or supplier, depending on its type field. Use the filter[type] parameter to show only contacts of a kind. Use this resource instead of clients, as they are deprecated and dropped in the future.
Readonly Properties
Returns the address field used on new docs. Consist of Organisation name and default(first) address
Date the record was created in SK. Never changes afterwards.
Unique identifier - UUID
IDENTITYtrue
Last date when the record was edited.
Writable Properties
A client can have many addresses, sorted by date descending(new first). Default address is the most recent one.
SeeBank account number.
IBAN Number of the bank account. Is validated
Bank name
Bank number
Bank account owner
SWIFT BIC- Bank Identifier Code
Default cash discount for new invoices.
Date the contact converted from lead to client or any other contact type (supplier)
Currency code as defined by the ISO 4217 standard(3-letter UPCASE: EUR, USD). If set the currency is taken for new documents.
Default due days for new invoices.
Email address of the contact.
First name of a person.
Can be empty for a company. Is used in salutation
Valid Valuesmale, female
An employee gets number, organisation, tax and vat_number from its parent. If you set any of these, they are overwritten. When changing a parent-contact the fields on his direct child-employees are updated too.
DEFAULTfalse
Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. When the client is emailed, a localized version of a multi-language template(email, pdf) will be used if available. The language will also be set for new documents.
Last name of a person. At least this or the organisation field must be filled for new records
Lead date e.g. date of first contact with your company
Lead reference e.g. a tracking id, web-url
Lead source describing where a contact came from e.g. a campaign name, website, facebook, URL
Increased on every edit, so SK can detect/prevent a concurrent edit by another user. First save wins.
Notes for a contact. For day to day information you should use comments instead.
Unique number, auto-created by SK for new contacts(client, supplier) without number.
Name of a company. This or lastname must be present
ID of a parent contact.
Default payment method for used for new documemts
Valid Valuescash, bank_transfer, credit_card, paypal, direct_debit, cheque, moneybookers, premium_sms
Fax number
Private phone number
Mobile phone number
Office phone number
Position of a person in a company.
Space separated list of tags. Are split and saved as Tag objects on create, update.
Tax number, normally applies to a private person
A team uuid. If set only the team and its parent teams can see the record.
Academical title of a person e.g. Dr., Prof
Type of contact
Valid ValuesClient, Lead, Supplier
An url associated with the person, e.g its company website.
VAT number, for a company or person paying value added taxes.
Links
/api/contacts?page=Value&sort=Value
| Name | Type | Description / Example |
|---|---|---|
| page | number |
In paginated results set the page to look for |
| per_page | number |
Results per page. Default is 10, max is 100 |
| filter[q] | string |
Wildcard search in first, last_name, organisation, email, number |
| filter[tags] | string |
Filter by a space delimited list of tags |
| filter[ids] | string |
A single or a list of contacts uuids, comma separated |
| filter[created_at_from] | string (date-time) |
Objects with a creation date after the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[created_at_to] | string (date-time) |
Objects with a creation date before the date, including given datetime. ISO 8601 format YYY-MM-DDThh:mm:ss+z |
| filter[birthday_from] | string (date) |
Contacts with a birthday after and on the date. Leave the birthday-to date blank to only search on this day. |
| filter[birthday_to] | string (date) |
Contacts with a birthday date before and on the date. |
| filter[creator_ids] | string |
Objects created by the given users uuids, comma separated |
| filter[number] | string |
Search by number where the number is matched from the start: number% |
| filter[languages] | string |
A single or a list of language codes, comma separated |
| filter[type] |
string
(enum)
[Client, Lead, Supplier] |
Type of the contact: |
| sort_by |
string
(enum)
[organisation, number, email, first_name, last_name, created_at, updated_at] |
Sort the results by the given field => number |
| sort |
string
(enum)
[ASC, DESC] |
Sort the results in ASC or DESC |