post
https://user-api.omni.chat/v1/retailers/clones/validate
Dry run of the create route. It checks a clone request and writes nothing: no operation is created and no store is touched.
It runs the same access checks as the create route, including the store-clone flag and the caller's access to the source store, which answer 403 when they fail. A missing or blank taxDocumentId answers 400 from the request schema, with the Joi violations as the body. Then it checks:
- the required store fields (
taxDocumentId,retailerName,street,streetNumber,suburb,zipCode,city,state); - the CNPJ: valid check digits (
INVALID_TAX_DOCUMENT_ID) and not used by another store of the platform (TAX_DOCUMENT_ID_ALREADY_REGISTERED); - the contract and plan of the source store: they must exist, be active and not be billed by users (reported on the field
sourceRetailerId, codeSOURCE_NOT_COPYABLE); - the availability of
retailerNameand, when sent,hostNamein parse-server (REJECTED_BY_PLATFORM).
Answers 200 with valid: true when nothing is wrong. Otherwise it answers 422 with every problem in details.fieldErrors, each with field, code and a pt-BR message. It does not take an Idempotency-Key.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…