POST
/marketGet Market
Get Market
Implementation Notes
This endpoint returns a list of markets available in the LARBAR API database for rate retrieval.
Parameters:
searchKey: Keyword to search market, e.g., city or district name.country: Name of the country where the market is located.state: Name of the state where the market is located.city: Name of the city where the market is located.destId: Destination ID of the market.destType: Destination type for the specific destination.
Mandatory Fields:
searchKeycountry
Optional Fields:
statecitydestIddestType
POST
/marketParameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | object | Required | none |
» searchKey | body | string | Required | none |
» country | body | string | Required | none |
» state | body | string | Optional | none |
» city | body | string | Optional | none |
» destId | body | string | Optional | none |
» destType | body | string | Optional | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | |
| 204 | No Content | No Content | None |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Authentication Failed or Account validity Expired | None |
| 429 | Too Many Requests | Too Many Requests | None |
| 500 | Internal Server Error | Internal Server Error | None |
Example Request
# You can also use wget
curl -X POST /market \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Body parameter
{
"searchKey": "Staples",
"country": "United States",
"state": "",
"city": "",
"destId": "",
"destType": "CITY"
}
Example responses
200 Response
{
"searchKey": "Staples, Minnesota, United States",
"websiteCode": 2,
"country": "United States",
"state": "",
"city": "",
"destId": "12345",
"destType": "CITY"
}
Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.