Create new document type
Create new document type
POST {{Environment_URL}}/v1/clients
This mutation is responsible to create a new document type of an existing client, with a logged user correspondent.
Before execute the mutation, you have to upload a document image file relative to the client. For more information about this procedure, see the Generate AWS signature section and follow the process.
Pass an
AuthorizationheaderPass the valid client key on header
Pass the client CPF document
Pass a valid document structure
Available document types:
RG,CNH,OTHERValid key from previous uploading document image
Available side:
FRONT,BACKPass two files on the version, one for front side and other for back side
The
filesstructure inside ofversionscan have a optional property namedimageUrlthat will not return any value when you are creating a new document or a new version.
Headers
Authorization
Bearer <token>
client-key
123ABCD456
Body (GraphQl) - MUTATION
Response

