Yêu cầu dịch vụ
HTTP Provider của kho hiện chưa triển khai các thao tác này trong môi trường thật. Xác nhận khả dụng với support@hiobuy.com trước khi dùng. Các schema và ví dụ dưới đây được giữ để tham khảo tương thích.
Đăng ký và theo dõi dịch vụ giá trị gia tăng trên package (inbound) hoặc shipment (outbound).
| Method | Path | Purpose |
|---|---|---|
| POST | /v1/fulfillment/service-requests | Tạo |
| GET | /v1/fulfillment/service-requests | Danh sách |
| GET | /v1/fulfillment/service-requests/{id} | Chi tiết |
| POST | /v1/fulfillment/service-requests/{id}/confirm | Xác nhận |
IDs: svc_*. Statuses: PENDING · AWAITING_CONFIRMATION · PROCESSING · COMPLETED · FAILED · CANCELLED.
Bộ lọc danh sách
Tham số query của GET /v1/fulfillment/service-requests:
| Tham số | Ghi chú |
|---|---|
resource_type | PACKAGE | SHIPMENT |
resource_id | Exact match (e.g. pkg_*, shipment id) |
service_code | Exact VAS CODE (normalized to uppercase) |
stage | INBOUND | OUTBOUND |
status | Multi: PENDING,COMPLETED or repeated status= |
created_from / created_to | Filter by created_at (ISO-8601) |
page / page_size | Default 1 / 20, max page_size 100 |
Chi tiết GET …/service-requests/{id} không có bộ lọc — chỉ theo id.
Tạo
Tạo hàng loạt mang tính atomic. PACKAGE→INBOUND, SHIPMENT→OUTBOUND. Catalog: Value-added services.
Xác nhận
Với phí báo giá (AWAITING_CONFIRMATION): gửi { "fee_amount", "currency" } khớp pricing.amount. Idempotent nếu đã xác nhận.
Get Support
Need integration help? Contact Developer Support at support@hiobuy.com · Response within 1–2 business days