Skip to content
Batch Printing

Create Export Batch

Create a batch-printing / export batch.

Request parameters

  • Required: name (batch name), sync_sftp (whether to sync to SFTP), email_notify (whether to send an email notification)
  • Optional: auto_export_timing (auto-export timing; not auto-exported when omitted), visible_emails (emails allowed to see the batch)

Result

On success, the export batch is created and the result is returned in data. Interpret the outcome together with the business code.

POSThttps://b-api.lbkrs.com/report/export/create_batch

Production: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Permission

report.export_batches_query

The Broker ACCESS_TOKEN must be granted the permission below, or the call will be rejected.

Request body application/json

namestringrequired

Batch name.

sync_sftpbooleanrequired

Whether to sync to SFTP.

email_notifybooleanrequired

Whether to send an email notification.

auto_export_timingstring

Auto-export timing; not auto-exported when omitted.

visible_emailsarray<string>

Emails allowed to see the batch. No restriction when omitted.

Responses

HTTP 200The request was processed successfully. The business result is in data.
Standard response envelopecodemessagedata
dataobjectdata structure
batch_idstring
HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs