API documentation
User
Tenant
Feature
Entitlement
User & permissions
Settings
- Settings
- Media
- Webhook
- Notification
Payment
- Payment Method
- Transaction
- SEPA XML
- Open Banking
- Bank Account Transaction
Customer
- Customer
- Customer Address
- Customer Email
- Customer Settings
- Customer Otp
Billing
- Invoice
- Invoice Position Item
- Billing Run
Dunning
- Dunning Document
- Dunning Rule
Subscription
- Subscription
- Subscription Item
- Subscription Measurement
- Billing Group
Offers
- Offer
- Offer Recipient
- Offer Template
Catalogue
- Unit
- Measurement
- Product
- Product Family
- Price Plan
- Coupon
Checkout
- Checkout Link
- Cart
Accounting
Mark a SEPA XML file as uploaded
Marks a SEPA XML file as uploaded to the bank. This means, that the SEPA XML file was uploaded to the bank already. All related payment transactions will be marked as waiting, until the grace period of the bank is over. You cannot regenerate the SEPA XML file, when it was marked as uploaded.
Required permissions:sepa-xml:write
curl -X PUT \
/sepa-xml-files/{id}/uploaded \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"autoCaptureAfterDays": ""
}'
{
"id": "ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b",
"uploaded": true,
"uniqueMessageId": "COKSDE33XXX-2021-01-01-12-00-00-000000000",
"generatedAt": "2023-11-07T05:31:56Z",
"sepaXmlPayments": [
{
"id": "ad8f1c1e-0b0a-4e1a-8b0a-0b0a4e1a8b0a",
"type": "debit",
"createdAt": "<any>",
"dueDate": "2023-11-07T05:31:56Z",
"remittanceInformation": "#Fynn - Debit for invoice 123",
"endToEndId": "Fynn-123",
"amount": 100,
"sepaMandate": {
"id": "ad8f0b9c-0b1a-4e1a-8b0a-0b1a4e1a8b0a",
"status": "active",
"creditorIdentifier": "<string>",
"mandateReference": "MNDT-2021-0001",
"bankAccount": {
"id": "ad8f0b9c-4b1e-4e0e-8b9c-4b1e4e0e8b9c",
"iban": "DE12500105170648489890",
"bic": "PBNKDEFFXXX",
"accountHolder": "Max Mustermann",
"bankName": "Commerzbank"
},
"sequenceType": "FRST",
"sepaType": "core"
},
"invoice": {
"id": "00000000-0000-0000-0000-000000000000",
"customer": {
"id": "00000000-0000-0000-0000-000000000000",
"customerNumber": "CUSTOMER-000",
"timeZone": "Europe/Berlin",
"firstName": "John",
"lastName": "Doe",
"currencyCode": "EUR",
"companyName": "Acme Inc.",
"datevId": "123456789",
"status": "STATUS_ACTIVE"
},
"paymentMethod": {
"id": "<string>",
"gatewayName": "wallet",
"type": "sepa_debit",
"default": true,
"status": "active",
"enabled": true,
"name": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z"
},
"type": "TYPE_INVOICE",
"currencyCode": "EUR",
"number": "RE-0000000001",
"status": "STATUS_DRAFT",
"finalizationDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"dunningLevel": 123,
"dunningStatus": "none",
"payDate": "2023-11-07T05:31:56Z",
"invoiceAddress": "<any>",
"internalNote": "This invoice is with a special discount.",
"netAmount": {},
"grossAmount": {},
"taxAmount": {},
"customFields": {
"field1": "value1",
"field2": "value2"
},
"unpaidAmount": {}
},
"transaction": "<any>",
"autoCaptureAt": "2023-11-07T05:31:56Z"
}
],
"mediaId": "ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b"
}
Authorizations
Value for the Authorization header parameter.
Path Parameters
SepaXmlStatement identifier
Body
The number of days after which the payment should be captured automatically. 0 means immediately.
If you are using the bank account synchronization, you should set this value to null
.
The amount will be captured automatically, when the bank account synchronization is processed.
Advantages of using the bank account synchronization:
- more accurate payment status and payment date
- correct accounting of the payment
- declines are handled automatically
- less manual work
0 <= x <= 90
Response
"ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b"
Indicates if the SEPA XML file was uploaded to the bank already. If not, the file can be deleted. If yes, all transactions will be marked as waiting, until the grace period of the bank is over.
The unique message ID of the SEPA XML file
"COKSDE33XXX-2021-01-01-12-00-00-000000000"
The date and time when the SEPA XML file was generated
The SEPA XML payments included in this SEPA XML file
"ad8f1c1e-0b0a-4e1a-8b0a-0b0a4e1a8b0a"
Possible values:
credit
: Creditdebit
: Debit
credit
, debit
"debit"
"#Fynn - Debit for invoice 123"
"Fynn-123"
100
"ad8f0b9c-0b1a-4e1a-8b0a-0b1a4e1a8b0a"
The status of the mandate
Possible values:
active
: The mandate is active and can be used for paymentsrevoked
: The customer has revoked the mandate or a payment was rejected by the bank. The mandate can not be used for payments anymore
active
, revoked
"active"
The reference of the mandate
"MNDT-2021-0001"
The bank account of the mandate
"ad8f0b9c-4b1e-4e0e-8b9c-4b1e4e0e8b9c"
"DE12500105170648489890"
"PBNKDEFFXXX"
"Max Mustermann"
"Commerzbank"
The sequence type of the mandate
Possible values:
FRST
: The sepa mandate is used for the first time for a recurring paymentRCUR
: The sepa mandate was already used the first time and is now used for recurring paymentsFNAL
: The sepa mandate is used for the last time for a recurring paymentOOFF
: The sepa mandate is only allowed to be used for one payment
FRST
, RCUR
, FNAL
, OOFF
"FRST"
The type of the mandate
Possible values:
CORE
: The core scheme is used for payments between consumers and companiesB2B
: The B2B scheme is used for payments between companies. No refund is possibleCOR1
: The COR1 scheme is used for payments between consumers and companies. The payment is processed faster than with the core scheme
CORE
, B2B
, COR1
"core"
The invoice of the payment. In case of a cart payment or manual payment intent, the invoice is null.
The unique identifier of the invoice.
"00000000-0000-0000-0000-000000000000"
The customer of the invoice.
"00000000-0000-0000-0000-000000000000"
2 - 255
"CUSTOMER-000"
"Europe/Berlin"
Can be empty if the customer is a company.
2 - 255
"John"
Can be empty if the customer is a company.
2 - 255
"Doe"
Can be empty. In this case the default currency of the tenant is used.
"EUR"
2 - 255
"Acme Inc."
The ID of the customer in DATEV
2 - 255
"123456789"
STATUS_ACTIVE
, STATUS_ARCHIVED
, STATUS_SUSPENDED
"STATUS_ACTIVE"
The payment method which should be used to fullfill the payment of the invoice.
wallet
, sepa_debit
, stripe
, fake_provider
, paypal
, bank_transfer
, go_cardless
, testing
sepa_debit
, card
, paypal
, bank_transfer
, wallet
, fake_provider
active
, action_required
, expired
, revoked
, gateway_unconfigured
"active"
The type of the invoice.
TYPE_INVOICE
, TYPE_CREDIT
, TYPE_REFUND
, TYPE_REMINDER
, TYPE_CANCEL
, TYPE_DUNNING
"TYPE_INVOICE"
The currency code of the invoice. If multiple currency codes will be used in the positions, they will be converted to that base currency.
"EUR"
The document id of the invoice. This will be generated, when the invoice will be finalized.
"RE-0000000001"
STATUS_DRAFT
, STATUS_PAID
, STATUS_CANCELLED
, STATUS_CLOSED
, STATUS_REFUNDED
, STATUS_REMINDED
, STATUS_UNPAID
, STATUS_NEW
, STATUS_FINALIZING
reminder
, dunning
, none
"none"
The invoice address of the invoice.
The notice of the invoice.
"This invoice is with a special discount."
The net amount of the invoice.
Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under "/custom-fields" in the API documentation. The input is validated against the configuration. For more details see Custom Fields Guide
{ "field1": "value1", "field2": "value2" }
The transaction of the payment.
The media file containing the SEPA XML statement(s) as zip. See <a href ="#tag/Media/operation/getDownloadToken">Download media</a> for more information.
"ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b"
Was this page helpful?
curl -X PUT \
/sepa-xml-files/{id}/uploaded \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"autoCaptureAfterDays": ""
}'
{
"id": "ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b",
"uploaded": true,
"uniqueMessageId": "COKSDE33XXX-2021-01-01-12-00-00-000000000",
"generatedAt": "2023-11-07T05:31:56Z",
"sepaXmlPayments": [
{
"id": "ad8f1c1e-0b0a-4e1a-8b0a-0b0a4e1a8b0a",
"type": "debit",
"createdAt": "<any>",
"dueDate": "2023-11-07T05:31:56Z",
"remittanceInformation": "#Fynn - Debit for invoice 123",
"endToEndId": "Fynn-123",
"amount": 100,
"sepaMandate": {
"id": "ad8f0b9c-0b1a-4e1a-8b0a-0b1a4e1a8b0a",
"status": "active",
"creditorIdentifier": "<string>",
"mandateReference": "MNDT-2021-0001",
"bankAccount": {
"id": "ad8f0b9c-4b1e-4e0e-8b9c-4b1e4e0e8b9c",
"iban": "DE12500105170648489890",
"bic": "PBNKDEFFXXX",
"accountHolder": "Max Mustermann",
"bankName": "Commerzbank"
},
"sequenceType": "FRST",
"sepaType": "core"
},
"invoice": {
"id": "00000000-0000-0000-0000-000000000000",
"customer": {
"id": "00000000-0000-0000-0000-000000000000",
"customerNumber": "CUSTOMER-000",
"timeZone": "Europe/Berlin",
"firstName": "John",
"lastName": "Doe",
"currencyCode": "EUR",
"companyName": "Acme Inc.",
"datevId": "123456789",
"status": "STATUS_ACTIVE"
},
"paymentMethod": {
"id": "<string>",
"gatewayName": "wallet",
"type": "sepa_debit",
"default": true,
"status": "active",
"enabled": true,
"name": "<string>",
"creationDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z"
},
"type": "TYPE_INVOICE",
"currencyCode": "EUR",
"number": "RE-0000000001",
"status": "STATUS_DRAFT",
"finalizationDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"dunningLevel": 123,
"dunningStatus": "none",
"payDate": "2023-11-07T05:31:56Z",
"invoiceAddress": "<any>",
"internalNote": "This invoice is with a special discount.",
"netAmount": {},
"grossAmount": {},
"taxAmount": {},
"customFields": {
"field1": "value1",
"field2": "value2"
},
"unpaidAmount": {}
},
"transaction": "<any>",
"autoCaptureAt": "2023-11-07T05:31:56Z"
}
],
"mediaId": "ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b"
}