Update a service
curl --request PUT \
--url https://api.salesive.com/api/v1/services/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"price": 90,
"available": false
}
'import requests
url = "https://api.salesive.com/api/v1/services/{id}"
payload = {
"price": 90,
"available": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({price: 90, available: false})
};
fetch('https://api.salesive.com/api/v1/services/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/services/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'price' => 90,
'available' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/services/{id}"
payload := strings.NewReader("{\n \"price\": 90,\n \"available\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.salesive.com/api/v1/services/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"price\": 90,\n \"available\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/services/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"price\": 90,\n \"available\": false\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Update a service",
"data": {
"_id": "66a3b1c4e1b3a40012ef2001",
"name": "Deep Tissue Massage",
"description": "60-minute full-body massage",
"price": 90,
"promoPrice": null,
"images": [
"https://cdn.salesive.com/sv/massage.jpg"
],
"available": false,
"listed": true,
"addons": [],
"shop": "66a1eee0e1b3a40012ab0001",
"updatedAt": "2026-06-28T09:35:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Unauthorized",
"data": {}
}{
"status": 403,
"success": false,
"message": "Forbidden: missing required scope",
"data": {}
}Services
Update a service
Updates a service in the store.
PUT
/
services
/
{id}
Update a service
curl --request PUT \
--url https://api.salesive.com/api/v1/services/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"price": 90,
"available": false
}
'import requests
url = "https://api.salesive.com/api/v1/services/{id}"
payload = {
"price": 90,
"available": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({price: 90, available: false})
};
fetch('https://api.salesive.com/api/v1/services/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/services/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'price' => 90,
'available' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/services/{id}"
payload := strings.NewReader("{\n \"price\": 90,\n \"available\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.salesive.com/api/v1/services/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"price\": 90,\n \"available\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/services/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"price\": 90,\n \"available\": false\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Update a service",
"data": {
"_id": "66a3b1c4e1b3a40012ef2001",
"name": "Deep Tissue Massage",
"description": "60-minute full-body massage",
"price": 90,
"promoPrice": null,
"images": [
"https://cdn.salesive.com/sv/massage.jpg"
],
"available": false,
"listed": true,
"addons": [],
"shop": "66a1eee0e1b3a40012ab0001",
"updatedAt": "2026-06-28T09:35:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Unauthorized",
"data": {}
}{
"status": 403,
"success": false,
"message": "Forbidden: missing required scope",
"data": {}
}Updates a service in the store. Supplied fields overwrite the existing values. Requires the
WRITE_INVENTORY scope.Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Path Parameters
ObjectId of the service to update.
Body
application/json
Service name (max 100 chars).
Price (>= 0).
Service description.
Promotional price (>= 0); nullable.
Array of image URLs.
Video URL; nullable.
Whether the service is available to book.
Whether the service is listed on the storefront.
Add-ons array (replaces existing). Each: name (required), price (required), maxQuantity, image, available, description.
Show child attributes
Show child attributes
Response
Update a service — success.
Example:
200
Example:
true
Example:
"Update a service"
A business service item.
Show child attributes
Show child attributes
Example:
{
"_id": "66a3b1c4e1b3a40012ef2001",
"name": "Deep Tissue Massage",
"description": "60-minute full-body massage",
"price": 90,
"promoPrice": null,
"images": ["https://cdn.salesive.com/sv/massage.jpg"],
"available": false,
"listed": true,
"addons": [],
"shop": "66a1eee0e1b3a40012ab0001",
"updatedAt": "2026-06-28T09:35:00.000Z"
}
Was this page helpful?
⌘I

