API

Procurement APIs

GET procurement/invoices

List of supplier invoices

HTTP method GET
URI https://api.rambase.net/procurement/invoices
Supported formats Xml, Html, Json (ex. $format=json)
Maximum page size ($top) 80
Custom fields Custom fields supported
Successful HTTP status code 200
API resource identifier 629, version 29

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.

Format:
1
1

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
$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.
$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.
$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.
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json"
$showCustomFields Boolean, optional Set to "true" to include custom fields. Default value is false.
$top String, optional Specifies number of rows to return in each page. Maximum limit is specific for each API resource. Default value is 10.
$pageKey String, optional Use to navigate to first, previous, next or last page in list. Add $expand=PagingDetails to add the different keys to the response.
$filter String, optional Use to filter the result list, see the Filtering and sorting page for more information.
$orderby String, optional Use to order the result list, see the Filtering and sorting page for more information.
$inlinecount String, optional Set to "allpages" to include total number of rows in the response. Possible values are: "allpages", "none"

Read more about filters and sorting on how to use filter parameters and named filters.

InfoNotification() Named filter Supplier invoices with notifications of category I (Information)
MyInvoices() Named filter Supplier invoices current user is assigned to
ValidatedRegistrable() Named filter Pending registration supplier invoices
AccountingPeriod Integer Accounting period. Available macros: currentPeriod(), previousPeriod()
Assignee Integer The user who has been assigned to work with this object. Available macros: currentUser()
BuyersReferenceNumber String Buyers reference number.
ContainingNotificationMessage String Show all transaction documents containing notifications. Note that search will be for messages in company language, and not in user language.
ContainingNotificationTypeId Integer Notification type identifier.
CreatedAt Datetime Date and time of creation. Available macros: now(), startOfDay(), endOfDay(), currentDate(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
Currency String Three character code following the ISO 4217 standard.
DueDate Date Date the object is due to be paid. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
IntercompanyCode String Intercompany database the supplier belongs to.
IssueDate Date Date when the document was issued. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
Location String Unique abbreviation/short name of the location.
Name String Name of supplier (name of company or surname/familyname/lastname of a person).
Note String Additional information regarding the object (free text). This note might be visible to customers/suppliers.
ReceivedDate Date Date when the document was received. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
RegistrationDate Date Date of registration. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
Status String Status of supplier invoice.
SupplierId Integer Customer identifier.
SupplierInvoiceId Integer Supplier invoice identifier.
SuppliersInvoiceNumber String Suppliers/sellers reference number. Typically to an external system.
SuppliersReference String Suppliers/sellers reference. Typically a person.
UpdatedAt Datetime Date and time of update. Available macros: now(), startOfDay(), endOfDay(), currentDate(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
VATRegistrationNumber String Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT).

Read more about filters and sorting on how to use sortable parameters

AccountingPeriod Integer Accounting period
Assignee Integer The user who has been assigned to work with this object.
BuyersReferenceNumber String Buyers reference number
ContainingNotificationMessage String Show all transaction documents containing notifications. Note that search will be for messages in company language, and not in user language.
ContainingNotificationTypeId Integer Notification type identifier
CreatedAt Datetime Date and time of creation
Currency String Three character code following the ISO 4217 standard
DueDate Date Date the object is due to be paid
IntercompanyCode String Intercompany database the supplier belongs to.
IssueDate Date Date when the document was issued.
Location String Unique abbreviation/short name of the location
Name String Name of supplier (name of company or surname/familyname/lastname of a person)
Note String Additional information regarding the object (free text). This note might be visible to customers/suppliers.
ReceivedDate Date Date when the document was received.
RegistrationDate Date Date of registration
Status String Status of supplier invoice
SupplierId Integer Customer identifier
SupplierInvoiceId Integer Supplier invoice identifier
SuppliersInvoiceNumber String Suppliers/sellers reference number. Typically to an external system.
SuppliersReference String Suppliers/sellers reference. Typically a person.
UpdatedAt Datetime Date and time of update
VATRegistrationNumber String Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)

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.

Format:
1
<SupplierInvoices>
2
     <SupplierInvoice>
3
          <SupplierInvoiceId
SupplierInvoiceId

Supplier invoice identifier

>
{Integer}</SupplierInvoiceId>
4
          <Status
Status

Status of supplier invoice

Possible domain values can be found here

>
{String}</Status>
5
          <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
6
          <SuppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

