Batch shipping plan V2
POST https://{handle}.myshopline.com/admin/openapi/v20260301/logistics/shipping_zones_v2.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Bulk setting of logistics freight plans is supported and can be set based on the shipping group dimension. This operation will serve as the latest logistics freight plan, and any previous freight plans will be completely overwritten.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
shipping_zonesobject
Setting area plan objectproduct_group_infoobject
Item group informationproduct_group_seq stringProduct grouped serial number , required during update , empty addExample:"PG5938934496267609846"product_ids arrayProduct serial number list , groupType is required for 2 custom grouping ( Product spu serial number )Example:["[\"18053690657964710749100412\",\"18055123775710848634010412\"]"]product_group_name stringProduct group name , groupType is required when 2 custom grouping ; groupType is default value when 1 general grouping : general groupingExample:" custom shipping 01 "delivery_location_group_listobject[] required
Multiple shipping schemes for multiple shipping sites objectdefault_tag boolean requiredDefault shipping location group or notExample:truedelivery_plansobject[]
Multiple zone schemes objectshipping_plansobject[] required
Shipping information objectmeasure_unit stringUnit of measurement ( kg-kg , g-g , lb-lb , oz-oz , when chargeMode=1 , required ) eg. kgExample:"kg"incr_amount stringAmount of continued ( double type string for precision 2 ) eg. " 1.08 "Example:"1.88"incr_measure stringContinued ( double type string for precision 2 ) eg. " 2.01 "Example:"1.00"custom_amount stringCustom shipping amount ( double type string for accuracy 2 , when chargeMode=3 , for fixed shipping amount )Example:"90.88"first_amount stringStarting amount ( double type string for accuracy 2 ) eg. " 1.08 "Example:"3.80"charge_mode integer requiredCharge mode ( 1- by weight , 3- by-item fee , 4- fixed shipping ) must be within the right range [ 1 , 4 ]Example:1first_measure stringStarting volume ( double type string of precision 2 , when chargeMode=2 , must be whole number ) eg : " 1.08 "Example:3intervalsobject[]
Range object ( when conditionalInterval equals 2、3、4 , must be transferred )measure_unit stringUnit of measurement ( kg-kg , g-g , lb-lb , oz-oz , when chargeMode=1 , required ) eg. kgExample:"kg"start_interval stringStart zone ( double type string for accuracy 2 )Example:"0"custom_amount stringCustom shipping amount ( double type string for accuracy 2 , when chargeMode=3 , for fixed shipping amount )Example:"90.88"end_interval stringEnd zone ( double type string for accuracy 2 )Example:"3"first_amount stringStarting amount ( double type string for accuracy 2 ) eg. " 1.08 "Example:"3.80"first_measure stringStarting amount ( double type string for accuracy 2 ) eg. " 1.08 "Example:3incr_amount stringAmount of continued ( double type string for precision 2 ) eg. " 1.08 "Example:"1.88"incr_measure stringContinued ( double type string for precision 2 ) eg. " 2.01 "Example:"1.00"conditional_interval integer requiredConditions range ( 1- none , 2- number of units per Product , 3- weight per order , 4- price per order ) must be within a suitable range [ 1 , 4] eg. 1Example:3delivery_name string requiredShipping plan name , shipping name will be displayed to the user to seeExample:Shipping from china -01area_name string requiredRegional plan nameExample:China shippingareasobject[]
Zones objectarea_codes arrayCountry codeExample:["12001"]country_code string requiredNon-country address encoding ( such as province , city )Example:CNgroup_name stringThe name of the shipment place is classified , if it is the default delivery place group , the name can be emptylocation_seq_list arrayShipping location list associated with the shipping groupExample:[""]group_type integerShipping configuration type ( 1 : general grouping , 2 : custom grouping , default 1 general grouping if not transmitted )Example:1
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
shipping_zoneobject
Shipping plan settings return objectgroup_seq stringGrouping unique serial numberis_success booleanSuccess ( true or not : success , false : failure )ext_map mapExpand informationExample:{}
API Explorer
Debugger
Was this article helpful to you?