Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleAPI Spec Document

Method

POST

URL

/application/contractIntegrationSap/get

Description

API Chi tiết thông tin gửi sang SAP

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. Request body

STT

Field

Required

Data Type / Length

Description

Note

1contractIdtrueStringid hợp đồng

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note


1codeInteger0: thành công, != 0 thất bại

2messageString


3resultObject


4(result) idIntegerid

5(result) projectIdIntegerid dự án

6(result) organizationIdIntegerid nhà thầu

7(items) contractTypeIdIntegerid loại hợp đồng

8(items) departmentIdIntegerid phòng ban thực hiện

9(items) signedAtString Ngày kí hợp đồng

10(items) executionTimeIntegerThời gian thực hiện

11(items) warrantyExpiredAtString 
ngày hết hạn bảo hành


12(items) amountBeforeTaxBigDecimal
giá trị HĐ trước thuế


13(items) currencyUnitIdInteger
id tiền tệ


14

(items) exchangeRate

String 
tỉ giá tương ứng


15

(items) status

Integer
 Tình trạng. 1: Đã quyết toán, 2: Chưa quyết toán, 3: Chưa thực hiện, 4: Đang bảo hành, 5: Hợp đồng đã xóa


16

(itemscontractNo

String
số hợp đồng



(itemssapContractNo

String
 Mã hợp đồng SAP



(itemsfieldId

Integer
id lĩnh vực



(itemsimplementationProgress

String
tiến độ thực hiện



(itemscreatedDate

String
Ngày tạo hợp đồng



(itemspurchasingOrgId

String
Tổ chức mua hàng



(itemseffectiveDate

String
ngày hiệu lực



(itemseffectiveStartDate

String
ngày bắt đầu hiệu lực



(itemsexpectedEndDate

String
Ngày hết hạn 



(itemsappendixCode

String
mã phụ lục hợp đồng



(itemscontractContent

String
Nội dùng hợp đồng



(itemspotId

Integer
id hồ sơ



(itemscontractId

Integer
id hợp đồng



(itemscontractStatus

Integer
Trạng thái hợp đồng



(itemssyncStatus

Integer
trạng thái đồng bộ



(itemsisSynced

Integer
Đánh dấu bản ghi đã đồng bộ trên SAP



(itemscontractTypeName

String
Tên loại hợp đồng



(itemsprojectName

String
tên dự án



(itemsorganizationName

String
tên nhà thầu



(itemscurrencyUnitName

String
tên đơn vị tiền tệ



(itemsdepartmentName

String
tên phòng ban thực hiện



(itemsfieldName

String
tên lĩnh vực



(items) purchasingOrgName

String
tên tổ chức mua hàng



(itemscontractItems

List<Object>
Thông tin chi tiết hàng hóa



(contractItems) id

Integer




(contractItems) taxId

Integer
id mã thuế



(contractItems) generalLineNo

String
STT line tổng quan



(contractItems) specialContract1

String
Loại hợp đồng đặc biệt 1



(contractItems) specialContract2

String
Loại hợp đồng đặc biệt 2



(contractItems) generalServiceName

String
Tên Dịch vụ/ Hạng mục tổng quan



(contractItems) investorId

Integer
id Kho/ Đơn vị



(contractItems) groupId

Integer
id Nhóm vật tư/ Dịch vụ



(contractItems) detailLineNo

String
STT line chi tiết



(contractItems) detailServiceName

String
Tên Dịch vụ/ Hạng mục chi tiết



(contractItems) quantity

Integer
Khối lượng



(contractItems) unitId

Integer
id Đơn vị tính



(contractItems) price

Integer
Đơn giá



(contractItems) feeItemId

StringInteger
sốid Khoản hợpmục đồngphí



(contractItems) budgetSection

String
sốHạng mục hợpngân đồngsách



(contractItems) effectiveDate

String
sốNgày hợphiệu đồnglực



(contractItems) integrationCategoryId

String
sốID danh mục tích hợp đồng



(contractItems) contractId

String
sốid hợp đồng



(contractItems) status

String
sốtrạng hợp đồngthái



(contractItems) warehouse

Integer
idtên kho/đơn thuếvị



(contractItems) unitName

String
sốtên hợpđơn đồngvị



(contractItems) feeItemName

String
sốKhoản hợpmục đồngphí



(contractItems) taxName

String
sốtên hợp đồngthuế



(contractItems) groupName

String
số hợp đồngNhóm vật tư/ Dịch vụ



(contractItems) isDeleted

String
số hợp đồngđánh dấu bản ghi bị xóa



(contractItems) taxCode

String
số hợp đồngthuế



(contractItems) investorSapCode

String
số hợp đồng




(contractItems) groupCode

Stringsố hợp đồng




(contractItems) unitCode

String
số hợp đồng




(contractItems) feeItemCode

Stringsố hợp đồng




3.4 Mô tả các trường dữ liệu trên màn hình:

...