API

Finance APIs

GET finance/payments/{paymentId}

Payment details for provided identifier

HTTP method GET
URI https://api.rambase.net/finance/payments/{paymentId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {paymentId} Payment identifier
Integer, minimum 100000
Successful HTTP status code 200
API resource identifier 510, version 61

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

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.

Format:
1
<Payment>
2
     <PaymentId
PaymentId

Payment identifier

>
{Integer}</PaymentId>
3
     <RemittanceHandling
RemittanceHandling

Method of payment. Default value is retrieved from the supplier or customer

>
{String}</RemittanceHandling>
4
     <Term
Term

Terms of payment. Defaut value is retrieved from the customer or supplier

>
{String}</Term>
5
     <Type
Type

Type of counterparty with whom the payment is related

Possible domain values can be found here

>
{String}</Type>
6
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
7
     <Status
Status

Status of payment

Possible domain values can be found here

>
{Integer}</Status>
8
     <RegistrationDate
RegistrationDate

Date of registration

>
{Date}</RegistrationDate>
9
     <CurrencyDate
CurrencyDate

Currency date of the transaction

>
{Date}</CurrencyDate>
10
     <SendDate
SendDate

Date when the payment was send to the bank or in PAM the payment created

>
{Date}</SendDate>
11
     <Note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

>
{String}</Note>
12
     <InternalReference
InternalReference

Payment reference. E.g. sales invoice or sales order document number.

>
{String}</InternalReference>
13
     <BankPaymentReference
BankPaymentReference

Payment reference number. E.g. information about the data source, such as that it is imported from bankconnector

>
{String}</BankPaymentReference>
14
     <SendNumber
SendNumber

Send number

>
{String}</SendNumber>
15
     <HasDeviationOnItem
HasDeviationOnItem

If the payment has items with deviations

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

>
{Boolean}</HasDeviationOnItem>
16
     <HasSystemMessageOnItem
HasSystemMessageOnItem

If the pay has messages on items

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

>
{Boolean}</HasSystemMessageOnItem>
17
     <IsBankStatementExcluded
IsBankStatementExcluded

In case of pay with excluded bank statement

>
{Boolean}</IsBankStatementExcluded>
18
     <NumberOfCounterparties
NumberOfCounterparties

Number of unique counterparties this payment has

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

>
{Integer}</NumberOfCounterparties>
19
     <NumberOfBankStatementTransactions
NumberOfBankStatementTransactions

Number of unique bank statement transactions this payment has

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

>
{Integer}</NumberOfBankStatementTransactions>
20
     <BankAccount>
21
          <BankAccountId
BankAccountId

Bank account identifier

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

Name of bank account

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

The International Bank Account Number (IBAN) is an internationally agreed means of identifying bank accounts across national borders with a reduced risk of transcription errors.

>
{String}</IBAN>
24
          <AccountNumber
AccountNumber

Account number used to identify the bank account

>
{String}</AccountNumber>
25
          <Currency
Currency

Currency used for the bank account

>
{String}</Currency>
26
          <BankAccountLink
BankAccountLink

Bank reference

>
{String}</BankAccountLink>
27
          <Bank>
28
               <SWIFTCode
SWIFTCode

The SWIFT (Society for Worldwide Interbank Financial Telecommunication) Code is a standard format for Business Identifier Codes (BIC) and it's used to uniquely identify banks and financial institutions globally. These codes are used when transferring money between banks, in particular for international wire transfers or SEPA payments.

>
{String}</SWIFTCode>
29
               <Phone
Phone

Bank phone number

>
{String}</Phone>
30
               <Address
Address

Address of the bank associated with the bank account

>
31
                    <AddressLine1
AddressLine1

First address line

>
{String}</AddressLine1>
32
                    <AddressLine2
AddressLine2

Second address line

>
{String}</AddressLine2>
33
                    <PostalCode
PostalCode

Postalcode/Postcode/ZIP

>
{String}</PostalCode>
34
                    <City
City

City/town/village

>
{String}</City>
35
                    <Country
Country

English name of country.

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

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

>
{String}</CountryCode>
37
               </Address>
38
          </Bank>
39
     </BankAccount>
40
     <FirstCounterparty
FirstCounterparty

The customer or supplier involved in the payment item

>
41
          <ObjectId
ObjectId

Identifier of the object

>
{Integer}</ObjectId>
42
          <ObjectType
ObjectType

Type of object

