Mayar icon

Mayar

Aksi API Mayar: balance, invoice, coupon, customer

Actions10

Coupon → Get

AI-generated

Summary

Fetch a coupon by its ID from the Mayar API.

Inputs

  • couponId (required) — The ID of the coupon to retrieve. Must be a non-empty string. Shown only when resource is 'coupon' and operation is 'get'.
  • options — Additional configuration for request handling and debugging. Default empty object. When provided, controls retry behavior and debug metadata.

Output shape

object

Returns the coupon data as a single JSON output item [{ json: response }]. When debug is enabled, the response includes a _meta field { method: 'GET', path: '/coupon/{couponId}' }.

Examples

Example 1: Basic coupon retrieval

Set couponId to the desired coupon identifier. Leave options at defaults.

Links

Discussion