Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/pages/rest/modules/import/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,33 @@ The `import/json` endpoint is designed for JSON data:
* Convert your CSV into JSON using any trustworthy online converter.
* When converting CSV to JSON using standard tools or libraries, special characters within the data are typically escaped automatically. Ensure that any manual edits or custom conversion processes handle this escaping appropriately.

#### Customer imports in Adobe Commerce as a Cloud Service

In Adobe Commerce as a Cloud Service, the `POST /V1/import/json` endpoint does not support the `assistance_allowed` field when the `entity` field is set to `customer`. However, you can create or modify customers that have [remote shopping assistance enabled](https://experienceleague.adobe.com/en/docs/commerce-admin/customers/customer-accounts/manage/login-as-customer#customer-account-permission-for-remote-shopping-assistance) by using the following methods:

* Use `POST /V1/async/bulk/customers` to bulk create customers with `assistance_allowed` pre-enabled.

```json
{
"customer": {
"email": "user@example.com",
"firstname": "User",
"lastname": "Name",
"website_id": 1,
"extension_attributes": {
"assistance_allowed": 2
}
},
"password": "Password123!"
}
```

* Use the `PUT /V1/customers/{id}` endpoint to modify existing customers individually.

```json
{"customer": {"extension_attributes": {"assistance_allowed": 2}}}
```

### Validation Strategy

A validation strategy is mandatory. Depending on your chosen strategy, the API will either proceed with the import or abort it upon encountering invalid rows.
Expand Down
Loading