Criar cliente
Atualizado
curl --location '{IDENTITY_API_BASE_URL}/civil-registry/dha/customers' \
--data-raw '{
"id_type": "id_number",
"id_number": "9999999999999",
"client_reference": "clientnumber1",
"email": "[email protected]",
"first_name": "Walter",
"middle_name": "Hartwell",
"last_name": "White",
"popi": true,
"terms_and_conditions": true,
"country": null
}' \
--header 'x-api-key: {API_KEY}'{
"id": "16cd33d2-cf0a-66ad-8150-cb39e9b9ff27",
"client_reference": "clientnumber1",
"popi": null,
"terms_and_conditions": null,
"email": "[email protected]",
"id_number": "9999999999999",
"first_name": "Walter",
"middle_name": "Hartwell",
"last_name": "White",
"full_name": "Walter Hartwell White",
"id_type": "id_number",
"country": null,
"initials": "WHW"
}{
"status": 400,
"title": "Bad Request",
"detail": "Invalid request.",
"type": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400",
"errors": []
}{
"message": "Unauthorized"
}{
"Message": "User is not authorized to access this resource with an explicit deny"
}{
"status": 502,
"title": "Bad Gateway",
"detail": "Server got an invalid response.",
"type": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502"
}{
"message": "Endpoint request timed out"
}