Move benefit to draft
Changed on<Badge color="gray">Documentation in progress</Badge>
This documentation is in progress. The parameters, fields, request and response bodies, and other data may be subject to change. If you need more information or you want to share feedback, contact Voucherify support or your Technical Account Manager.
</Info>Moves a benefit from ACTIVE back to DRAFT status. No request body. Only the ACTIVE -> DRAFT transition is allowed; drafting from any other state returns 400 invalid_state_transition. A benefit assigned to an active earning rule cannot be moved to draft (423 resource_locked, key connected_active_earning_rule).
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v2/loyalties/benefits/{benefitId}/draft
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or HTTP bearer
Response
The drafted benefit
Changes
- breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
deleted the
pathrequest parameterbenefitId - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added to the response body
allOflist for the response status - info
removed the non-success response with the status
- breaking
- breaking
added the new path request parameter
benefitId - info
removed from the response body
allOflist for the response status - info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking