ZORT API V4
  • Overview
    • Introduction
    • Data Definition
    • Webhook
  • API Reference
    • Product
    • Bundle
    • Warehouse
    • Contact
    • Order
    • Purchase Order
    • Return Order
    • Return Purchase Order
    • Transfer
    • Quotation
    • Finance
    • File Upload
    • Document
    • Merchant
  • Partner
    • Registration
    • Authentication
  • Announcements
    • API Update
      • [17 Apr 2025] Update
      • [15 Feb 2025] Update
      • [2 Dec 2024] Important Update
      • [31 Oct 2024] Update
      • [10 Feb 2024] Update
      • [1 Nov 2023] Update
      • [14 Oct 2023] Update
      • [15 Aug 2023] Update
      • [1 June 2023] Important Update
    • Marketplace Flow
Powered by GitBook
On this page
  • Get Order Files
  • Get Order File Detail
  • Add File to Order
  • Get Purchase Order Files
  • Get Purchase Order File Detail
  • Add File to Purchase Order
  1. API Reference

File Upload

Get Order Files

GET https://open-api.zortout.com/v4/Order/GetOrderFiles

Get list of files in order.

Query Parameters

Name
Type
Description

id

Int

Order ID

*Must have either id or number

number

String

Order Number Require if id = 0 or null

*Must have either id or number

Headers

Name
Type
Description

storename*

String

Store Name

apikey*

String

API Key

apisecret*

String

API Secret

FileContent (Array)
Type
Description/Example

id

Int

File ID

fileName

String

File Name

type

String

File Type

Get Order File Detail

GET https://open-api.zortout.com/v4/Order/GetOrderFileDetail

Get file detail and binary data of order.

Query Parameters

Name
Type
Description

id

Int

Order ID

*Must have either id or number

number

String

Order Number Require if id = 0 or null

*Must have either id or number

fileid*

Int

File ID

Headers

Name
Type
Description

storename*

String

Store Name

apikey*

String

API Key

apisecret*

String

API Secret

Parameter
Type
Description/Example

id

Int

File ID

content

String

Base64 Encode Data

fileName

String

File Name

type

String

File Type

Add File to Order

POST https://open-api.zortout.com/v4/Order/AddOrderFile

Add file to order.

Query Parameters

Name
Type
Description

id

Int

Order ID

*Must have either id or number

number

String

Order Number Require if id = 0 or null

*Must have either id or number

Headers

Name
Type
Description

storename*

String

Store Name

apikey*

String

API Key

apisecret*

String

API Secret

Request Body

Name
Type
Description

file*

File

File Binary Data

Parameter
Type
Description/Example

resCode

String

Response Code 200- Success

resDesc

String

Response Description

Get Purchase Order Files

GET https://open-api.zortout.com/v4/PurchaseOrder/GetPurchaseOrderFiles

Get list of files in purchase order.

Query Parameters

Name
Type
Description

id

Int

Purchase Order ID

*Must have either id or number

number

String

Purchase Order Number Require if id = 0 or null

*Must have either id or number

Headers

Name
Type
Description

storename*

String

Store Name

apikey*

String

API Key

apisecret*

String

API Secret

FileContent (Array)
Type
Description/Example

id

Int

File ID

fileName

String

File Name

type

String

File Type

Get Purchase Order File Detail

GET https://open-api.zortout.com/v4/PurchaseOrder/GetPurchaseOrderFileDetail

Get file detail and binary data of purchase order.

Query Parameters

Name
Type
Description

id

Int

Purchase Order ID

*Must have either id or number

number

String

Purchase Order Number Require if id = 0 or null

*Must have either id or number

fileid*

Int

File ID

Headers

Name
Type
Description

storename*

String

Store Name

apikey*

String

API Key

apisecret*

String

API Secret

Parameter
Type
Description/Example

id

Int

File ID

content

String

Base64 Encode Data

fileName

String

File Name

type

String

File Type

Add File to Purchase Order

POST https://open-api.zortout.com/v4/PurchaseOrder/AddPurchaseOrderFile

Add file to purchase order.

Query Parameters

Name
Type
Description

id

Int

Purchase Order ID

*Must have either id or number

number

String

Purchase Order Number Require if id = 0 or null

*Must have either id or number

Headers

Name
Type
Description

storename*

String

Store Name

apikey*

String

API Key

apisecret*

String

API Secret

Request Body

Name
Type
Description

file*

File

File Binary Data

Parameter
Type
Description/Example

resCode

String

Response Code 200- Success

resDesc

String

Response Description

PreviousFinanceNextDocument

Last updated 1 month ago