Skip to main content

Zone

v1

Description

Zone is a geographical region that contains a group of stores. Seller will be able to create or update shipping charges per product variant and location. Get notified whenever a zone is created or modified.


Supported Type

  • Create
  • Update

Payload

{
"event":{
"id":"rOcs838XXrj5ef6LoJkfu9y3TTW25tDekAsleAA4Eck=",
"name":"zone",
"type":"update",
"version":"1",
"category":"company",
"trace_id":[
"stormbreaker.492ed3f5-9da3-45d9-9922-31be1811438f"
],
"created_timestamp":1661319161914
},
"payload":{
"zone":{
"new":{
"zone_id":"6232d52653da68b0a99188ef",
"slug":"delhi-region",
"name":"delhi Region",
"company_id":4,
"store_ids":[
1
],
"product":{
"type":"explicit",
"tags":[
"liquid"
]
},
"channels":[
{
"channel_id":"12345",
"channel_type":"application"
}
]
},
"old":{

}
}
},
"contains":[
"zone"
],
"company_id":2
}

Object Properties

KeyTypeDescription
zoneObjectcontain details about created zone
zone.newObjectNew Created/Updated Zone
zone.oldObjectContains older payload (same format as new) (empty during create)
zone.new.zone_idStringZone ID
zone.new.slugStringSlug of the region associated with the zone
zone.new.nameStringCanonical name of slug
zone.new.company_idIntegerCompany ID of zone
zone.new.store_idsListList of stores for the created/updated zone
zone.new.product.typeStringProduct type
zone.new.product.tagsListProduct tags associated with the zone
zone.new.channels[0].channel_idStringChannel ID (Application or Extension ID)
zone.new.channels[0].channel_typeStringChannel type: Application or Extension