| Option | What it means |
|---|---|
| Card | The courier can record a card payment. |
| Cash | The courier can record a cash payment. |
| Close without payment | The courier can complete the visit without payment. |
| Field | Description |
|---|---|
| Payment status | No need means no payment. Need means the visit needs payment. |
| Payment amount | The amount to pay. Enter a number of 1 or more. This field appears after you select Need. |
| Payment type | The payment method for this visit. This field appears after you select Need. |
| Field | Type | Values | Description |
|---|---|---|---|
payment_status | integer | 0, 1, 2 | 0 - no payment needed (default). 1 - payment needed. 2 - paid. In requests, use only 0 or 1. RouteStripe sets 2 when the payment is completed. |
payment_amount | number | from 1.00, or null | The amount to pay, with 2 decimal places. null, empty, or 0 means the amount is not set. |
payment_type | string | card, cash, any, null | card - by card. cash - by cash. any - the courier chooses on site, from the methods turned on in the company settings. null or empty means the type is not set. |
{
"payment_status": 1,
"payment_amount": 150.5,
"payment_type": "card"
}visit.payment.changed event. The visit has these payment fields: payment_status, payment_amount, payment_type, payment_receipt_url, payment_paid_at.