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": "<unknown>",
"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": "<unknown>",
"internalNote": "This invoice is with a special discount.",
"netAmount": {},
"grossAmount": {},
"taxAmount": {},
"customFields": {
"field1": "value1",
"field2": "value2"
},
"unpaidAmount": {}
},
"transaction": "<unknown>",
"autoCaptureAt": "2023-11-07T05:31:56Z"
}
],
"mediaId": "ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b"
}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:writecurl -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": "<unknown>",
"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": "<unknown>",
"internalNote": "This invoice is with a special discount.",
"netAmount": {},
"grossAmount": {},
"taxAmount": {},
"customFields": {
"field1": "value1",
"field2": "value2"
},
"unpaidAmount": {}
},
"transaction": "<unknown>",
"autoCaptureAt": "2023-11-07T05:31:56Z"
}
],
"mediaId": "ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b"
}Value for the Authorization header parameter.
SepaXmlStatement identifier
The updated SepaXmlStatement resource
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:
0 <= x <= 90SepaXmlStatement resource updated
"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
Show child attributes
"ad8f1c1e-0b0a-4e1a-8b0a-0b0a4e1a8b0a"
Possible values:
credit: Creditdebit: Debitcredit, debit "debit"
"#Fynn - Debit for invoice 123"
"Fynn-123"
100
Show child attributes
"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 anymoreactive, revoked "active"
The reference of the mandate
"MNDT-2021-0001"
The bank account of the mandate
Show child attributes
"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 paymentFRST, 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 schemeCORE, B2B, COR1 "core"
The invoice of the payment. In case of a cart payment or manual payment intent, the invoice is null.
Show child attributes
The unique identifier of the invoice.
"00000000-0000-0000-0000-000000000000"
The customer of the invoice.
Show child attributes
"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.
Show child attributes
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
Show child attributes
{ "field1": "value1", "field2": "value2" }The transaction of the payment.
The media file containing the SEPA XML statement(s) as zip. See Download media for more information.
"ad8f7a6d-1b0b-4e1a-8e1a-0b1b0b1b0b1b"
Was this page helpful?