cURL
curl --request POST \ --url https://api.decodahealth.com/admin/locations/update-or-create \ --header 'API-KEY: <api-key>' \ --header 'Content-Type: multipart/form-data' \ --header 'TENANT: <tenant>' \ --form 'name=<string>' \ --form isVirtual=true \ --form 'timezone=<string>' \ --form 'photo=<string>' \ --form 'id=<string>' \ --form 'description=<string>' \ --form 'addressLineOne=<string>' \ --form 'addressLineTwo=<string>' \ --form 'city=<string>' \ --form 'state=<string>' \ --form 'zipCode=<string>' \ --form 'country=<string>' \ --form 'phoneNumber=<string>' \ --form 'reviewLink=<string>' \ --form latitude=123 \ --form longitude=123 \ --form 'spakinectLocationId=<string>' \ --form photo.0='@example-file'
{ "id": "<string>", "isVirtual": true, "name": "<string>", "timezone": "<string>", "addressLineOne": "<string>", "addressLineTwo": "<string>", "city": "<string>", "state": "<string>", "zipCode": "<string>", "country": "<string>", "createdDate": "2023-11-07T05:31:56Z", "spakinectLocationId": "<string>", "description": "<string>", "phoneNumber": "<string>", "photoUrl": "<string>", "reviewLink": "<string>", "updatedDate": "2023-11-07T05:31:56Z", "latitude": 123, "longitude": 123, "taxes": [] }
The tenant you are making this request on behalf of
Your api key
Successful Response
Show child attributes
Unique identifier for the tax
Name of the tax (e.g., 'Sales Tax', 'VAT')
Tax percentage (e.g., 8.25 for 8.25%)
Location this tax applies to