>
{String}</ObjectType>
43
          <Name
Name

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

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

Secondary name of a company or firstname of a person

>
{String}</FirstName>
45
          <Intercompany>
46
               <Code
Code

Intercompany database the customer belongs to.

>
{String}</Code>
47
          </Intercompany>
48
          <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
49
     </FirstCounterparty>
50
     <GeneralLedgerAccount
GeneralLedgerAccount

Finance account associated with the bank account

>
51
          <GeneralLedgerAccountId
GeneralLedgerAccountId

General ledger account identifier

>
{Integer}</GeneralLedgerAccountId>
52
          <AccountNumber
AccountNumber

The account number of the general ledger account

>
{String}</AccountNumber>
53
          <Name
Name

Name of general ledger account

>
{String}</Name>
54
          <GeneralLedgerAccountLink
GeneralLedgerAccountLink

General ledger account reference

>
{String}</GeneralLedgerAccountLink>
55
     </GeneralLedgerAccount>
56
     <FirstBankStatementTransaction>
57
          <TransactionId
TransactionId

Transaction identifier of the bank statement

>
{Integer}</TransactionId>
58
          <BankStatement>
59
               <BankStatementId
BankStatementId

Bank statement identifier

>
{Integer}</BankStatementId>
60
               <SortIndex
SortIndex

Sorting index of bank statement

>
{Integer}</SortIndex>
61
               <AccountingPeriod>
62
                    <AccountingPeriodId
AccountingPeriodId

Accounting period identifier

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

Accounting period

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

Accounting period reference

>
{String}</AccountingPeriodLink>
65
               </AccountingPeriod>
66
               <BankStatementLink
BankStatementLink

Bank statement reference

>
{String}</BankStatementLink>
67
          </BankStatement>
68
          <TransactionLink
TransactionLink

Bank statement transaction reference

>
{String}</TransactionLink>
69
     </FirstBankStatementTransaction>
70
     <AccountingPeriod>
71
          <AccountingPeriodId
AccountingPeriodId

Accounting period identifier

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

Accounting period

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

Accounting period reference

>
{String}</AccountingPeriodLink>
74
     </AccountingPeriod>
75
     <Assignee
Assignee

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

>
76
          <UserId
UserId

User identifier

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

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

Name of the user

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

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

First name of the user

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

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

User reference

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

>
{String}</UserLink>
80
     </Assignee>
81
     <Totals>
82
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
83
          <Rate
Rate

Exchange rate of the currency

>
{Decimal}</Rate>
84
          <SubTotalAmount
SubTotalAmount

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

>
{Decimal}</SubTotalAmount>
85
          <TotalAmount
TotalAmount

Total amount

>
{Decimal}</TotalAmount>
86
     </Totals>
