Phân lô phản hồi
Tương tự như quy trình yêu cầu hoá đơn, Google sử dụng cơ chế phân lô để Định dạng này mở rộng định dạng UBL để hợp nhất nhiều câu trả lời thành một giao dịch duy nhất. Lô này bao gồm một tiêu đề được xác định tuỳ chỉnh, nhưng mỗi phần tử trong lô tuân thủ nghiêm ngặt UBL 2.4 Application Response giản đồ.
Tiêu đề của lô
Tiêu đề của một lô phản hồi chứa siêu dữ liệu quan trọng về lô đó, bao gồm tên tệp yêu cầu và trạng thái xử lý tệp.
Chi tiết
Yếu tố | Nội dung mô tả | Ví dụ |
---|---|---|
RequestFileName |
Tên tệp yêu cầu đã tham chiếu có mã thông báo giá trị nhận dạng theo lô. | FileName_TokenID |
FileStatus/StatusCode |
Trạng thái xử lý tệp. Xem giá trị có thể có tại đây: list (danh sách). | CN |
FileStatus/StatusDescription |
Nội dung mô tả trạng thái xử lý tệp. | Đã xử lý thành công |
Ví dụ về XML
<ApplicationResponseBatch xmlns:ar='urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2'
xmlns:cac='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'
xmlns:cbc='urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2'
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2">
<RequestFileName>FileName_TokenID</RequestFileName>
<FileStatus>
<StatusCode>S</StatusCode>
<StatusDescription>Successfully Processed</StatusDescription>
</FileStatus>
<ar:ApplicationResponse>
<!-- Application Response -->
</ar:ApplicationResponse>
<ar:ApplicationResponse>
<!-- Application Response -->
</ar:ApplicationResponse>
</ApplicationResponseBatch>