>
{String}</SuppliersReference>
7
          <SuppliersInvoiceNumber
SuppliersInvoiceNumber

Suppliers/sellers reference number. Typically to an external system.

>
{String}</SuppliersInvoiceNumber>
8
          <BuyersReferenceNumber
BuyersReferenceNumber

Buyers reference number

>
{String}</BuyersReferenceNumber>
9
          <IssueDate
IssueDate

Date when the document was issued.

>
{Date}</IssueDate>
10
          <ReceivedDate
ReceivedDate

Date when the document was received.

>
{Date}</ReceivedDate>
11
          <RegistrationDate
RegistrationDate

Date of registration

>
{Date}</RegistrationDate>
12
          <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

>
{String}</Currency>
13
          <PendingReception
PendingReception

Indicates if the supplier invoice is pending reception

>
{Boolean}</PendingReception>
14
          <NumberOfAttachements
NumberOfAttachements

Number of attachements for this supplier invoice

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.NumberOfAttachements in your request URI to get this field

>
{Integer}</NumberOfAttachements>
15
          <AccountingPeriod>
16
               <AccountingPeriodId
AccountingPeriodId

Accounting period identifier

>
{Integer}</AccountingPeriodId>
17
               <Period
Period

Accounting period

>
{Integer}</Period>
18
               <AccountingPeriodLink
AccountingPeriodLink

Accounting period reference

>
{String}</AccountingPeriodLink>
19
          </AccountingPeriod>
20
          <Location>
21
               <LocationId
LocationId

Location identifier

>
{Integer}</LocationId>
22
               <Name
Name

Name of location

>
{String}</Name>
23
               <ShortName
ShortName

Unique abbreviation/short name of the location

>
{String}</ShortName>
24
               <Address>
25
                    <CountryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

>
{String}</CountryCode>
26
                    <Country
Country

English name of country.

>
{String}</Country>
27
               </Address>
28
               <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
29
          </Location>
30
          <Assignee
Assignee

The user who has been assigned to work with this object.

>
31
               <UserId
UserId

User identifier

>
{Integer}</UserId>
32
               <Name
Name

Name of the user

>
{String}</Name>
33
               <FirstName
FirstName

First name of the user

>
{String}</FirstName>
34
               <UserLink
UserLink

User reference

>
{String}</UserLink>
35
          </Assignee>
36
          <Supplier>
37
               <SupplierId
SupplierId

RamBase supplier identifier

>
{Integer}</SupplierId>
38
               <Name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

>
{String}</Name>
39
               <Firstname
Firstname

Firstname/givenname if the supplier is a person

>
{String}</Firstname>
40
               <LegalEntityIdentifier
LegalEntityIdentifier

The suppliers unique enterprise/organization number.

>
{String}</LegalEntityIdentifier>
41
               <VATRegistrationNumber
VATRegistrationNumber

Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT).

>
{String}</VATRegistrationNumber>
42
               <Intercompany>
43
                    <Code
Code

Intercompany database the supplier belongs to.

>
{String}</Code>
44
               </Intercompany>
45
               <SupplierLink
SupplierLink

Supplier reference

>
{String}</SupplierLink>
46
          </Supplier>
47
          <Totals>
48
               <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
49
               <SubTotalAmount
SubTotalAmount

Total amount of the object in object currency, excluding VAT.

>
{Decimal}</SubTotalAmount>
50
               <VATAmount
VATAmount

Total value added tax in object currency.

>
{Decimal}</VATAmount>
51
               <TotalAmount
TotalAmount

The total amount in object currency, including VAT

>
{Decimal}</TotalAmount>
52
          </Totals>
53
          <Payment>
54
               <DueDate
DueDate

Date the object is due to be paid

>
{Date}</DueDate>
55
          </Payment>
56
          <VATDetails>
57
               <VATEntity>
58
                    <VATRegistrationNumber
VATRegistrationNumber

Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)

>
{String}</VATRegistrationNumber>
59
               </VATEntity>
60
          </VATDetails>
61
          <HighlightedNotification
HighlightedNotification

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
62
               <NotificationId
NotificationId

Notification identifier

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{Integer}</NotificationId>
63
               <Status
Status

Status of the notification

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{Integer}</Status>
64
               <CreatedAt
CreatedAt

Date and time of creation

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{Datetime}</CreatedAt>
65
               <Message
Message

