API

Finance APIs

POST finance/payments

Resource for creating new payment

HTTP method POST
URI https://api.rambase.net/finance/payments
Supported formats Xml, Html, Json (ex. $format=json)
Successful HTTP status code 201
API resource identifier 6659, version 8

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
<Payment>
2
     <RemittanceHandling
RemittanceHandling

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

This field is optional.

>
{String}</RemittanceHandling>
3
     <Type
Type

Required/mandatory field

Type of counterparty with whom the payment is related

Applicable domain values can be found here

>
{String}</Type>
4
     <CurrencyDate
CurrencyDate

Currency date of the transaction

This field is optional.

>
{Date}</CurrencyDate>
5
     <BankAccount>
6
          <BankAccountId
BankAccountId

Required/mandatory field

Bank account identifier

Minimum value: 100

>
{Integer}</BankAccountId>
7
     </BankAccount>
8
</Payment>
1
{
2
     "payment": {
3
          "remittanceHandling
RemittanceHandling

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

This field is optional.

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

Required/mandatory field

Type of counterparty with whom the payment is related

Applicable domain values can be found here

":
"{String}",
5
          "currencyDate
CurrencyDate

Currency date of the transaction

This field is optional.

":
"{Date}",
6
          "bankAccount": {
7
               "bankAccountId
BankAccountId

Required/mandatory field

Bank account identifier

Minimum value: 100

":
"{Integer}"
8
          }
9
     }
10
}

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.

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

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.

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
     <IsBankStatementExcluded
IsBankStatementExcluded

In case of pay with excluded bank statement

>
{Boolean}</IsBankStatementExcluded>
16
     <BankAccount>
17
          <BankAccountId
BankAccountId

Bank account identifier

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

Name of bank account

>
{String}</Name>
19
          <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>
20
          <AccountNumber
AccountNumber

Account number used to identify the bank account

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

Currency used for the bank account

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

Bank reference

>
{String}</BankAccountLink>
23
          <Bank>
24
               <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>
25
               <Phone
Phone

Bank phone number

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

Address of the bank associated with the bank account

>
27
                    <AddressLine1
AddressLine1

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

English name of country.

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

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

>
{String}</CountryCode>
33
               </Address>
34
          </Bank>
35
     </BankAccount>
36
     <FirstCounterparty
FirstCounterparty

The customer or supplier involved in the payment item

>
37
          <ObjectId
ObjectId

Identifier of the object

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

Type of object

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

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

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

Secondary name of a company or firstname of a person

>
{String}</FirstName>
41
          <Intercompany>
42
               <Code
Code

Intercompany database the customer belongs to.

>
{String}</Code>
43
          </Intercompany>
44
          <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
45
     </FirstCounterparty>
46
     <GeneralLedgerAccount
GeneralLedgerAccount

Finance account associated with the bank account

>
47
          <GeneralLedgerAccountId
GeneralLedgerAccountId

General ledger account identifier

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

The account number of the general ledger account

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

Name of general ledger account

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

General ledger account reference

>
{String}</GeneralLedgerAccountLink>
51
     </GeneralLedgerAccount>
52
     <FirstBankStatementTransaction>
53
          <TransactionId
TransactionId

Transaction identifier of the bank statement

>
{Integer}</TransactionId>
54
          <BankStatement>
55
               <BankStatementId
BankStatementId

Bank statement identifier

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

Sorting index of bank statement

>
{Integer}</SortIndex>
57
               <AccountingPeriod>
58
                    <AccountingPeriodId
AccountingPeriodId

Accounting period identifier

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

Accounting period

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

Accounting period reference

>
{String}</AccountingPeriodLink>
61
               </AccountingPeriod>
62
               <BankStatementLink
BankStatementLink

Bank statement reference

>
{String}</BankStatementLink>
63
          </BankStatement>
64
          <TransactionLink
TransactionLink

Bank statement transaction reference

>
{String}</TransactionLink>
65
     </FirstBankStatementTransaction>
66
     <AccountingPeriod>
67
          <AccountingPeriodId
AccountingPeriodId

Accounting period identifier

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

Accounting period

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

Accounting period reference

>
{String}</AccountingPeriodLink>
70
          <UserId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

>
{String}</UserLink>
74
     </AccountingPeriod>
75
     <Totals>
76
          <Currency
Currency

Three character code following the ISO 4217 standard

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

Exchange rate of the currency

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

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

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

Total amount

>
{Decimal}</TotalAmount>
80
     </Totals>
81
</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
          "isBankStatementExcluded
IsBankStatementExcluded

In case of pay with excluded bank statement

":
"{Boolean}",
17
          "bankAccount": {
18
               "bankAccountId
BankAccountId

Bank account identifier

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

Name of bank account

":
"{String}",
20
               "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}",
21
               "accountNumber
AccountNumber

Account number used to identify the bank account

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

Currency used for the bank account

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

Bank reference

":
"{String}",
24
               "bank": {
25
                    "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}",
26
                    "phone
Phone

Bank phone number

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

Address of the bank associated with the bank account

":
{
28
                         "addressLine1
AddressLine1

First address line

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

Second address line

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

Postalcode/Postcode/ZIP

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

City/town/village

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

English name of country.

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

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

":
"{String}"
34
                    }
35
               }
36
          },
37
          "firstCounterparty
FirstCounterparty

The customer or supplier involved in the payment item

":
{
38
               "objectId
ObjectId

Identifier of the object

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

Type of object

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

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

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

Secondary name of a company or firstname of a person

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

Intercompany database the customer belongs to.

":
"{String}"
44
               },
45
               "objectLink
ObjectLink

API reference to the object

":
"{String}"
46
          },
47
          "generalLedgerAccount
GeneralLedgerAccount

Finance account associated with the bank account

":
{
48
               "generalLedgerAccountId
GeneralLedgerAccountId

General ledger account identifier

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

The account number of the general ledger account

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

Name of general ledger account

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

General ledger account reference

":
"{String}"
52
          },
53
          "firstBankStatementTransaction": {
54
               "transactionId
TransactionId

Transaction identifier of the bank statement

":
"{Integer}",
55
               "bankStatement": {
56
                    "bankStatementId
BankStatementId

Bank statement identifier

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

Sorting index of bank statement

":
"{Integer}",
58
                    "accountingPeriod": {
59
                         "accountingPeriodId
AccountingPeriodId

Accounting period identifier

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

Accounting period

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

Accounting period reference

":
"{String}"
62
                    },
63
                    "bankStatementLink
BankStatementLink

Bank statement reference

":
"{String}"
64
               },
65
               "transactionLink
TransactionLink

Bank statement transaction reference

":
"{String}"
66
          },
67
          "accountingPeriod": {
68
               "accountingPeriodId
AccountingPeriodId

Accounting period identifier

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

Accounting period

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

Accounting period reference

":
"{String}",
71
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

":
"{String}"
75
          },
76
          "totals": {
77
               "currency
Currency

Three character code following the ISO 4217 standard

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

Exchange rate of the currency

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

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

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

Total amount

":
"{Decimal}"
81
          }
82
     }
83
}

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 104870 HTTP 404 Default account assignment not found
Error 100141 HTTP 404 Country not found
Error 104869 HTTP 404 Default account not found
Error 106190 HTTP 400 Period on payment can't be earlier than period on linked transactions : {0}