Tất cả hệ thống đang hoạt động ổn định
API Gateway: 99.99%Core DB: 100%Webhook: Đang hoạt động
Xem trang trạng tháiDeveloper Portal
Engineering Journal & cập nhật API.
Các bài phân tích kỹ thuật, ghi chú phát hành và cập nhật tài liệu trực tiếp từ đội ngũ kỹ sư Dcorp.
OrderInjection.tsDcorpClient.ts
// Example: Injecting a 3rd-party delivery order directly into POS Core
// API Version: v3.2.0
// API Version: v3.2.0
import { DcorpClient } from '@dcorp/enterprise-sdk';
const client = new DcorpClient({
apiKey: process.env.DCORP_SECRET_KEY,
environment: 'production'
});
async function injectOrder(payload: DeliveryOrder) {
try {
const response = await client.orders.create({
storeId: "VN-HCM-045",
source: "GRAB_FOOD",
items: payload.items,
bypassLocalQueue: false // Ensure offline-sync safety
});
console.log(`Order routed to KDS. Ticket ID: ${response.ticketId}`);
} catch (error) {
await ErrorHandler.log(error);
}
}
const client = new DcorpClient({
apiKey: process.env.DCORP_SECRET_KEY,
environment: 'production'
});
async function injectOrder(payload: DeliveryOrder) {
try {
const response = await client.orders.create({
storeId: "VN-HCM-045",
source: "GRAB_FOOD",
items: payload.items,
bypassLocalQueue: false // Ensure offline-sync safety
});
console.log(`Order routed to KDS. Ticket ID: ${response.ticketId}`);
} catch (error) {
await ErrorHandler.log(error);
}
}
Truy cập sandbox cho nhà phát triển.
Yêu cầu quyền truy cập vào tài liệu đầy đủ, OpenAPI spec và môi trường sandbox biệt lập để đánh giá Integration Hub trước khi triển khai.
