Update Location

​

Path Parameters

Headers

  • Response format. Must be application/json.

  • Request payload format. Must be application/json when a body is sent.

Body·

required
application/json
  • Partial address update. Send only fields you want to change. Omitted fields keep their current values. Supplied state, ZIP and country values must be valid. A null country becomes USA.

    Properties: 6
  • Properties: 1
  • Amount used to calculate percentage-based surcharges. total uses subtotal, tax and tip; subtotal uses subtotal only; subtotal_plus_tax includes tax; subtotal_plus_tip includes tip. The basis is resolved from location, then terminal, then account, skipping null values. The default is total when no level configures a basis.

    values
    totalsubtotalsubtotal_plus_taxsubtotal_plus_tip

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for put/v1/locations/{location_id}
curl 'https://api.uat.koard.com/v1/locations/{location_id}' \
  --request PUT \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'x-koard-apikey: YOUR_SECRET_TOKEN' \
  --data '{
  "name": "",
  "address": {
    "street_line1": "",
    "street_line2": "",
    "city": "",
    "country": "",
    "state": "",
    "zip": ""
  },
  "phone": "",
  "email": "",
  "status": "",
  "processor_config_id": "",
  "country_code": "",
  "currency": "",
  "terminal_id": "",
  "metadata": {
    "additionalProperty": "anything"
  },
  "surcharge_rate": 1,
  "surcharge_confirmation_required": true,
  "surcharge_basis": "total",
  "tax_rate": 1,
  "tax_basis": "total"
}'
{
  "account_id": "string",
  "address": {
    "street_line1": "",
    "street_line2": "",
    "city": "",
    "country": "USA",
    "state": "",
    "zip": ""
  },
  "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": "total",
  "surcharge_confirmation_required": null,
  "tax_rate": null,
  "tax_basis": "total",
  "terminal_id": null,
  "updated_at": null
}