Custom address validation

Git RepositoryEdit on Github
Last update: 2 years ago by luigi mangaReading time: 2 min

Setup a webhook for custom address validation

If you need to run custom address validation against incoming orders, you can setup a custom endpoint in the Order processing tab within you channel settings.

alt text

The endpoint should recieve a PUT request with the following payload.

"company": {
"name": "jetti-imac-1",
"email": ""
"parcelWeight": "0.1000",
"toAddress": {
"email": "",
"phone": "",
"name": "Jack Jones",
"firstName": "Jack",
"lastName": "Jones",
"addressLineOne": "1600 Pennsylvania Ave",
"addressLineTwo": null,
"city": "NW Washington",
"state": "CA",
"country": "US",
"zip": "20500",
"company": "Jack Inc"
"fromAddress": {
"email": "",
"phone": "",
"returnInHouse": true,
"addressLineOne": "1051 S Coast Hwy 101 B",
"addressLineTwo": "",
"city": "Encinitas",
"state": "CA",
"country": "US",
"zip": "92024",
"company": "Onport dropship"
"dimensions": {
"length": 12.4,
"width": 10.9,
"height": 1.5,
"distanceUnit": "in",
"massUnit": "lb",
"weight": "0.10"
"orderValue": 9.99,
"iso": "USD"

The endpoint should then return the amended data under an instance object, as follows:

"instance": {
"shippingFullName": "Test Customer",
"shippingFirstName": "Test",
"shippingLastName": "Customer",
"shippingName": "",
"shippingAddressLineOne": "1600 Pennsylvania Avenue",
"shippingAddressLineTwo": "",
"shippingCity": "Washington",
"shippingState": "DC",
"shippingCountry": "US",
"shippingZip": "20500",
๐Ÿ” Recipes โ€” Previous
Creating Custom Connections with Zapier
Next โ€” ๐Ÿ” Recipes
Custom fields