REST API for Latepoint icon

REST API for Latepoint

Consume REST API for LatePoint on Tools

Coupons → Delete

AI-generated

Summary

Deletes a LatePoint coupon by its code by sending a DELETE request to /coupons/{code} on the configured REST API base URL.

Inputs

  • Coupon Code (required) — Alphanumeric code of the coupon to delete. It is inserted directly into the URL path (/coupons/{code}), so use the code, not a numeric ID.
  • Description — Free-text note or prompt describing the call's intent. It is not read by the execute logic and has no effect on the request.

Output shape

One output item per input item. Its JSON is the API response's data field if present. Otherwise it is the raw response body, or one item per element if the body is an array.

The exact response content depends on the LatePoint REST API, which the source does not define. The code is not URL-encoded. Authentication uses a Bearer API key from the restApiLatepointApi credentials. If Continue On Fail is enabled, a failed item returns { error: message } instead of stopping the workflow.

Examples

Example 1: Remove an expired promo code

Resource: Coupons, Operation: Delete, Coupon Code: SUMMER20

Example 2: Delete a coupon code supplied by an earlier node

Resource: Coupons, Operation: Delete, Coupon Code set to an expression such as {{ $json.code }}

Links

Discussion