cURL
curl --request PATCH \ --url https://api.fungies.io/v0/discounts/{discountId}/archive \ --header 'Content-Type: application/json' \ --header 'x-fngs-public-key: <api-key>' \ --header 'x-fngs-secret-key: <api-key>' \ --data '{}'
{ "status": "<string>", "data": { "success": true } }
Archive an existing discount by its ID.
PATCH /v0/discounts/:discountId/archive Parameter
PATCH /v0/discounts/:discountId/archive Request body
The body is of type object.
object
PATCH /v0/discounts/:discountId/archive Positive response
"success"
Show child attributes