Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

The “Delete Coupon” API allows you to permanently remove a coupon from your system using its unique identifier. Use this endpoint to discontinue promotional offers or clean up unused coupons. Note that this action cannot be undone.
DELETE https://services.leadconnectorhq.com/payments/coupon

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Body

altId
string
default:"BQdAwxa0ky1iK2sstLGJ"
required
Account Id
altType
string
default:"account"
required
Alt Type Posibles valores: ‘account’
id
string
default:"6241712be68f7a98102ba272"
required
Coupon Id

Respuestas

success
boolean
default:"True"
required
Indicates whether the delete was successful
traceId
string
default:"c667b18d-8f5e-44cf-a914"
required
Unique identifier for tracing this API request
{
  "success": true,
  "traceId": "c667b18d-8f5e-44cf-a914"
}
{}

Ejemplo

curl -X DELETE 'https://services.leadconnectorhq.com/payments/coupon' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "altId": "BQdAwxa0ky1iK2sstLGJ",
  "altType": "account",
  "id": "6241712be68f7a98102ba272"
}'