Etaxgo V2
  1. Locations
  • Authentication
    • Get access token (OAuth 2.0 Client Credentials)
      POST
  • Documents
    • Full document detail + line items + linked docs
      GET
    • Stream signed PDF from blob storage
      GET
    • Create a Cancellation Note (T07)
      POST
    • Create a Credit Note (81)
      POST
    • Create a Debit Note (80)
      POST
    • Create a Replacement Tax Invoice (388)
      POST
    • Create a Tax Invoice (388)
      POST
  • Dashboard
    • Advanced document search with date range
      POST
  • Locations
    • Resolve Thai address codes (sub-district / district / province + post code)
      GET
  • Schemas
    • test
    • AdjustmentDocRequest
    • UserSignatureResponse
    • BillDiscountItem
    • SuccessEnvelope
    • CancelDocRequest
    • SuccessNull
    • ErrorResponse
    • ValidationErrorResponse
    • LocationResult
    • LocationSearchResponse
    • OAuthTokenResponse
    • OpenAPIBuyer
    • RegisterRequest
    • TokenResponse
    • OpenAPIBuyerDelivery
    • PasswordTokenRequest
    • OpenAPICreateResponse
    • EmailResponse
    • OpenAPICreateValidationError
    • MeResponse
    • OpenAPIDiscount
    • InviteRequest
    • OpenAPIDocumentDetails
    • User
    • OpenAPILineItem
    • CompanyOptionItem
    • OpenAPISellerRef
    • UpdateUserRequest
    • OpenAPITaxInvoiceHeader
    • CustomerRequest
    • OpenAPITaxInvoiceRequest
    • CompanyDetailsResponse
    • PaginatedResponse
    • UpdateCompanyInfoRequest
    • PaginationMeta
    • ReplacementDocRequest
    • BrandingResponse
    • TokenRequest
    • CreateCompanyRequest
    • SequencePrefixItem
    • SequenceSettingsResponse
    • SaveSequenceSettingsRequest
    • BranchItem
    • ImportProductRow
    • ImportProductPreviewRequest
    • ImportProductPreviewResult
    • ImportProductConfirmRequest
    • ImportProductConfirmResult
    • ProductRequest
    • BranchRequest
    • BranchSettingsRequest
    • SubmitDocumentRequest
    • CreateDocumentResponse
    • BatchDocumentRequest
    • ImportExcelResponse
    • GenerateRequest
    • CptAddonDto
    • CptPackageDto
    • SignRequest
    • SignResponse
  1. Locations

Resolve Thai address codes (sub-district / district / province + post code)

GET
/v1/locations/search
Locations
Fuzzy search across sub-districts, districts and provinces (Thai or English).
Use the returned subDistrictCode / districtCode / provinceCode / postCode to fill the
buyer address when creating a document — these codes are required by the RD address schema.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Query Params

Responses

🟢200
application/json
Matching locations
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/v1/locations/search?q=undefined&limit=undefined' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
    "data": {
        "items": [
            {
                "districtCode": "string",
                "districtName": "string",
                "districtNameEn": "string",
                "postCode": "string",
                "provinceCode": "string",
                "provinceName": "string",
                "provinceNameEn": "string",
                "subDistrictCode": "string",
                "subDistrictName": "string",
                "subDistrictNameEn": "string"
            }
        ]
    },
    "error": null,
    "success": true
}
Modified at 2026-06-18 11:27:06
Previous
Advanced document search with date range
Next
test
Built with