Skip to content
Longport Whale
Bizcode Management

Upload Biz Code File

When batch-importing biz codes on the Bizcode Management page, first upload the file, then call this endpoint to register it (file_type is fixed to 0 for biz codes); it returns a batch number for subsequent review.

POSThttps://b-api.longbridge.xyz/portfolio/dawn/upload_file

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

file_typenumberrequired

File Type. 0 indicates a biz-code file; the front end always sends 0.

s3_keystringrequired

S3 Key. The file storage identifier returned after the file is uploaded.

Responses

HTTP 200Returns business fields.
Standard response envelopecodemessagedata
dataobjectdata structure
batch_idstring

Batch ID

Whale Docs