Quận / Huyện

AG - Fulfillment cung cấp API thông tin địa chỉ giúp khách hàng đồng bộ đơn hàng dễ dàng hơn

HTTP Request

Attribute
Value
Description

Method

GET

Phương thức HTTP Request

Headers

content-type: application/json

HTTP Headers

Request Dto

Attribute
Type
Required
Description

provinceId

string

Id được lấy từ danh sách này.

const axios = require('axios');

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://api.agbiz.vn/v2/order/locations/districts?provinceId=856_232',
  headers: { 
    'Accept': 'application/json'
  }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Response mẫu

Last updated