Tỉnh / Thành phố

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

number

Thị trường trên AG Fulfillment: Thái Lan: 66, Phillies: 63, Malaysia: 60,

Ấn Độ: 91,

Myanmar: 95, Indonesia: 62,

Lào: 856,

Mỹ: 1

const axios = require('axios');

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://api.agbiz.vn/v2/order/locations/provinces?countryCodes=856',
  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