Create Location
Headers
- enumAcceptconst:application/jsonrequired
Response format. Must be
application/json.values- application/json
- enumContent
- Type const:application/jsonrequiredRequest payload format. Must be
application/jsonwhen a body is sent.values- application/json
Body·LocationCreate
required
application/json
- Type: string · Account Idaccount
_id required - Type: string · Namenamerequired
- Type: object · Address nullableaddress
- Type: string | null · Country Codecountry
_code - Type: string | null · Currencycurrency
- Type: string | null · Emailemail
- Type: object | null · Metadatametadata
- Type: string | null · Phonephone
- Type: string | null · Processor Config Idprocessor
_config _id - Type: string · Statusstatus
- Type: number | null · Surcharge Ratesurcharge
_rate Surcharge percentage (e.g., 3.5 for 3.5%). Setting to null disables automatic surcharge logic. Setting to 0 means surcharges will NEVER be applied unless explicitly overridden.
- Type: string | null · Terminal Idterminal
_id
Responses
- application/json
- application/json
Request Example for post/v1/locations
curl https://api.uat.koard.com/v1/locations \
--request POST \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-koard-apikey: YOUR_SECRET_TOKEN' \
--data '{
"account_id": "",
"address": {
"city": "",
"state": "",
"street_line1": "",
"street_line2": "",
"zip": ""
},
"country_code": "840",
"currency": "USD",
"email": null,
"metadata": null,
"name": "",
"phone": null,
"processor_config_id": null,
"status": "active",
"surcharge_rate": null,
"terminal_id": null
}'
{
"account_id": "string",
"address": {
"city": "string",
"state": "string",
"street_line1": "string",
"street_line2": "",
"zip": "string"
},
"country_code": null,
"created_at": null,
"currency": null,
"deleted_at": null,
"email": null,
"id": "string",
"metadata": null,
"name": "string",
"phone": null,
"processor_config_id": null,
"status": "active",
"surcharge_rate": null,
"terminal_id": null,
"updated_at": null
}
