API 서비스 기반의 물류 데이터 동기화 클라우드 플랫폼

           

1. 발주정보 조회

Request

GET https://{domain}/api/Nfa/GetPurchaseOrderList

   

Parameters

이름 데이터명 유형 필수여부
cust_cd String 거래처코드  
start_dt Datetime 조회시작일자 O
end_dt Datetime 조회종료일자 O

   

Response

이름 데이터명 유형
type 성공여부 int
message 메시지 String
po_no 구매발주번호 String
po_seq 순서 int
cust_cd 거래처코드 String
cust_nm 고래처명 String
item_cd 품번 String
item_nm 품명 String
std 규격 int
po_qty 발주수량 int
po_state 발주상태 String
req_dt 발주등록일 datetime
upd_dt 상태변경일 datetime

   

Jquery 코드 샘플

1
2
3
4
5
6
7
8
9
10
11
async function get(method, param){
    const host = 'https://scm.oliveware.co.kr'
    const response = await fetch(`${host}/api/Nfa/${method}?param=${JSON.stringify(param)}`, {
        credentials: 'include'
    });
 
    const data = await response.json();
    return data;
};
get('GetPurchaseOrderList', {cust_cd: 'VA001', start_dt: '2023-05-01', end_dt: '2023-05-08'}).then(data => console.log(data));
cs

       

2. 입고정보 조회

Request

GET https://{domain}/api/Nfa/GetOutsourcingList

   

Parameters

이름 데이터명 유형 필수여부
cust_cd String 거래처코드 O
start_dt Datetime 조회시작일자 O
end_dt Datetime 조회종료일자 O

   

Response

이름 데이터명 유형
type 성공여부 int
message 메시지 String
cust_cd 거래처코드 String
cust_nm 고래처명 String
item_cd 품번 String
item_nm 품명 String
std 규격 int
po_qty 발주수량 int
po_state 발주상태 String
req_dt 발주등록일 datetime
upd_dt 상태변경일 datetime
lot_id 로트아이디 String

   

Jquery 코드 샘플

1
2
3
4
5
6
7
8
9
10
11
async function get(method, param){
    const host = 'https://scm.oliveware.co.kr'
    const response = await fetch(`${host}/api/Nfa/${method}?param=${JSON.stringify(param)}`, {
        credentials: 'include'
    });
 
    const data = await response.json();
    return data;
};
get('GetOutsourcingList', {cust_cd: 'VA001', start_dt: '2023-05-01', end_dt: '2023-05-08'}).then(data => console.log(data));
cs

       

3. 출하정보 조회

Request

GET https://{domain}/api/Nfa/GetShipList

   

Parameters

이름 데이터명 유형 필수여부
cust_cd String 거래처코드 O
start_dt Datetime 조회시작일자 O
end_dt Datetime 조회종료일자 O

   

Response

type 성공여부 int
message 메시지 String
cust_cd 거래처코드 String
cust_nm 고래처명 String
ship_dt 출하일 Datetime
order_no 수주번호 String
slip_no 전표번호 String
dlvy_nm 납품처 String
cust_item_cd 거래처품번 String
cust_item_nm 거래처품명 String
item_cd 품번 String
item_nm 품명 String
std 규격 String
lot_id 로트아이디 String
so_qty 주문수량 int
ship_qty 출하수량 int
ship_unit 출하단위 String

   

Jquery 코드 샘플

1
2
3
4
5
6
7
8
9
10
11
async function get(method, param){
    const host = 'https://scm.oliveware.co.kr'
    const response = await fetch(`${host}/api/Nfa/${method}?param=${JSON.stringify(param)}`, {
        credentials: 'include'
    });
 
    const data = await response.json();
    return data;
};
get('GetShipList', {cust_cd: 'VA001', start_dt: '2023-05-01', end_dt: '2023-05-08'}).then(data => console.log(data));
cs

       

4. 수주정보 조회

Request

GET https://{domain}/api/Nfa/GetCustOrder

   

Parameters

이름 데이터명 유형 필수여부
cust_cd String 거래처코드 O
start_dt Datetime 조회시작일자 O
end_dt Datetime 조회종료일자 O

   

Response

type 성공여부 String
message 메시지 String
cust_cd 거래처코드 String
cust_nm 고래처명 String
insp_id 검사구분 아이디 String
item_gb 품목구분 String
work_dt 검사일 String
shift_cd 작업조코드 String
fml_type 초중종구분 String
insp_oper_cd 검사공정코드 String
batch 차수 String
item_cd 품번 String
item_nm 품명 String
std 규격 String
insp_result 결과 String
insp_dt 검사일 String
reg_user_id 검사자 String
note 비고 String
stock_unit 단위 String
item_grp 품목군 String
prdct_grp 제품군 String
insp_file 검사성적서 파일명 String
insp_file_route 검사성적서 경로 String

   

Jquery 코드 샘플

1
2
3
4
5
6
7
8
9
10
11
async function get(method, param){
    const host = 'https://scm.oliveware.co.kr'
    const response = await fetch(`${host}/api/Nfa/${method}?param=${JSON.stringify(param)}`, {
        credentials: 'include'
    });
 
    const data = await response.json();
    return data;
};
get('GetCustOrder', {cust_cd: 'VA001', start_dt: '2023-05-01', end_dt: '2023-05-08'}).then(data => console.log(data));
cs