Create a payment
This endpoint is intended to create a new payment.
Prerequisites:
To use this endpoint you need to have the PAYMENT_CREATE scope for the API Key. Please contact your relation manager to get this permission.
Request Parameters:
Beneficiary Object is represented as Contact Object.
- beneficiary.type : specifies the type of beneficiary and can be either "legal_entity" or "person"
- beneficiary.country : indicates the two-letter ISO country code of the beneficiary's country (e.g., "CH" for Switzerland)
- either bankAccount.iban or bankAccount.accountNumber is mandatory
Payment signoff
- Default: payments created with API are not signed off, they must be signed off in amnis Web App before being processed
- PEER: payments created with API to an IBAN of current amnis customers are automatically signed and immediately processed as PEER payment. Learn more here about amnis PEER.
- application/json
Request Body required
- amount string required
- executionDate stringnull
If left empty, the next possible execution date will be selected automatically
- reference string required
Possible values:
>= 3 characters
and<= 140 characters
This text will be seen by the beneficiary
- feeSchedule string
Possible values:
<= 4 characters
, [DEBT
,SHAR
,CRED
]For LOCAL payments leave it empty, for SWIFT payments provide a value
beneficiary object
The beneficiary field is required, except for payments to IBANs linked to existing amnis customers.
name stringaddress stringcity stringzip stringcountry stringtype stringbankAccount object required
iban stringaccountNumber stringswift stringcurrency stringcountry stringadditionalFields object[] nullable
Array [name stringvalue string]- externalId stringnull
This should be a unique ID used to identify this payment in your system.
- 200
- 400
- 401
- 403
OK - The request was processed successfully.
- application/json
- Schema
- Example (from schema)
Schema
- oneOf
- MOD1
- MOD2
id integeraccount integercurrency stringamount stringstatus stringPossible values: [
created
,pending
,transferred
,canceled
,pending_execution
,executed
,execution_error
]executionDate stringnullIf left empty, the next possible execution date will be selected automatically
transferredAt stringnullfinishedAt stringnullreference stringThis text will be seen by the beneficiary
feeSchedule stringPossible values: [
DEBT
,SHAR
,CRED
]For LOCAL payments leave it empty, for SWIFT payments provide a value
contact integerbeneficiary object
The beneficiary field is required, except for payments to IBANs linked to existing amnis customers.
accountNumber stringbankName string nullablebankCountry string nullablename stringaddress string nullablecity string nullablezip string nullablecountry string nullablecontact string nullablefromAutomation booleanid integercurrency stringamount stringexecutionDate stringcollateral booleanside stringPossible values: [
sender
,receiver
]senderCompanyName stringreceiverCompanyName stringsenderAccount integernullreceiverAccount integernullcomment stringnullcontact integerstatus stringPossible values: [
created
,pending
,transferred
,canceled
]fromAutomation boolean
{
"id": 1,
"account": 1,
"currency": "CHF",
"amount": "100.00",
"status": "executed",
"executionDate": "2023-01-01T00:00:00+00:00",
"transferredAt": "2023-01-01T00:00:00+00:00",
"finishedAt": "2023-01-01T00:00:00+00:00",
"reference": "Payment for car rental",
"feeSchedule": "SHAR",
"contact": 1,
"beneficiary": {
"accountNumber": "string",
"bankName": "string",
"bankCountry": "string",
"name": "string",
"address": "string",
"city": "string",
"zip": "string",
"country": "string",
"contact": "string"
},
"fromAutomation": true
}
Bad Request -- Your request is invalid.
- application/json
- Schema
- Example (from schema)
Schema
- title string
- type string
- detail string
{
"title": "string",
"type": "string",
"detail": "string"
}
Unauthorised -- Your access token is wrong.
- application/json
- Schema
- Example (from schema)
Schema
- type string
- title string
- detail string
{
"type": "string",
"title": "string",
"detail": "string"
}
Forbidden -- Access to the requested resource or action is forbidden.
- application/json
- Schema
- Example (from schema)
Schema
- type string
- title string
- detail string
{
"type": "string",
"title": "string",
"detail": "string"
}