← Back to schema index

BeneficiaryImportRow

Row extracted from a beneficiary import file, with its classification bucket and parsed fields. The account travels in full for the import owner, who reviews and corrects it before committing; the cross-user admin view masks it. Wrapped under `{ type, id, attributes }` following JSON:API format.

ExtendsJsonApiResourceBase

Properties

FieldTypeDescription
typestring

JSON:API resource type. Always beneficiary_import_row.

idstring

Numeric row ID expressed as a string (JSON:API format).

attributesobject

Parsed row fields.

row_indexinteger

Position of the row within the original file, starting at 0. It allows locating the row in the source document.

statusstring

Classification bucket — valid: Ready for commit; correctable: Auto-corrected, confirmable; fatal: Uncorrectable error, skipped; duplicate_account: Account already registered (reactivated if archived); duplicate_alias: Duplicate alias, persisted with suffix.

parsed_accountstring | null

Normalized account number extracted from the file. The job owner can view and edit this value in the preview; null when no account could be extracted.

parsed_account_typestring | null

Detected account type. null when parsed_account is null. The types are clabe, card, and phone.

parsed_bank_codestring | null

5-digit SPEI code of the resolved bank, derived from parsed_account. null when it could not be resolved.

parsed_bank_namestring | null

Resolved name of the receiving bank. null when it could not be resolved.

parsed_labelstring | null

Label/alias extracted from the file or auto-assigned. null when no label could be extracted and none was auto-assigned.

error_codesarray

Stable error codes for the row (e.g. clabe_checksum_failed, alias_missing). Empty for valid rows.

corrections_appliedobject

Auto-corrections applied by the system to this row (e.g. { "alias_auto_assigned": "Proveedor 001" }). Empty if no corrections were made.

user_overridesobject

Manual user overrides submitted via PATCH /v1/beneficiaries/imports/{id}/rows/{rowId}. Take precedence over parsed values during commit.

raw_previewobject

Snippet of the original file for diagnostic purposes. Runs of 13 to 19 digits that are not a CLABE (18 digits) are masked (•••• plus the last four), as is a 10-digit phone number when a label such as "account" or "phone" precedes it, to prevent PAN exposure in debug payloads.

created_beneficiary_idinteger | null

ID of the beneficiary record created after commit. null until the job completed and this row was persisted.

Used in operations

  • GET /v1/beneficiaries/imports/{id}/preview
  • PATCH /v1/beneficiaries/imports/{id}/rows/{row_id}

Referenced by schemas