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·
required
application/json
- Type: string · Account Idaccount
_id required - Type: string · Namenamerequired
- Type: object · 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: string | null · Surcharge Basissurcharge
_basis What the surcharge is calculated on. Resolved most-specific-first: terminal, then location, then account. A null at the terminal or location level inherits from the level above; a null at the account level leaves it unset.
- Type: boolean | null · Surcharge Confirmation Requiredsurcharge
_confirmation _required Whether the cardholder must confirm the surcharge before the sale proceeds. When true, sale/preauth returns a surcharge-pending state that must be confirmed before the transaction completes. Resolved most-specific-first: terminal, then location, then account. A null at the terminal or location level inherits from the level above; a null at the account level defaults to no confirmation.
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,
"surcharge_basis": null,
"surcharge_confirmation_required": null,
"tax_rate": null,
"tax_basis": 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,
"surcharge_basis": null,
"surcharge_confirmation_required": null,
"tax_rate": null,
"tax_basis": null,
"terminal_id": null,
"updated_at": null
}
