Create Contact
Creates a contact. This will also verify the contact's address if you create it using a live API key. To sucessfully create a contact, either a firstName, a companyName, or both are required. You can supply both, but you cannot supply neither.
You have the option to supply the entire address (except for countryCode) via addressLine1, in which case PostGrid will parse it automatically. However, this is not guaranteed to be correct, so we recommend passing along the structured address fields (city, provinceOrState, etc) if you have them.
Note that if you create a contact that has identical information to another contact, this will simply update the description of the existing contact and return it. This avoids creating duplicate contacts.
Request body
Response
The request has succeeded and a new resource has been created as a result.
Changes
Changed in 2 of the 7 revisions of this API.45
- ○
added the new optional request property
oneOf[ContactCreateWithCompanyName]/secretnew-optional-request-property
- ○
added the new optional request property
oneOf[ContactCreateWithFirstName]/secretnew-optional-request-property
- ○
added the optional property
secretto the response with the201statusresponse-optional-property-added
- ○
- ●
added the new
internal_server_errorenum value to theerror/typeresponse property for the response status500response-property-enum-value-added
- ●
added the new
not_found_errorenum value to theerror/typeresponse property for the response status404response-property-enum-value-added
- ●
added the new
rate_limit_exceeded_errorenum value to theerror/typeresponse property for the response status429response-property-enum-value-added
- ●
added the new
validation_errorenum value to theerror/typeresponse property for the response status400response-property-enum-value-added
- ○
added
subschema #1subschema #2to the response bodyanyOflist for the response status401response-body-any-of-added
- ○
removed
subschema #1subschema #2from the response bodyanyOflist for the response status401response-body-any-of-removed
This revision also has 21 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●