페이로드 샘플 및 오류
다음 샘플 페이로드를 사용하여 구매 데이터 임포트 및 익스포트를 활성화합니다.
페이로드
구매 기록을 임포트하고 익스포트하는 다음 샘플 페이로드를 참조하십시오.
| 이름 | 샘플 페이로드 |
|---|---|
| 송장 임포트 | Spendint API - POST /sn_spend_intg/spendint/invoice 문서를 참조하십시오. |
| 카탈로그 임포트 | Spendint API - POST /sn_spend_intg/spendint/catalog 문서를 참조하십시오. |
| 가용성 임포트 | Spendint API - POST /sn_spend_intg/spendint/availability 문서를 참조하십시오. |
| 배송 임포트 | Spendint API - POST /sn_spend_intg/spendint/shipment 문서를 참조하십시오. |
| 주문 확인 | Spendint API - POST /sn_spend_intg/spendint/orderack 문서를 참조하십시오. |
| 가격 임포트 | Spendint API - POST /sn_spend_intg/spendint/price 문서를 참조하십시오. |
오류
이 섹션에서는 다음 구매 오류에 대해 설명합니다.
카탈로그 오류(아웃바운드)
{
"root": {
"status_message": "",
"status_code": "Failure",
"customer_id": "AB-1234323",
"supplier_id": "SUP-123456",
"error_response_body": [
{
"error_message": "Field Value empty/Formatting issue Negotiated currency \n",
"mpn": "Z0WQ-20004301931",
"sku": "55788741"
}
]
}
}가격 오류(아웃바운드)
{
"root": {
"status_message": "",
"status_code": "Failure",
"customer_id": "AB-1234323",
"supplier_id": "SUP-123456",
"error_response_body": [
{
"error_message": "Field Value empty/Formatting issue Negotiated currency \n",
"mpn": "Z0WQ-20004301931"
}
]
}
}가용성 오류(아웃바운드)
{
"root": {
"status_message": "",
"status_code": "Failure",
"customer_id": "AB-1234323",
"supplier_id": "SUP-123456",
"error_response_body": [
{
"error_message": "Field Value empty/Formatting issue Negotiated currency \n",
"mpn": "Z0WQ-20004301931"
}
]
}
}배송 오류(아웃바운드)
{
"root": {
"status_message": "",
"status_code": "Failure",
"customer_id": "AB-1234323",
"supplier_id": "SUP-123456",
"error_response_body": [
{
"supplier_shipment_number": "SHIPSUP00001 \n",
"sales_order_number": "SOL0010001 \n",
"sales_order_line_number": "SOL0010001 \n",
"error_message": "The purchase order for this shipment does not exist \n"
}
]
}
}송장 오류(아웃바운드)
{
"root": {
"status_message": "",
"status_code": "Failure",
"customer_id": "AB-1234323",
"supplier_id": "SUP-123456",
"error_response_body": [
{
"supplier_invoice_number": "SUPINV000001 \n",
"supplier_invoice_line_number": "SUPINVL0000001 \n",
"sales_order_number": "SOL0010001 \n",
"sales_order_line_number": "SOL0010001 \n",
"error_message": "The provided invoices does not have a purchase order line number \n"
}
]
}
}아웃바운드 주문
{
"root": {
"order_amount": "200",
"order_number": "PO0010001",
"currency": "USD",
"order_date": "01-01-2021",
"customer_id": "AB-1234323",
"supplier_id": "SUP-123456",
"catalog_id": "ABC780987",
"order_lines": [
{
"sku": "A20002 \n",
"line_number":"POL0010001 \n",
"mpn": "09876789 \n",
"purchased_quantity": "2 \n",
"unit": "Each \n",
"unit_price": "USD \n",
"ship_to": "John A \n",
"contract_number": "VEN09000002 \n",
"organization_id": "868979 \n",
"enroll_in_abm": "yes",
"shipping_address": {
"name": "2225 Lawson Ln, Santa Clara, CA 95054, United States\n",
"street": "2225 Lawson Ln \n",
"city": "Santa Clara \n",
"state": "CA \n",
"zip_code": "95054 \n",
"country": "Unites States of America \n"
}
}
]
}
}