Sales APIs
Sales invoice details for the provided identifier
HTTP method | GET |
URI | https://api.rambase.net/sales/invoices/{salesInvoiceId} |
Supported formats | Xml, Html, Json (ex. $format=json) |
- URI parameter {salesInvoiceId} |
Sales invoice identifier
Integer, minimum 100000 |
Custom fields | Custom fields supported |
Successful HTTP status code | 200 |
API resource identifier | 262, version 95 |
The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.
The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.
$showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
$lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
$access_token String, optional | After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time. |
$db String, optional | Set the database/company for the request |
$format String, optional | Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json" |
$useMinimumVersion Integer, optional | Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information. |
$select String, optional | Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information. |
$expand String, optional | Use to include output fields that are not returned by default in the response. Accepts a comma-separated list of expandable field names. See the Expand and Select page for more information. |
$showCustomFields Boolean, optional | Set to "true" to include custom fields. Default value is false. |
Read more about filters and sorting on how to use filter parameters and named filters.
Read more about filters and sorting on how to use sortable parameters
Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields. Fields colored in grey is expandable fields.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
SalesInvoiceId
Sales invoice identifier
>{Integer}</SalesInvoiceId>CreatedAt
Date and time of creation
>{Datetime}</CreatedAt>IssueDate
Date when the document was issued.
>{Date}</IssueDate>RegistrationDate
Date of registration
>{Date}</RegistrationDate>SellersReferenceNumber
Sellers reference number.
>{String}</SellersReferenceNumber>SellersPaymentReference
Sellers reference to identify the object. In Norway this is typically a KID-number.
>{String}</SellersPaymentReference>CustomersReference
Customers reference. Typically a person.
>{String}</CustomersReference>CustomersReferenceNumber
Customers reference number. E.g. the internal sales order id the customer use in their own system.
>{String}</CustomersReferenceNumber>ExchangeRateFluctuationAgreement
When a sales order is issued, RamBase stores the current exchange rate and the currency the product normally is purchased in. The exchange rate might have changed when the invoice is issued. The exchange rate fluctuation agreement specifies how to handle these differences. The agreement has the format AAA/BBB, where AAA is a percentage of the total invoice, and BBB is the exchange rate fluctuation percentage. E.g. 100/3.0 means that if the rate of exchange on the date a sales order is forwarded to an invoice has changed more than +/- 3% from the rate of exchange, 100% of the invoice amount will be adjusted.
Possible domain values can be found here
>{String}</ExchangeRateFluctuationAgreement>GrossMargin
Gross margin of sale, calculated as an average of gross margin of all items at the time items are created and when the document is registered. Will not be recalculated if gross margin in items change afterwards
>{Decimal}</GrossMargin>Currency
Three character code following the ISO 4217 standard
Possible domain values can be found here
>{String}</Currency>Note
Additional information regarding the object (free text). This note might be visible to customers/suppliers.
>{String}</Note>ShippingAddressAttention
Attention of the shipping address. When changing shipping address, the ShippingAddressAttention will be overridden by the attention of the new shipping address.
>{String}</ShippingAddressAttention>ShippingAddressPhone
Phone number of the shipping address. When changing shipping address, the ShippingAddressPhone will be overridden by the phone number of the new shipping address.
>{String}</ShippingAddressPhone>ShippingAddressEmail
Email address of the shipping address. When changing shipping address, the ShippingAddressEmail will be overridden by the email of the new shipping address.
>{String}</ShippingAddressEmail>InvoiceAddressAttention
Attention of the invoice address. When changing invoice address, the InvoiceAddressAttention will be overridden by the attention of the new invoice address.
>{String}</InvoiceAddressAttention>IncludeInDunningJobs
Indicates if a sales invoice and / or credit note is included in dunning job.
>{Boolean}</IncludeInDunningJobs>IncludeInInterestJobs
Indicates if a sales invoice and / or credit note is included in interest job.
>{Boolean}</IncludeInInterestJobs>ExternalReference
External sales invoice reference/identifier. Can be used in external systems.
>{String}</ExternalReference>ShortName
Unique abbreviation/short name of the location
>{String}</ShortName>AccountingPeriodId
Accounting period identifier
>{Integer}</AccountingPeriodId>Period
Accounting period
>{Integer}</Period>AccountingPeriodLink
Accounting period reference
>{String}</AccountingPeriodLink>Assignee
The user who has been assigned to work with this object.
>UserId
User identifier
>{Integer}</UserId>Name
Name of the user
>{String}</Name>FirstName
First name of the user
>{String}</FirstName>UserLink
User reference
>{String}</UserLink>CustomerId
Customer identifier
>{Integer}</CustomerId>Name
Name of customer (name of company or surname/familyname/lastname of a person)
>{String}</Name>Firstname
Secondary name of a company or firstname of a person
>{String}</Firstname>LegalEntityIdentifier
The customers unique enterprise/organization number.
>{String}</LegalEntityIdentifier>VATRegistrationNumber
Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT).
>{String}</VATRegistrationNumber>Code
Intercompany database the customer belongs to.
>{String}</Code>SalesDistrict
A geographic district for which an individual salesperson or sales team holds responsibility
Possible domain values can be found here
>{String}</SalesDistrict>MarketSegment
Market segment of the customer
Possible domain values can be found here
>{String}</MarketSegment>CustomerLegalEntityId
Customer legal entity identifier
>{Integer}</CustomerLegalEntityId>CustomerLegalEntityLink
Reference to customer legal entity
>{String}</CustomerLegalEntityLink>CustomerLink
Customer reference
>{String}</CustomerLink>AddressId
Address identifier
>{Integer}</AddressId>Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
>{String}</Name>Firstname
Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.
>{String}</Firstname>AddressLine1
First address line
>{String}</AddressLine1>AddressLine2
Second address line
>{String}</AddressLine2>PostalCode
Postalcode/Postcode/ZIP
>{String}</PostalCode>City
City/town/village
>{String}</City>Region
Region/province/state
>{String}</Region>CountryCode
Two-character code (ISO 3166) identifying the country.
>{String}</CountryCode>Country
English name of country.
>{String}</Country>ExternalReference
External address identifier. Normally defined by the customer.
>{String}</ExternalReference>GlobalLocationNumber
Global location number (GLN) for the address. GLN is part of the GS1 systems of standards and is a 13-digit number used to uniquely identify any legal entity, functional entity, or physical location.
>{String}</GlobalLocationNumber>Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
>{String}</Name>Firstname
Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.
>{String}</Firstname>AddressLine1
First address line
>{String}</AddressLine1>AddressLine2
Second address line
>{String}</AddressLine2>PostalCode
Postalcode/Postcode/ZIP
>{String}</PostalCode>City
City/town/village
>{String}</City>Region
Region/province/state
>{String}</Region>CountryCode
Two-character code (ISO 3166) identifying the country.
>{String}</CountryCode>Country
English name of country.
>{String}</Country>GlobalLocationNumber
Global location number (GLN) for the address. GLN is part of the GS1 systems of standards and is a 13-digit number used to uniquely identify any legal entity, functional entity, or physical location.
>{String}</GlobalLocationNumber>Currency
Three character code following the ISO 4217 standard
>{String}</Currency>FreightAmount
Freight amount in transaction document's currency
>{Decimal}</FreightAmount>FeeAmount
Fee amount in transaction document's currency
>{Decimal}</FeeAmount>RoundOffAmount
Round-off amount in transaction document's currency
>{Decimal}</RoundOffAmount>SubTotalAmount
Total amount of the object in object currency, excluding VAT.
>{Decimal}</SubTotalAmount>VATAmount
Total value added tax in object currency.
>{Decimal}</VATAmount>TotalAmount
The total amount in object currency, including VAT
>{Decimal}</TotalAmount>VATRoundOffAmount
VAT round-off amount in transaction document's currency
>{Decimal}</VATRoundOffAmount>DeliveryTerms
Delivery terms when shipping the goods. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce). The delivery terms is by default retrieved from the customer.
Possible domain values can be found here
>{String}</DeliveryTerms>DeliveryTermPlace
Named place related to delivery terms (Incoterms)
>{String}</DeliveryTermPlace>ShippingServiceId
Shipping service identifier
>{Integer}</ShippingServiceId>Name
Name of shipping service
>{String}</Name>ShippingServiceLink
Shipping service reference
>{String}</ShippingServiceLink>PaymentTerms
Terms of payment. Defaut value is retrieved from the customer. The due date of the sales order and sales invoice is calculated based on this field.
Possible domain values can be found here
>{String}</PaymentTerms>PaymentMethod
Method of payment. Default value is retrieved from the customer.
Possible domain values can be found here
>{String}</PaymentMethod>DueDate
Date the object is due to be paid
>{Date}</DueDate>CreditCardTransactionId
Credit card transaction identifier
>{Integer}</CreditCardTransactionId>CreditCardTransactionLink
Credit card transaction reference
>{String}</CreditCardTransactionLink>PostponeVAT
Indicates that the VAT posting should be postponed
>{Boolean}</PostponeVAT>VATType
Type of value added tax
>{String}</VATType>VATHandling
Specifies how value added tax (VAT) should be calculated. Either always include VAT, always exclude VAT or use standard/default VAT rules.
Possible domain values can be found here
>{String}</VATHandling>VATRate
Rate between transaction currency and company VAT currency. VAT rate should be used to calculate VAT amount in company VAT currency.
>{Decimal}</VATRate>VATDate
Date of VAT posting. Currency rate calculation use this date.
>{Date}</VATDate>VATPeriod
Accounting period this VAT posting belongs to
>{Integer}</VATPeriod>DefaultVATPercent
Value added tax percent.
>{Decimal}</DefaultVATPercent>VATCodeDefinitionId
VAT code identifier
>{Integer}</VATCodeDefinitionId>VATCode
Code that determines VAT rules used for VAT calculations.
>{String}</VATCode>Description
Description of VAT Code definition
>{String}</Description>VATCodeDefinitionLink
VAT code reference
>{String}</VATCodeDefinitionLink>VATRegistrationNumber
Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)
>{String}</VATRegistrationNumber>Currency
Three character code following the ISO 4217 standard
>{String}</Currency>Country
Country name of VAT entity
>{String}</Country>CountryCode
Country code of VAT Entity
>{String}</CountryCode>SalesInvoiceId
Sales invoice identifier
": "{Integer}",Status
Status of the sales invoice
Possible domain values can be found here
": "{String}",Type
Type of sales invoice
Possible domain values can be found here
": "{String}",CreatedAt
Date and time of creation
": "{Datetime}",IssueDate
Date when the document was issued.
": "{Date}",RegistrationDate
Date of registration
": "{Date}",SellersReferenceNumber
Sellers reference number.
": "{String}",SellersPaymentReference
Sellers reference to identify the object. In Norway this is typically a KID-number.
": "{String}",CustomersReference
Customers reference. Typically a person.
": "{String}",CustomersReferenceNumber
Customers reference number. E.g. the internal sales order id the customer use in their own system.
": "{String}",ExchangeRateFluctuationAgreement
When a sales order is issued, RamBase stores the current exchange rate and the currency the product normally is purchased in. The exchange rate might have changed when the invoice is issued. The exchange rate fluctuation agreement specifies how to handle these differences. The agreement has the format AAA/BBB, where AAA is a percentage of the total invoice, and BBB is the exchange rate fluctuation percentage. E.g. 100/3.0 means that if the rate of exchange on the date a sales order is forwarded to an invoice has changed more than +/- 3% from the rate of exchange, 100% of the invoice amount will be adjusted.
Possible domain values can be found here
": "{String}",GrossMargin
Gross margin of sale, calculated as an average of gross margin of all items at the time items are created and when the document is registered. Will not be recalculated if gross margin in items change afterwards
": "{Decimal}",Currency
Three character code following the ISO 4217 standard
Possible domain values can be found here
": "{String}",Note
Additional information regarding the object (free text). This note might be visible to customers/suppliers.
": "{String}",ShippingAddressAttention
Attention of the shipping address. When changing shipping address, the ShippingAddressAttention will be overridden by the attention of the new shipping address.
": "{String}",ShippingAddressPhone
Phone number of the shipping address. When changing shipping address, the ShippingAddressPhone will be overridden by the phone number of the new shipping address.
": "{String}",ShippingAddressEmail
Email address of the shipping address. When changing shipping address, the ShippingAddressEmail will be overridden by the email of the new shipping address.
": "{String}",InvoiceAddressAttention
Attention of the invoice address. When changing invoice address, the InvoiceAddressAttention will be overridden by the attention of the new invoice address.
": "{String}",IncludeInDunningJobs
Indicates if a sales invoice and / or credit note is included in dunning job.
": "{Boolean}",IncludeInInterestJobs
Indicates if a sales invoice and / or credit note is included in interest job.
": "{Boolean}",ExternalReference
External sales invoice reference/identifier. Can be used in external systems.
": "{String}",ShortName
Unique abbreviation/short name of the location
": "{String}",AccountingPeriodId
Accounting period identifier
": "{Integer}",Period
Accounting period
": "{Integer}",AccountingPeriodLink
Accounting period reference
": "{String}"Assignee
The user who has been assigned to work with this object.
": {UserId
User identifier
": "{Integer}",Name
Name of the user
": "{String}",FirstName
First name of the user
": "{String}",UserLink
User reference
": "{String}"CustomerId
Customer identifier
": "{Integer}",Name
Name of customer (name of company or surname/familyname/lastname of a person)
": "{String}",Firstname
Secondary name of a company or firstname of a person
": "{String}",LegalEntityIdentifier
The customers unique enterprise/organization number.
": "{String}",VATRegistrationNumber
Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT).
": "{String}",Code
Intercompany database the customer belongs to.
": "{String}"SalesDistrict
A geographic district for which an individual salesperson or sales team holds responsibility
Possible domain values can be found here
": "{String}",MarketSegment
Market segment of the customer
Possible domain values can be found here
": "{String}",CustomerLegalEntityId
Customer legal entity identifier
": "{Integer}",CustomerLegalEntityLink
Reference to customer legal entity
": "{String}"CustomerLink
Customer reference
": "{String}"AddressId
Address identifier
": "{Integer}",Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
": "{String}",Firstname
Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.
": "{String}",AddressLine1
First address line
": "{String}",AddressLine2
Second address line
": "{String}",PostalCode
Postalcode/Postcode/ZIP
": "{String}",City
City/town/village
": "{String}",Region
Region/province/state
": "{String}",CountryCode
Two-character code (ISO 3166) identifying the country.
": "{String}",Country
English name of country.
": "{String}",ExternalReference
External address identifier. Normally defined by the customer.
": "{String}",GlobalLocationNumber
Global location number (GLN) for the address. GLN is part of the GS1 systems of standards and is a 13-digit number used to uniquely identify any legal entity, functional entity, or physical location.
": "{String}"Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
": "{String}",Firstname
Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.
": "{String}",AddressLine1
First address line
": "{String}",AddressLine2
Second address line
": "{String}",PostalCode
Postalcode/Postcode/ZIP
": "{String}",City
City/town/village
": "{String}",Region
Region/province/state
": "{String}",CountryCode
Two-character code (ISO 3166) identifying the country.
": "{String}",Country
English name of country.
": "{String}",GlobalLocationNumber
Global location number (GLN) for the address. GLN is part of the GS1 systems of standards and is a 13-digit number used to uniquely identify any legal entity, functional entity, or physical location.
": "{String}"Currency
Three character code following the ISO 4217 standard
": "{String}",FreightAmount
Freight amount in transaction document's currency
": "{Decimal}",FeeAmount
Fee amount in transaction document's currency
": "{Decimal}",RoundOffAmount
Round-off amount in transaction document's currency
": "{Decimal}",SubTotalAmount
Total amount of the object in object currency, excluding VAT.
": "{Decimal}",VATAmount
Total value added tax in object currency.
": "{Decimal}",TotalAmount
The total amount in object currency, including VAT
": "{Decimal}",VATRoundOffAmount
VAT round-off amount in transaction document's currency
": "{Decimal}"DeliveryTerms
Delivery terms when shipping the goods. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce). The delivery terms is by default retrieved from the customer.
Possible domain values can be found here
": "{String}",DeliveryTermPlace
Named place related to delivery terms (Incoterms)
": "{String}",ShippingServiceId
Shipping service identifier
": "{Integer}",Name
Name of shipping service
": "{String}",ShippingServiceLink
Shipping service reference
": "{String}"PaymentTerms
Terms of payment. Defaut value is retrieved from the customer. The due date of the sales order and sales invoice is calculated based on this field.
Possible domain values can be found here
": "{String}",PaymentMethod
Method of payment. Default value is retrieved from the customer.
Possible domain values can be found here
": "{String}",DueDate
Date the object is due to be paid
": "{Date}",CreditCardTransactionId
Credit card transaction identifier
": "{Integer}",CreditCardTransactionLink
Credit card transaction reference
": "{String}"PostponeVAT
Indicates that the VAT posting should be postponed
": "{Boolean}",VATType
Type of value added tax
": "{String}",VATHandling
Specifies how value added tax (VAT) should be calculated. Either always include VAT, always exclude VAT or use standard/default VAT rules.
Possible domain values can be found here
": "{String}",VATRate
Rate between transaction currency and company VAT currency. VAT rate should be used to calculate VAT amount in company VAT currency.
": "{Decimal}",VATDate
Date of VAT posting. Currency rate calculation use this date.
": "{Date}",VATPeriod
Accounting period this VAT posting belongs to
": "{Integer}",DefaultVATPercent
Value added tax percent.
": "{Decimal}",VATCodeDefinitionId
VAT code identifier
": "{Integer}",VATCode
Code that determines VAT rules used for VAT calculations.
": "{String}",Description
Description of VAT Code definition
": "{String}",VATCodeDefinitionLink
VAT code reference
": "{String}"VATRegistrationNumber
Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)
": "{String}",Currency
Three character code following the ISO 4217 standard
": "{String}",Country
Country name of VAT entity
": "{String}",CountryCode
Country code of VAT Entity
": "{String}"
List of available operations/actions for this resource.
See the operations documentation for more information about API operations.
Possible error codes the response might return:
Error 100027 HTTP 400 | Missing mandatory parameter {0} |
Error 101420 HTTP 404 | Setting definition not found |