> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Resource: Imports # Type: Loyalty Import Object # Link: https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/imports/loyalty-import-object.md ## Description: An Import object is a batch import of loyalty points for existing customers. You can use Loyalty Imports to import loyalty points from 3rd-party providers or update existing customer point balances. This object tracks the entire import process from file upload to data processing. ## Schema: ```json Type: Loyalty Import Object | type: LoyaltyImport Description: An Import object is a batch import of loyalty points for existing customers. You can use Loyalty Imports to import loyalty points from 3rd-party providers or update existing customer point balances. This object tracks the entire import process from file upload to data processing. - name: id | type: string | description: The ID of the import. - name: value | type: string | description: - name: asyncImportJobId | type: string | description: ID of the asynchronous import job associated with this import. - name: revision | type: string | description: Revision number, which increments by 1 each time the loyalty import is updated. To prevent conflicting changes, the current `revision` must be passed when updating the loyalty import. Ignored when creating a loyalty import. - name: value | type: string | description: - name: createdDate | type: string | description: Date and time the loyalty import was created. - name: seconds | type: string | description: - name: nanos | type: number | description: - name: updatedDate | type: string | description: Date and time the loyalty import was last updated. - name: status | type: string | description: Current status of the import process. enum: UNKNOWN, INITIATED, PARSING, PARSED, IMPORTING, IMPORTED, FAILED - name: fileMetadata | type: FileMetadata | description: Metadata of the uploaded file containing loyalty points data. - name: size | type: number | description: Size of the uploaded file in bytes. Max: `10 MB`. - name: value | type: number | description: - name: name | type: string | description: Name of the uploaded file. - name: url | type: string | description: URL of the uploaded file. - name: header | type: FileHeader | description: Column headings from the first row of the uploaded CSV file. - name: values | type: Array | description: Column headings from the first row of the uploaded file. - name: headerMappingInfo | type: HeaderMappingInfo | description: Mapping between loyalty data fields and the corresponding columns in the uploaded file. Must include mappings for both `EMAIL` and `POINTS` to be valid. - name: headerMappings | type: Array | description: Mappings between required loyalty data fields and file columns. Must contain exactly 2 mappings: one for `"EMAIL"` and one for `"POINTS"`. - name: sampleDataRows | type: Array | description: Up to 5 sample rows from the import file, providing a preview of the data to be imported. - name: values | type: Array | description: Values in one sample data row. Each value corresponds to a column in the CSV file. The number of values matches the number of columns in the file. - name: parseResult | type: ParseResult | description: Results of parsing the uploaded file, including the number of rows parsed and any parse errors. - name: parsedRowCount | type: number | description: Number of rows parsed from the uploaded import file. - name: parseErrorReason | type: string | description: Reason code explaining why parsing failed, if applicable. - name: importResult | type: ImportResult | description: Results of the import process, including success and failure counts. - name: errorFileExists | type: boolean | description: Whether an error file detailing import failures is available for download. The file includes row-by-row import status, error reasons, and original data. - name: successCount | type: number | description: Number of rows successfully imported. - name: failureCount | type: number | description: Number of rows that failed to import due to errors. ```