Skip to main content

Generate a payment batch's SEPA file

POST 

/api/v1/payment_batches/:id/sepa_export

Generates the pain.001 file of an approved sepa_file batch through the same approval, reservation and single-attempt controls as the payment centre, and returns the export resource. A 202 never means a payment was executed - the batch reads submitted once the file is handed over, and only its instructions' status report what the bank did. A batch whose export was already requested is never generated again: the call answers the existing export, whatever expected_version it carries. The optional expected_version is the payment centre's version control: a batch that changed since you read it is refused rather than generated.

Request​

Responses​

The export resource. Poll GET on the same path until state is available.