WalletD developers
Catalog

Apply a ready import in the background

Applies a previewed import in the background and answers 202 with the import moved to committing; poll the import to see it finish.

POST/v1/clients/{clientId}/imports/{importId}/commit

Applies a previewed import in the background and answers 202 with the import moved to committing; poll the import to see it finish. Needs authority over the client — membership of its organization, an API key bound to this client, or tenant staff holding clients:manage; anything else is refused not_client_member or insufficient_scope (403), and an unknown client client_not_found (404). Refuses invalid_state (409) when the import is not ready, or when every row carries an error so there is nothing to apply, and import_not_found (404).

Authorization

bearerAuth
AuthorizationBearer <token>

A tenant API key (sk_{env}_{id}_{secret}), a wallet user token, or an IdP access token. Which principal the credential resolves to decides the scopes it carries; see the authentication guide.

In: header

Path Parameters

clientId*string
Formatuuid
importId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/clients/497f6eca-6276-4993-bfeb-53cbbbba6f08/imports/497f6eca-6276-4993-bfeb-53cbbbba6f08/commit"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643",  "status": "validating",  "file_name": "string",  "has_images": true,  "row_count": 0,  "create_count": 0,  "update_count": 0,  "error_count": 0,  "applied_count": 0,  "error": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "committed_at": "2019-08-24T14:15:22Z"}