---
title: "Collect tip amount by using a guest's credit/debit card"
method: POST
path: "/v1/invoices/{invoice_id}/online_payments"
---

# Collect tip amount by using a guest's credit/debit card

`POST /v1/invoices/{invoice_id}/online_payments`

This API helps you to charge a tip amount for the specified invoice from a guest's saved credit/debit card.

You can add the tip while taking payment for the invoice amount. You can also charge only the tip amount for an invoice, after the invoice payment has been completed.

For example, if the amount of an invoice is $100 and the tip amount is $15, you can charge a total of $115 from the guest's card at one go. Alternatively, you can first complete the invoice payment of $100 and then add the $15 tip amount.

After you have taken payment for the invoice amount and tip amount, you can close the invoice.

You must provide appropriate data for the `invoice_id` parameter.

## Path parameters

- `invoice_id` string, required

## Response `200`

200

- object
  - `invoice_transaction_id` string
  - `token_id` string
  - `success` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.net/zenoti/apis/zenoti-authentication.md) · [All operations](https://skmtc.net/zenoti/apis/zenoti-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenoti/zenoti-authentication/revisions/e628f892391a/schema)
