Skip to main content
POST
/
admin
/
services
/
update-or-create
Update Or Create Service
curl --request POST \
  --url https://api.decodahealth.com/admin/services/update-or-create \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "id": "<string>",
  "name": "<string>",
  "duration": 123,
  "description": "<string>",
  "price": 123,
  "displayPrice": 123,
  "costOfService": 0,
  "estimated": false,
  "bookingFee": 123,
  "bookingFeeText": "<string>",
  "reminderDaysBefore": 123,
  "cancellationCost": 123,
  "hoursBeforeCancellingCosts": 123,
  "bookingFeePercentage": 123,
  "cancellationFeePctWithin24h": 123,
  "cancellationFeePctWithin48h": 123,
  "refundBookingFeeBefore48h": true,
  "hoursBeforeBookingFeeRefundable": 123,
  "followUpDaysAfter": 123,
  "followUpSmsTemplate": "<string>",
  "reminderSmsTemplate": "<string>",
  "locationIds": [
    "<string>"
  ],
  "providerIds": [
    "<string>"
  ],
  "createdDate": "2023-11-07T05:31:56Z",
  "updatedDate": "2023-11-07T05:31:56Z",
  "formIds": [
    "<string>"
  ],
  "confirmationSmsTemplate": "<string>",
  "cancellationSmsTemplate": "<string>",
  "noShowSmsTemplate": "<string>",
  "overrideNoticeSmsTemplate": "<string>",
  "selfSchedulingBufferTime": 123,
  "visibility": "ALL",
  "minutesBeforeRebookingAllowed": 123,
  "color": "<string>",
  "allowIndividualProviderBooking": true,
  "displayOrder": 123,
  "reservedTimeMinutes": 123,
  "category": "<string>",
  "isDoubleBookable": true,
  "isPopular": false,
  "creditCardRequired": false,
  "collectCreditCard": false,
  "autoGfeTreatments": [
    "<string>"
  ],
  "brandName": "<string>",
  "unit": "AMPOULES",
  "internalNotes": "<string>",
  "sortOrder": 123,
  "taxable": false,
  "allowCustomPricing": false
}
'
{
  "id": "<string>",
  "name": "<string>",
  "duration": 123,
  "description": "<string>",
  "price": 123,
  "displayPrice": 123,
  "costOfService": 0,
  "estimated": false,
  "bookingFee": 123,
  "bookingFeeText": "<string>",
  "reminderDaysBefore": 123,
  "cancellationCost": 123,
  "hoursBeforeCancellingCosts": 123,
  "bookingFeePercentage": 123,
  "cancellationFeePctWithin24h": 123,
  "cancellationFeePctWithin48h": 123,
  "refundBookingFeeBefore48h": true,
  "hoursBeforeBookingFeeRefundable": 123,
  "followUpDaysAfter": 123,
  "followUpSmsTemplate": "<string>",
  "reminderSmsTemplate": "<string>",
  "locationIds": [
    "<string>"
  ],
  "providerIds": [
    "<string>"
  ],
  "createdDate": "2023-11-07T05:31:56Z",
  "updatedDate": "2023-11-07T05:31:56Z",
  "formIds": [
    "<string>"
  ],
  "confirmationSmsTemplate": "<string>",
  "cancellationSmsTemplate": "<string>",
  "noShowSmsTemplate": "<string>",
  "overrideNoticeSmsTemplate": "<string>",
  "selfSchedulingBufferTime": 123,
  "visibility": "ALL",
  "minutesBeforeRebookingAllowed": 123,
  "color": "<string>",
  "allowIndividualProviderBooking": true,
  "displayOrder": 123,
  "reservedTimeMinutes": 123,
  "category": "<string>",
  "isDoubleBookable": true,
  "isPopular": false,
  "creditCardRequired": false,
  "collectCreditCard": false,
  "autoGfeTreatments": [
    "<string>"
  ],
  "brandName": "<string>",
  "unit": "AMPOULES",
  "internalNotes": "<string>",
  "sortOrder": 123,
  "taxable": false,
  "allowCustomPricing": false
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json
id
string
required
name
string | null
duration
integer | null
description
string | null
price
integer | null
displayPrice
integer | null
costOfService
integer
default:0
estimated
boolean | null
default:false
bookingFee
integer | null
bookingFeeText
string | null
reminderDaysBefore
integer | null
cancellationCost
integer | null
hoursBeforeCancellingCosts
integer | null
bookingFeePercentage
integer | null
cancellationFeePctWithin24h
integer | null
cancellationFeePctWithin48h
integer | null
refundBookingFeeBefore48h
boolean | null
hoursBeforeBookingFeeRefundable
integer | null
followUpDaysAfter
integer | null
followUpSmsTemplate
string | null
reminderSmsTemplate
string | null
locationIds
string[] | null
providerIds
string[] | null
createdDate
string<date-time> | null
updatedDate
string<date-time> | null
formIds
string[] | null
confirmationSmsTemplate
string | null
cancellationSmsTemplate
string | null
noShowSmsTemplate
string | null
overrideNoticeSmsTemplate
string | null
selfSchedulingBufferTime
integer | null
visibility
enum<string> | null
default:ALL
Available options:
ALL,
NEW,
EXISTING,
NO
minutesBeforeRebookingAllowed
integer | null
color
string | null
allowIndividualProviderBooking
boolean | null
displayOrder
integer | null
reservedTimeMinutes
integer | null
category
string | null
isDoubleBookable
boolean | null
default:true
creditCardRequired
boolean | null
default:false
collectCreditCard
boolean | null
default:false
autoGfeTreatments
string[] | null
brandName
string | null
unit
enum<string> | null
Available options:
AMPOULES,
APPLICATORS,
BOTTLES,
BOXES,
CAPSULES,
CUPS,
DOSES,
G_PER_ML,
GRAMS,
IU,
IU_PER_ML,
OUNCES,
FLUID_OUNCES,
KG,
KITS,
LITERS,
MCG,
MG,
MG_PER_ML,
ML,
MMOL,
MICROGRAM_PER_ML,
PACKS,
PAIRS,
PATCHES,
PERCENTAGE,
PIECES,
POUCHES,
ROLLS,
SACHETS,
SHEETS,
SPRAYS,
STRIPS,
SYRINGES,
TABLETS,
TABLETS_PER_DAY,
TESTS,
TUBES,
UNITS,
VIALS,
TREATMENTS,
SESSIONS,
PULSES,
JOULES,
CENTIMETERS,
THREAD_COUNT,
INJECTIONS,
WRINKLE_UNITS,
POUNDS,
FEET,
INCHES
internalNotes
string | null
sortOrder
integer | null
taxable
boolean | null
default:false
allowCustomPricing
boolean | null
default:false

Response

Successful Response

id
string
required
name
string | null
duration
integer | null
description
string | null
price
integer | null
displayPrice
integer | null
costOfService
integer
default:0
estimated
boolean | null
default:false
bookingFee
integer | null
bookingFeeText
string | null
reminderDaysBefore
integer | null
cancellationCost
integer | null
hoursBeforeCancellingCosts
integer | null
bookingFeePercentage
integer | null
cancellationFeePctWithin24h
integer | null
cancellationFeePctWithin48h
integer | null
refundBookingFeeBefore48h
boolean | null
hoursBeforeBookingFeeRefundable
integer | null
followUpDaysAfter
integer | null
followUpSmsTemplate
string | null
reminderSmsTemplate
string | null
locationIds
string[] | null
providerIds
string[] | null
createdDate
string<date-time> | null
updatedDate
string<date-time> | null
formIds
string[] | null
confirmationSmsTemplate
string | null
cancellationSmsTemplate
string | null
noShowSmsTemplate
string | null
overrideNoticeSmsTemplate
string | null
selfSchedulingBufferTime
integer | null
visibility
enum<string> | null
default:ALL
Available options:
ALL,
NEW,
EXISTING,
NO
minutesBeforeRebookingAllowed
integer | null
color
string | null
allowIndividualProviderBooking
boolean | null
displayOrder
integer | null
reservedTimeMinutes
integer | null
category
string | null
isDoubleBookable
boolean | null
default:true
creditCardRequired
boolean | null
default:false
collectCreditCard
boolean | null
default:false
autoGfeTreatments
string[] | null
brandName
string | null
unit
enum<string> | null
Available options:
AMPOULES,
APPLICATORS,
BOTTLES,
BOXES,
CAPSULES,
CUPS,
DOSES,
G_PER_ML,
GRAMS,
IU,
IU_PER_ML,
OUNCES,
FLUID_OUNCES,
KG,
KITS,
LITERS,
MCG,
MG,
MG_PER_ML,
ML,
MMOL,
MICROGRAM_PER_ML,
PACKS,
PAIRS,
PATCHES,
PERCENTAGE,
PIECES,
POUCHES,
ROLLS,
SACHETS,
SHEETS,
SPRAYS,
STRIPS,
SYRINGES,
TABLETS,
TABLETS_PER_DAY,
TESTS,
TUBES,
UNITS,
VIALS,
TREATMENTS,
SESSIONS,
PULSES,
JOULES,
CENTIMETERS,
THREAD_COUNT,
INJECTIONS,
WRINKLE_UNITS,
POUNDS,
FEET,
INCHES
internalNotes
string | null
sortOrder
integer | null
taxable
boolean | null
default:false
allowCustomPricing
boolean | null
default:false