The message from the notification definition, expanded with parameters.

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{String}</Message>
66
               <TranslatedMessage
TranslatedMessage

The translated message from the notification definition, expanded with parameters.

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{String}</TranslatedMessage>
67
               <NotificationType
NotificationType

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
68
                    <NotificationTypeId
NotificationTypeId

Notification type identifier

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{String}</NotificationTypeId>
69
                    <Category
Category

Category of notification type (warning, information etc)

Possible domain values can be found here

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{String}</Category>
70
                    <NotificationTypeLink
NotificationTypeLink

Notification type reference

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{String}</NotificationTypeLink>
71
               </NotificationType>
72
               <NotificationLink
NotificationLink

Notification reference

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

>
{String}</NotificationLink>
73
          </HighlightedNotification>
74
          <SupplierInvoiceLink
SupplierInvoiceLink

Supplier invoice reference

>
{String}</SupplierInvoiceLink>
75
     </SupplierInvoice>
76
     <Paging
Paging

Detailed paging information for this list.

>
77
          <PageSize
PageSize

Number of elements in the list, as defined in $top. Default is 10.

>
{Integer}</PageSize>
78
          <Position
Position

Position of the first element in the list

>
{Integer}</Position>
79
          <Page
Page

Page index

>
{Integer}</Page>
80
          <FirstPageKey
FirstPageKey

Page key to use for navigating to the first page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</FirstPageKey>
81
          <FirstPage
FirstPage

Link to the first page in the list. $pageKey is set to FirstPageKey.

>
{String}</FirstPage>
82
          <PreviousPageKey
PreviousPageKey

Page key to use for navigating to previous page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</PreviousPageKey>
83
          <PreviousPage
PreviousPage

Link to the previous page in the list. $pageKey is set to PreviousPageKey.

>
{String}</PreviousPage>
84
          <NextPageKey
NextPageKey

Page key to use for navigating to next page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</NextPageKey>
85
          <NextPage
NextPage

Link to the next page in the list. $pageKey is set to NextPageKey.

>
{String}</NextPage>
86
          <LastPageKey
LastPageKey

Page key to use for navigating to last page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</LastPageKey>
87
          <LastPage
LastPage

Link to the last page in the list. $pageKey is set to LastPageKey.

>
{String}</LastPage>
88
          <Size
Size

Total number of records in the list. Use $inlinecount=allpages in the request uri to include this

>
{Integer}</Size>
89
     </Paging>
