| error_code | message en | message vi |
|---|---|---|
| BAD_REQUEST | Bad request | - |
| UNAUTHORIZED | Invalid access token | - |
| FORBIDDEN | User does not have access permission | - |
| NOT_FOUND | Resource not found | Không tìm thấy tài nguyên |
| METHOD_NOT_ALLOWED | Method not allowed | Phương thức không được hỗ trợ |
| REQUEST_TIMEOUT | Request timeout | - |
| INVALID_PAYLOAD | Invalid request payload | - |
| INTERNAL_SERVER_ERROR | Internal server error | - |
| PRODUCTS_BY_OASIN_NOT_FOUND | The OASIN codes {oasin_list} do not exist | - |
| PRODUCTS_NOT_MAPPED_IN_WAREHOUSE | The OASIN codes {oasin_list} are not mapped to this warehouse code | Mã sản phẩm {oasin_list} chưa được gắn với mã kho yêu cầu |
| PRODUCTS_INACTIVE | The OASIN codes {oasin_list} must be in ACTIVE status to perform this action | Mã sản phẩm {oasin_list} phải ở trạng thái ACTIVE để thực hiện thao tác này |
| UNAUTHORIZED | Invalid token header. No credentials provided. | Token không hợp lệ. Bạn chưa cung cấp thông tin xác thực. |
| UNAUTHORIZED | Invalid token. User key not found. | Token không hợp lệ. Mã xác thực không được tìm thấy. |
| error_code | message en | message vi |
|---|---|---|
| DUPLICATE_BARCODE | Barcode already exists within the same business | Mã vạch đã tồn tại trong cùng doanh nghiệp |
| ALREADY_EXISTS | SKU already exists within the same business | SKU đã tồn tại trong cùng doanh nghiệp |
| NOT_FOUND | Brand not found | Không tìm thấy thương hiệu |
| PRODUCT_NOT_FOUND | Product not found | Không tìm thấy sản phẩm |
| PRODUCT_STATUS_NOT_NEW | Product must be in NEW status to perform this action | Sản phẩm phải ở trạng thái NEW để thực hiện thao tác này |
| PRODUCT_WAREHOUSE_CONFLICT | Product is already mapped with this warehouse | Sản phẩm đã được gán với kho này |
| PRODUCT_CANNOT_ASSIGN_TO_WAREHOUSE | Product cannot be assigned to warehouse because its status is not allowed | Không thể gán sản phẩm vào kho vì trạng thái không được phép |
| PRODUCT_NOT_IN_WAREHOUSE | Product does not exist in the specified warehouse | Sản phẩm không tồn tại trong kho được chỉ định |
| error_code | message en | message vi |
|---|---|---|
| DUPLICATE_PACKAGE_CODE | Duplicate package code values are not allowed within the same PO | Không được trùng giá trị mã kiện trong cùng một PO |
| DUPLICATE_OASIN_IN_ITEMS | Duplicate product values are not allowed within the same package | Không được trùng giá trị sản phẩm trong cùng một kiện hàng |
| PURCHASE_ORDER_ALREADY_EXISTS | merchant_po_reference already exists within the same business | merchant_po_reference đã tồn tại |
| PURCHASE_ORDER_NOT_FOUND | Purchase order not found | Không tìm thấy PO |
| PURCHASE_ORDER_STATUS_NOT_TRANSIT | Purchase order must be in TRANSIT status to perform this action | Purchase order phải ở trạng thái TRANSIT để thực hiện thao tác này |
| PURCHASE_ORDER_STATUS_NOT_COMPLETED | Purchase order must be in COMPLETED status to perform this action | Purchase order phải ở trạng thái COMPLETED để thực hiện thao tác này |
| PURCHASE_ORDER_ALREADY_EXISTS | Purchase order already exists | Purchase order đã tồn tại |