87
</Payment>
1
{
2
     "payment": {
3
          "paymentId
PaymentId

Payment identifier

":
"{Integer}",
4
          "remittanceHandling
RemittanceHandling

Method of payment. Default value is retrieved from the supplier or customer

":
"{String}",
5
          "term
Term

Terms of payment. Defaut value is retrieved from the customer or supplier

":
"{String}",
6
          "type
Type

Type of counterparty with whom the payment is related

Possible domain values can be found here

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

Date and time of creation

":
"{Datetime}",
8
          "status
Status

Status of payment

Possible domain values can be found here

":
"{Integer}",
9
          "registrationDate
RegistrationDate

Date of registration

":
"{Date}",
10
          "currencyDate
CurrencyDate

Currency date of the transaction

":
"{Date}",
11
          "sendDate
SendDate

Date when the payment was send to the bank or in PAM the payment created

":
"{Date}",
12
          "note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

":
"{String}",
13
          "internalReference
InternalReference

Payment reference. E.g. sales invoice or sales order document number.

":
"{String}",
14
          "bankPaymentReference
BankPaymentReference

Payment reference number. E.g. information about the data source, such as that it is imported from bankconnector

":
"{String}",
15
          "sendNumber
SendNumber

Send number

":
"{String}",
16
          "hasDeviationOnItem
HasDeviationOnItem

If the payment has items with deviations

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

":
"{Boolean}",
17
          "hasSystemMessageOnItem
HasSystemMessageOnItem

If the pay has messages on items

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

":
"{Boolean}",
18
          "isBankStatementExcluded
IsBankStatementExcluded

In case of pay with excluded bank statement

":
"{Boolean}",
19
          "numberOfCounterparties
NumberOfCounterparties

Number of unique counterparties this payment has

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

":
"{Integer}",
20
          "numberOfBankStatementTransactions
NumberOfBankStatementTransactions

Number of unique bank statement transactions this payment has

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

":
"{Integer}",
21
          "bankAccount": {
22
               "bankAccountId
BankAccountId

Bank account identifier

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

Name of bank account

":
"{String}",
24
               "iBAN
IBAN

The International Bank Account Number (IBAN) is an internationally agreed means of identifying bank accounts across national borders with a reduced risk of transcription errors.

":
"{String}",
25
               "accountNumber
AccountNumber

Account number used to identify the bank account

":
"{String}",
26
               "currency
Currency

Currency used for the bank account

":
"{String}",
27
               "bankAccountLink
BankAccountLink

Bank reference

":
"{String}",
28
               "bank": {
29
                    "sWIFTCode
SWIFTCode

The SWIFT (Society for Worldwide Interbank Financial Telecommunication) Code is a standard format for Business Identifier Codes (BIC) and it's used to uniquely identify banks and financial institutions globally. These codes are used when transferring money between banks, in particular for international wire transfers or SEPA payments.

":
"{String}",
30
                    "phone
Phone

Bank phone number

":
"{String}",
31
                    "address
Address

Address of the bank associated with the bank account

":
{
32
                         "addressLine1
AddressLine1

First address line

":
"{String}",
33
                         "addressLine2
AddressLine2

Second address line

":
"{String}",
34
                         "postalCode
PostalCode

Postalcode/Postcode/ZIP

":
"{String}",
35
                         "city
City

City/town/village

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

English name of country.

":
"{String}",
37
                         "countryCode
CountryCode

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

":
"{String}"
38
                    }
39
               }
40
          },
41
          "firstCounterparty
FirstCounterparty

The customer or supplier involved in the payment item

":
{
42
               "objectId
ObjectId

Identifier of the object

":
"{Integer}",
43
               "objectType
ObjectType

Type of object

":
"{String}",
44
               "name
Name

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

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

Secondary name of a company or firstname of a person

":
"{String}",
46
               "intercompany": {
47
                    "code
Code

Intercompany database the customer belongs to.

":
"{String}"
48
               },
49
               "objectLink
ObjectLink

API reference to the object

":
"{String}"
50
          },
51
          "generalLedgerAccount
GeneralLedgerAccount

Finance account associated with the bank account

":
{
52
               "generalLedgerAccountId
GeneralLedgerAccountId

General ledger account identifier

":
"{Integer}",
53
               "accountNumber
AccountNumber

The account number of the general ledger account

":
"{String}",
54
               "name
Name

Name of general ledger account

":
"{String}",
55
               "generalLedgerAccountLink
GeneralLedgerAccountLink

General ledger account reference

":
"{String}"
56
          },
57
          "firstBankStatementTransaction": {
58
               "transactionId
TransactionId

Transaction identifier of the bank statement

":
"{Integer}",
59
               "bankStatement": {
60
                    "bankStatementId
BankStatementId

Bank statement identifier

":
"{Integer}",
61
                    "sortIndex
SortIndex

Sorting index of bank statement

":
"{Integer}",
62
                    "accountingPeriod": {
63
                         "accountingPeriodId
AccountingPeriodId

Accounting period identifier

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

Accounting period

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

Accounting period reference

":
"{String}"
66
                    },
67
                    "bankStatementLink
BankStatementLink

Bank statement reference

":
"{String}"
68
               },
69
               "transactionLink
TransactionLink

Bank statement transaction reference

":
"{String}"
70
          },
71
          "accountingPeriod": {
72
               "accountingPeriodId
AccountingPeriodId

Accounting period identifier

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

Accounting period

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

Accounting period reference

":
"{String}"
75
          },
76
          "assignee
Assignee

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

":
{
77
               "userId
UserId

User identifier

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

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

Name of the user

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

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

First name of the user

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

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

User reference

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

":
"{String}"
81
          },
82
          "totals": {
83
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
84
               "rate
Rate

Exchange rate of the currency

":
"{Decimal}",
85
               "subTotalAmount
SubTotalAmount

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

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

Total amount

":
"{Decimal}"
87
          }
88
     }
89
}

Possible error codes the response might return:

Error 100050 HTTP 403 No admittance as customer {0}
Error 100053 HTTP 403 You have only admittance to your own suppliers