Add a tip to an invoice

POST https://api.zenoti.com/v1/invoices/{invoice_id}/tips

Adds a tip to a specific service line item on an invoice, assigned to the therapist who performed the service.

Before you begin

Permission: Manage API Keys (under Administrator) — Required to access Zenoti APIs.

Endpoint

POST /v1/invoices/{invoice_id}/tips

Base URL: https://api.zenoti.com

Request

Headers

Header Required Description
Authorization Yes bearer {{access_token}}

Path parameters

Parameter Type Required Description
invoice_id string (GUID) Yes Invoice identifier

Request body

Field Type Required Description
therapist_id string (GUID) Yes Therapist receiving the tip
amount decimal Yes Tip amount
payment_mode integer No 0=Cash, 1=Card (default: 0)

Response

Success (200 OK)

{
  "tip_id": "00000000-0000-0000-0000-269561a87bfa",
  "error": null
}

Response fields

Field Type Description
tip_id string (GUID) Tip transaction identifier

Example

curl --request POST \
  --url 'https://api.zenoti.com/v1/invoices/a2b3c4d5-e6f7-8901-bcde-f23456789012/tips' \
  --header 'Authorization: bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "therapist_id": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
    "amount": 20.00,
    "payment_mode": 0
  }'
const response = await fetch('https://api.zenoti.com/v1/invoices/{invoice_id}/tips', {
  method: 'POST',
  headers: {
    'Authorization': 'bearer {{access_token}}',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ therapist_id: 'c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f', amount: 20, payment_mode: 0 })
});
const data = await response.json();
import requests

response = requests.post(
    'https://api.zenoti.com/v1/invoices/{invoice_id}/tips',
    headers={
        'Authorization': 'bearer {{access_token}}',
    },
    json={'therapist_id': 'c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f', 'amount': 20, 'payment_mode': 0}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var content = new StringContent(
    JsonSerializer.Serialize(new { therapistId = "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f", amount = 20, paymentMode = 0 }),
    Encoding.UTF8, "application/json");
var response = await client.PostAsync(
    "https://api.zenoti.com/v1/invoices/{invoice_id}/tips", content);
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/invoices/{invoice_id}/tips')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
request['Content-Type'] = 'application/json'
request.body = { therapist_id: 'c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f', amount: 20, payment_mode: 0 }.to_json
response = http.request(request)
data = JSON.parse(response.body)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.zenoti.com/v1/invoices/{invoice_id}/tips');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: bearer {{access_token}}',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['therapist_id' => 'c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f', 'amount' => 20, 'payment_mode' => 0]));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);

Error codes

Status Description
400 Bad request — invalid or missing required fields
401 Unauthorized — invalid or expired access token
429 Too many requests — rate limit exceeded (60/min)
418 Invoice not found