n8n-nodes-pilot-status 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +1 -0
- package/dist/nodes/PilotStatus/PilotStatus.node.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `n8n-nodes-pilot-status`.
|
|
4
4
|
|
|
5
|
+
## 2.6.0 - 2026-10-11
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Number → Pay Extra Charge** — `POST /v1/numbers/{id}/pay`, no body; takes only the
|
|
10
|
+
**Number Instance ID**. "Pay now" for the extra-number charge of one number. A number
|
|
11
|
+
past the workspace's paid capacity is charged when it first connects; if that charge is
|
|
12
|
+
refused, sending from the number is blocked (`409 NUMBER_BLOCKED`,
|
|
13
|
+
`reason: "extra_charge_unpaid"`) until it is paid. With a card on file this **charges**
|
|
14
|
+
it. Requires a **tenant-scoped API key** with the `billing:manage` permission.
|
|
15
|
+
- Answers `{ ok: true, status: "paid" }`, or `status: "not_required"` when nothing is
|
|
16
|
+
owed for the number — so the operation is safe to repeat.
|
|
17
|
+
- Fails the item with `402 PAYMENT_FAILED` (may carry `declineCode`, `proratedTotal`,
|
|
18
|
+
`currency`), `402 INSUFFICIENT_FUNDS` (no credits and no usable card),
|
|
19
|
+
`409 PAYMENT_IN_PROGRESS` (another payment of the workspace is running — retry in a
|
|
20
|
+
few seconds), `502 PAYMENT_PROVIDER_ERROR` (the charge could not be concluded; Pilot
|
|
21
|
+
Status retries it on its own), `404 NUMBER_NOT_FOUND`, or
|
|
22
|
+
`403 NUMBER_SCOPE_NOT_ALLOWED` / `PERMISSION_DENIED`.
|
|
23
|
+
- **Number → Get** now returns `extraChargeUnpaidSince` and `extraChargeDisconnectAt` (ISO
|
|
24
|
+
timestamps or `null`) at the top level of the number. The first is non-null while sending
|
|
25
|
+
is blocked for the unpaid charge; the second is when the number is disconnected if it
|
|
26
|
+
stays unpaid (7 days after the block) and is always `null` on a Meta Cloud API number.
|
|
27
|
+
No node change: the node passes the API response through.
|
|
28
|
+
|
|
5
29
|
## 2.5.0 - 2026-10-08
|
|
6
30
|
|
|
7
31
|
### Added
|
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ The **Pilot Status** node provides several resources and operations to manage yo
|
|
|
111
111
|
- **Restore:** Undo a soft-delete inside the window. Gives back the **row**, not the connection: run **Connect** afterwards (`requiresReconnect: true`).
|
|
112
112
|
- **Purge:** Irreversible hard delete. Cascades chat, messages, templates and keys, and tears the number down at Meta.
|
|
113
113
|
- **Logout:** Unpair the device without deleting anything — id, keys, webhooks and history are kept.
|
|
114
|
+
- **Pay Extra Charge:** Pay now the extra-number charge of one number (`POST /numbers/{id}/pay`, no body). A number past the paid capacity is charged when it first connects; if that charge is refused, **sending** from it is blocked (`409 NUMBER_BLOCKED`, `reason: "extra_charge_unpaid"`) until it is paid — **Get** shows `extraChargeUnpaidSince` and, for a non-Meta number, `extraChargeDisconnectAt` (when it is disconnected if it stays unpaid). With a card on file this **charges** it, and it needs a **tenant-scoped API key** with the `billing:manage` permission. Answers `status: "paid"`, or `"not_required"` when nothing is owed (safe to repeat). Fails with `402 PAYMENT_FAILED` / `INSUFFICIENT_FUNDS`, `409 PAYMENT_IN_PROGRESS`, or `502 PAYMENT_PROVIDER_ERROR` (retried by Pilot Status on its own).
|
|
114
115
|
- **Check on WhatsApp:** Whether a phone exists on WhatsApp. **Non-official (Evolution) numbers only** — a Meta number answers `400 NOT_SUPPORTED_FOR_META`. For Brazilian mobiles the 9th-digit variant is probed too, and the returned `number` is the **registered** form to send to, which may differ from what you passed.
|
|
115
116
|
- **Update Settings:** Per-number settings. This is the only settings endpoint: there is no `POST /numbers/{id}/settings`, and Evolution's `syncFullHistory` does not exist here. Partial — only the fields you add to the collection change.
|
|
116
117
|
- **History Import Enabled** / **Webhook Historical Messages** apply to every provider. The second is off by default: each reconnect replays up to 30 days of conversation, and your integration cannot tell it apart from new traffic (on the FREE plan it also consumes inbound quota). To *read* history, use Message → Get History.
|
|
@@ -1140,6 +1140,13 @@ class PilotStatus {
|
|
|
1140
1140
|
action: 'Logout a number',
|
|
1141
1141
|
routing: { request: { method: 'POST', url: '=/numbers/{{$parameter.numberId}}/logout' } },
|
|
1142
1142
|
},
|
|
1143
|
+
{
|
|
1144
|
+
name: 'Pay Extra Charge',
|
|
1145
|
+
value: 'pay',
|
|
1146
|
+
description: 'Pay now the extra-number charge of one number. A number past the paid capacity is charged when it first connects; if that charge is refused, SENDING from the number is blocked (409 NUMBER_BLOCKED, reason extra_charge_unpaid) until it is paid — Get shows extraChargeUnpaidSince and extraChargeDisconnectAt. With a card on file this CHARGES it. Requires a tenant-scoped API key with the billing:manage permission. Answers status paid, or not_required when nothing is owed (safe to repeat). Fails with 402 PAYMENT_FAILED or INSUFFICIENT_FUNDS, 409 PAYMENT_IN_PROGRESS, or 502 PAYMENT_PROVIDER_ERROR (retried by Pilot Status on its own).',
|
|
1147
|
+
action: 'Pay the extra charge of a number',
|
|
1148
|
+
routing: { request: { method: 'POST', url: '=/numbers/{{$parameter.numberId}}/pay' } },
|
|
1149
|
+
},
|
|
1143
1150
|
{
|
|
1144
1151
|
name: 'Check on WhatsApp',
|
|
1145
1152
|
value: 'check',
|
|
@@ -1212,6 +1219,7 @@ class PilotStatus {
|
|
|
1212
1219
|
'restore',
|
|
1213
1220
|
'purge',
|
|
1214
1221
|
'logout',
|
|
1222
|
+
'pay',
|
|
1215
1223
|
'get',
|
|
1216
1224
|
'updateSettings',
|
|
1217
1225
|
],
|