Request parameters (JSON):

  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
  • account_id - (mandatory) - Account ID that will be updated with new address
  • address
    • address_id - (conditional) - Unique address id
    • country_code - (conditional) - Country Code
    • country - (conditional) - Country
    • postal_code - (conditional) - Postal Code
    • state - (conditional) - State
    • region - (conditional) - Region
    • city - (conditional) - City
    • street - (conditional) - Street
    • house - (conditional) - House
    • email - (conditional) - emaio to be confirmed
    • extra_address_line - (conditional) - extra details, if required
    • address_type - (conditional) - type of address (i.e. main_address)



{
    "tenant": "zegoal",
    "account_id": 21,
    "address":
    {
      "street": "mazepy23",
      "state": "A2",
      "region": "kyiv-reg2",
      "postal_code": "04073",
      "house": "12",
      "extra_address_line": "2",
      "country_code": "ukr2",
      "country": "ua2",
      "city": "Kyiv2",
      "address_type": "main_address"
    }
  }
CODE


{
   "processing_result":    {
      "text": "success",
      "status": "ok",
      "code": 0
   },
   "processing_date": "2019-11-14 17:20:57",
   "AddAddress":    {
      "response":       {
         "tenant": "zegoal",
         "flow_type": "AddAddress",
         "address":          {
            "street": "mazepy23",
            "state": "A2",
            "region": "kyiv-reg2",
            "postal_code": "04073",
            "house": "12",
            "extra_address_line": "2",
            "country_code": "ukr2",
            "country": "ua2",
            "city": "Kyiv2",
            "address_type": "main_address"
         },
         "account_id": 21,
         "TZ": "Europe/Minsk"
      },
      "request":       {
         "tenant": "zegoal",
         "address":          {
            "street": "mazepy23",
            "state": "A2",
            "region": "kyiv-reg2",
            "postal_code": "04073",
            "house": "12",
            "extra_address_line": "2",
            "country_code": "ukr2",
            "country": "ua2",
            "city": "Kyiv2",
            "address_type": "main_address"
         },
         "account_id": 21
      }
   }
}
CODE