Picture

Get Sale Order Attachments

Picture

Request Header

Name
Type
Required
Description
Authorization
String
Required
OAuth token obtained after the user has provided consent and the authorized partner calls the /authorization/Connect/Token endpoint to retrieve this token
Ocp-Apim-Subscription-Key
String
Required

Request Parameter

Name
Type
Required
Description
id
Integer
Required
รหัส sale order

Example Request

curl --location -g --request GET 'https://api.veniocrm.com/dev/v1/SalesOrders/{id}/Attachments' \

--header 'Ocp-Apim-Subscription-Key;<Your Subscription-Key>' \

--header 'Authorization: <Your access_token>'

Download postman Collection

Response

Name
Type
Description
attachmentId
Long
รหัสไฟล์แนบ
refId
Long
รหัสอ้างอิงจากตาราง Activity, Feedback, Inventory, PurchaseRequisition
type
Integer
ประเภทไฟล์ 1=Activity,2=Expense,3=Customer
filename
String
ไฟล์แนบ
extension
String
นามสกุลไฟล์
fileSize
Integer
ขนาดไฟล์
isActive
Boolean
ใช้งานอยู่หรือไม่
createdByUserId
String
User ผู้สร้าง
dateCreated
DateTime
วันที่สร้าง
resourceUrl
String
Url ที่มา
companyId
Integer
รหัสบริษัท
isProcessed
Boolean
ดำเนินการแล้วหรือยัง
url
String
Url
urlResponseUpload
String
thumbnail
String
รูปขนาดย่อ

Example Response

{

    "data": {

        "value": [

            {

                "attachmentId": 0,

                "refId": 0,

                "type": 0,

                "filename": "string",

                "extension": "string",

                "fileSize": 0,

                "isActive": true,

                "createdByUserId": "string",

                "dateCreated": "2021-09-18T07:01:35.481Z",

                "resourceUrl": "string",

                "companyId": 0,

                "isProcessed": true,

                "url": "string",

                "urlResponseUpload": "string",

                "thumbnail": "string"

            }

        ],

        "formatters": [],

        "statusCode": 200

    },

    "statusCode": 1000,

    "httpStatusCode": 200

}

Response Codes

HTTP Status Code
Description
200
Get ข้อมูลสำเร็จ
400
รหัส Sale order ไม่ถูกต้อง
401
Unauthorized
403
Forbidden
© Copyright 2021 Gofive Co., Ltd. All right reserved.