90
</SupplierInvoices>
1
{
2
     "supplierInvoices": [
3
          {
4
               "supplierInvoiceId
SupplierInvoiceId

Supplier invoice identifier

":
"{Integer}",
5
               "status
Status

Status of supplier invoice

Possible domain values can be found here

":
"{String}",
6
               "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
7
               "suppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

":
"{String}",
8
               "suppliersInvoiceNumber
SuppliersInvoiceNumber

Suppliers/sellers reference number. Typically to an external system.

":
"{String}",
9
               "buyersReferenceNumber
BuyersReferenceNumber

Buyers reference number

":
"{String}",
10
               "issueDate
IssueDate

Date when the document was issued.

":
"{Date}",
11
               "receivedDate
ReceivedDate

Date when the document was received.

":
"{Date}",
12
               "registrationDate
RegistrationDate

Date of registration

":
"{Date}",
13
               "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
14
               "pendingReception
PendingReception

Indicates if the supplier invoice is pending reception

":
"{Boolean}",
15
               "numberOfAttachements
NumberOfAttachements

Number of attachements for this supplier invoice

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.NumberOfAttachements in your request URI to get this field

":
"{Integer}",
16
               "accountingPeriod": {
17
                    "accountingPeriodId
AccountingPeriodId

Accounting period identifier

":
"{Integer}",
18
                    "period
Period

Accounting period

":
"{Integer}",
19
                    "accountingPeriodLink
AccountingPeriodLink

Accounting period reference

":
"{String}"
20
               },
21
               "location": {
22
                    "locationId
LocationId

Location identifier

":
"{Integer}",
23
                    "name
Name

Name of location

":
"{String}",
24
                    "shortName
ShortName

Unique abbreviation/short name of the location

":
"{String}",
25
                    "address": {
26
                         "countryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

":
"{String}",
27
                         "country
Country

English name of country.

":
"{String}"
28
                    },
29
                    "locationLink
LocationLink

Location reference

":
"{String}"
30
               },
31
               "assignee
Assignee

The user who has been assigned to work with this object.

":
{
32
                    "userId
UserId

User identifier

":
"{Integer}",
33
                    "name
Name

Name of the user

":
"{String}",
34
                    "firstName
FirstName

First name of the user

":
"{String}",
35
                    "userLink
UserLink

User reference

":
"{String}"
36
               },
37
               "supplier": {
38
                    "supplierId
SupplierId

RamBase supplier identifier

":
"{Integer}",
39
                    "name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

":
"{String}",
40
                    "firstname
Firstname

Firstname/givenname if the supplier is a person

":
"{String}",
41
                    "legalEntityIdentifier
LegalEntityIdentifier

The suppliers unique enterprise/organization number.

":
"{String}",
42
                    "vATRegistrationNumber
VATRegistrationNumber

Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT).

":
"{String}",
43
                    "intercompany": {
44
                         "code
Code

Intercompany database the supplier belongs to.

":
"{String}"
45
                    },
46
                    "supplierLink
SupplierLink

Supplier reference

":
"{String}"
47
               },
48
               "totals": {
49
                    "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
50
                    "subTotalAmount
SubTotalAmount

Total amount of the object in object currency, excluding VAT.

":
"{Decimal}",
51
                    "vATAmount
VATAmount

Total value added tax in object currency.

":
"{Decimal}",
52
                    "totalAmount
TotalAmount

The total amount in object currency, including VAT

":
"{Decimal}"
53
               },
54
               "payment": {
55
                    "dueDate
DueDate

Date the object is due to be paid

":
"{Date}"
56
               },
57
               "vATDetails": {
58
                    "vATEntity": {
59
                         "vATRegistrationNumber
VATRegistrationNumber

Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)

":
"{String}"
60
                    }
61
               },
62
               "highlightedNotification
HighlightedNotification

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
{
63
                    "notificationId
NotificationId

Notification identifier

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{Integer}",
64
                    "status
Status

Status of the notification

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{Integer}",
65
                    "createdAt
CreatedAt

Date and time of creation

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{Datetime}",
66
                    "message
Message

The message from the notification definition, expanded with parameters.

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{String}",
67
                    "translatedMessage
TranslatedMessage

The translated message from the notification definition, expanded with parameters.

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{String}",
68
                    "notificationType
NotificationType

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
{
69
                         "notificationTypeId
NotificationTypeId

Notification type identifier

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{String}",
70
                         "category
Category

Category of notification type (warning, information etc)

Possible domain values can be found here

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{String}",
71
                         "notificationTypeLink
NotificationTypeLink

Notification type reference

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{String}"
72
                    },
73
                    "notificationLink
NotificationLink

Notification reference

This field is greyed out because it is an expandable field. You have to add $expand=SupplierInvoice.HighlightedNotification in your request URI to get this field

":
"{String}"
74
               },
75
               "supplierInvoiceLink
SupplierInvoiceLink

Supplier invoice reference

":
"{String}"
76
          }
77
     ],
78
     "paging
Paging

Detailed paging information for this list.

":
{
79
          "pageSize
PageSize

Number of elements in the list, as defined in $top. Default is 10.

":
"{Integer}",
80
          "position
Position

Position of the first element in the list

":
"{Integer}",
81
          "page
Page

Page index

":
"{Integer}",
82
          "firstPageKey
FirstPageKey

Page key to use for navigating to the first page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
83
          "firstPage
FirstPage

Link to the first page in the list. $pageKey is set to FirstPageKey.

":
"{String}",
84
          "previousPageKey
PreviousPageKey

Page key to use for navigating to previous page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
85
          "previousPage
PreviousPage

Link to the previous page in the list. $pageKey is set to PreviousPageKey.

":
"{String}",
86
          "nextPageKey
NextPageKey

Page key to use for navigating to next page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
87
          "nextPage
NextPage

Link to the next page in the list. $pageKey is set to NextPageKey.

":
"{String}",
88
          "lastPageKey
LastPageKey

Page key to use for navigating to last page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
89
          "lastPage
LastPage

Link to the last page in the list. $pageKey is set to LastPageKey.

":
"{String}",
90
          "size
Size

Total number of records in the list. Use $inlinecount=allpages in the request uri to include this

":
"{Integer}"
91
     }
92
}

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 100147 HTTP 404 Notification type not found
Error 100053 HTTP 403 You have only admittance to your own suppliers