REST API for Latepoint icon

REST API for Latepoint

Consume REST API for LatePoint on Tools

Payments → Update

AI-generated

Summary

Updates an existing LatePoint payment by ID by sending a PUT request to the payment's endpoint (/payments/{id}) with either individual payment fields or a custom JSON/form body.

Inputs

  • ID (required) — ID of the payment to update. It is appended to the URL as /payments/{id}.
  • Additional Fields — Collection of payment fields to change, sent as the request body when Send Body is off. Options: Order ID, Customer ID, Amount, Payment Method (cash, credit_card, paypal, stripe, bank_transfer), Payment Status (pending, completed, failed, refunded), Transaction ID, Notes. Only the fields you add are sent.
  • Send Body — When on, the Additional Fields are ignored and a custom body is sent instead. Defaults to off.
  • Body Content Type — Shown when Send Body is on. Choose JSON or Form Data.
  • JSON Body — Shown for the JSON content type. A JSON object used as the request body. Invalid JSON throws an error.
  • Form Data — Shown for the Form Data content type. Name/value pairs that are combined into a key/value object. The request is still sent as JSON.
  • Description — Free-text prompt or context for AI use. The execute code never reads it, so it has no effect on the request.

Output shape

One item per input item. Its json is the response's data property if the API returns one. Otherwise it is the raw response, or one item per element if the response is an array.

The request is authenticated with a Bearer API key from the credential's base URL. If an item fails and Continue On Fail is enabled, it outputs {error: message}. Otherwise the node throws. If no fields or body are provided, the PUT is sent with no body.

Examples

Example 1: Mark a payment as completed and record the processor's transaction reference.

ID = 42; Additional Fields: Payment Status = completed, Transaction ID = 'ch_abc123'.

Example 2: Update a payment with a custom payload.

ID = 42; Send Body on; Body Content Type = JSON; JSON Body = {"status":"refunded","notes":"Customer cancelled"}.

Links

Discussion