Discounts

Archive a discount

Archive (soft delete) a discount by its ID. Archived discounts can no longer be used at checkout but remain in the system for reporting purposes. This action is reversible.

Authorization

Public key Secret key
x-fngs-public-key<token>

In: header

x-fngs-secret-key<token>

In: header

Path Parameters

discountId*string

PATCH /v0/discounts/:discountId/archive Parameter

Formatuuid

Request Body

application/json

PATCH /v0/discounts/:discountId/archive Request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

PATCH
/v0/discounts/{discountId}/archive
curl -X PATCH "https://example.com/v0/discounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/archive" \  -H "Content-Type: application/json" \  -d '{}'
{  "status": "success",  "data": {    "success": true  }}