Api key provided on integrations tab in Easyflow platform.
Create customer
Route to create customer
Headers
x-api-keystringrequiredx-api-secretstringrequiredApi Secret provided on integrations tab in Easyflow platform.
Request body
Content typeapplication/jsonobject
businessIdstringrequirednamestringrequiredemailstringrequiredcontactEmailstring · emailOptional contact email for the customer. It must be a valid email address and is stored in lowercase, without surrounding spaces.
addressobjectShow child attributesHide child attributes
zipCodestringstreetstringcomplementstringneighborhoodstringcitystringstatestringThe state must send an abbreviation (Example: sp)
numberstring
deliveryAddressobjectShow child attributesHide child attributes
zipCodestringstreetstringcomplementstringneighborhoodstringcitystringstatestringThe state must send an abbreviation (Example: sp)
numberstring
documentobjectrequiredShow child attributesHide child attributes
typestringnumberstring
phoneobjectShow child attributesHide child attributes
areaCodestringdddstringnumberstringisMobileboolean
Responses
200returns customer if you managed to create the customer.
returns customer if you managed to create the customer.
Content typeapplication/jsonobject
statusCodeintegerdataobjectShow child attributesHide child attributes
customerobjectShow child attributesHide child attributes
idstringcreatedAtstringupdatedAtstringdeletedbooleannamestringbusinessIdstringuserIdstringemailstringphoneobjectShow child attributesHide child attributes
areaCodestringdddstringnumberstringisMobileboolean
addressobjectShow child attributesHide child attributes
zipCodestringstreetstringnumberstringcomplementstringneighborhoodstringcitystringstatestringThe state must send an abbreviation (Example: sp)
deliveryAddressobjectShow child attributesHide child attributes
zipCodestringstreetstringnumberstringcomplementstringneighborhoodstringcitystringstatestringThe state must send an abbreviation (Example: sp)
documentobjectShow child attributesHide child attributes
typestringnumberstring
400If the provided parameter is invalid, the API will return the following error response:
If the provided parameter is invalid, the API will return the following error response:
Content typeapplication/jsonobject
messagestringInvalid param: []
errorstringBad Request
statusCodeinteger400
errorCodestringCode that identifies the error. Present only on some errors.
401If the request is unauthorized, the API will return the following error response:
If the request is unauthorized, the API will return the following error response:
Content typeapplication/jsonobject
messagestringInvalid field
errorstringUnauthorized
statusCodeinteger401
403If the request is forbidden, the API will return the following error response:
If the request is forbidden, the API will return the following error response:
Content typeapplication/jsonobject
messagestringForbidden resource
errorstringForbidden
statusCodeinteger403
500If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.
If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.
Content typeapplication/jsonobject
statusCodeintegerHTTP status code.
messagestringExplanation of the error.