1. Config
Onflow Open API
  • Getting Started
  • Overall logic
  • Error code
  • API
    • Config
      • Get Warehouse
        GET
      • Get Brand
        GET
      • Get Province
        GET
      • Get District
        GET
      • Get Ward
        GET
      • Upload file
        POST
      • Pricing
        POST
    • Product
      • Create Product
      • Assign Product
      • Get Product List
      • Get Product Detail
      • Get Stock
      • Deactivate Product
    • PO
      • Create PO
      • Get PO List
      • Get PO Bill
      • Get PO Detail
      • Get PO Inspection Detail
      • Cancel PO
    • Shipment
      • B2C Shipment
        • Create B2C Shipment
        • Get B2C Shipment List
        • Get B2C Shipment Detail
        • Cancel B2C Shipment
        • Get B2C Return Inspection
      • B2C Return shipment
        • Create Return B2C Shipment
        • Get Return B2C Shipment List
        • Get Return B2C Shipment Detail
        • Cancel Return B2C Shipment
        • Get B2C Return Shipment Inspection
      • B2B Shipment
        • Create
        • Get list
        • Get detail
        • Cancel
      • B2B Return shipment
        • Create
        • Get list
        • Get detail
        • Cancel
        • Get B2B Return Shipment Inspection
    • Stock
      • Get inventory Batch/lot
      • Get inventory Expired date
      • Get inventory Expired percent
  • Webhook
    • Shipment
      • Updated Shipment Status
    • Return
      • Updated Return Status
    • PO
      • Updated PO Status
    • Stock
      • Updated Stock
  1. Config

Get Province

GET
/api/common/v1/locations/provinces

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Query Params

Responses

🟢200
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/common/v1/locations/provinces?page=1&page_size=10&keyword=undefined' \
--header 'Authorization: <api-key>'
Response Response Example
{
    "data": [
        {
            "id": 51,
            "province_name": "Quảng Ngãi"
        },
        {
            "id": 45,
            "province_name": "Quảng Trị"
        },
        {
            "id": 75,
            "province_name": "Đồng Nai"
        },
        {
            "id": 22,
            "province_name": "Quảng Ninh"
        },
        {
            "id": 56,
            "province_name": "Khánh Hòa"
        },
        {
            "id": 27,
            "province_name": "Bắc Ninh"
        },
        {
            "id": 14,
            "province_name": "Sơn La"
        },
        {
            "id": 52,
            "province_name": "Bình Định"
        },
        {
            "id": 66,
            "province_name": "Đắk Lắk"
        },
        {
            "id": 64,
            "province_name": "Gia Lai"
        }
    ],
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 63,
    "version": "1.0.3",
    "error_detail": null,
    "execution_time": []
}
Modified at 2026-05-14 08:38:44
Previous
Get Brand
Next
Get District
Built with