Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

バッチファイルの出力構造

This page describes the JSON output file generated after a batch input file is processed.

The output file structure is similar to the input batch file and contains one header object and an array of record-level results.

Output file structure

Name
Type
Size
M/O/C
Description

header

Object

-

M

Summary of the batch processing result.

recordsResults

Array

-

C

Array of record results. Each entry contains the result of one operation. This array is present only when no error is detected at the file (header) level.

Header object

The header object has the following structure:

Name
Type
Size
M/O/C
Description

batchId

String

48

M

Identifier of the batch file. This value is copied from the batchId field in the input file header.

seqNumber

String

48

M

Sequence number of the batch file. This value is copied from the seqNumber field in the input file header.

issuerId

String

10

M

Identifier of the issuer.

operation

String

48

M

Operation executed for this batch file. This value is copied from the operation field in the input file header.

totalRecords

Integer

N/A

C

Number of records included in the report. This field is present only when no error is detected at the file (header) level.

errorCode

String

3

C

Error code returned when an error is detected at the file (header) level. For details, see Batch file error handling.

Record results

Each item in the recordsResults array has the following structure:

Name
Type
Size
M/O/C
Description

rowId

Integer

-

M

Row identifier. This value is the same as in the input batch file.

consumerCardRegistrationResult

Object

-

M

Result of the end user and card registration for this record.

consumerCardRegistrationResult object

Name
Type
Size
M/O/C
Description

consumerId

String

1...64

M

Unique identifier of the end user (consumer).

consumerStatus

String

2

M

Enum: OK, KO. OK means the end user record was successfully processed. KO means the end user record processing failed.

cards

Array of card (Object)

N/A

M

Array that contains the result for each card associated with this end user.

consumerError

String

N/A

C

Additional error description, when available. For example, it may identify the field with an invalid format. This field is only present in case of error.

consumerErrorCode

String

N/A

C

Error code returned when consumerStatus is KO.

card object

Each card element in the cards array has the following structure:

Name
Type
Size
M/O/C
Description

id

String

1...48

M

Unique identifier that the issuer assigns to the card.

status

String

2

M

Enum: OK, KO. OK means the card record was successfully processed. KO means the card record processing failed.

digitalCardIds

Array of String

N/A

O

Present only for digital card migration or registration. Lists all digital card IDs successfully registered in D1 for the given card. Applicable only when the input file header operation is CONSUMER_CARD_REGISTRATION_WITH_DIGITAL_CARDS.

error

String

N/A

C

Additional error description, when available. For example, it may identify the field with an invalid format. This field is only present in case of error.

errorCode

String

N/A

C

Error code returned when status is KO. For details, see Batch file error handling.

Batch file example

The following example shows an output file with two end users successfully registered. The first end user has no cards. The second end user has one card, but the card credentials provided in the input batch file were not correctly encrypted, so the card registration failed.

最終更新

役に立ちましたか?