- Offer_Code_Update
Soft delete functionality for offer codes. This endpoint implements soft deletion using PATCH. Behavior:
- Updates the
is_deletedfield to mark offer codes as deleted - Returns a custom success message when
is_deletedchanges from False to True - Prevents restoration by rejecting attempts to change
is_deletedfrom True to False - Returns HTTP 400 Bad Request for invalid deletion state transitions
External Partner user ID of an existing user set up at Momnt who creating the Offer Code. This user must be an active merchant admin user for the Merchant used in the contractor_id path.
The name of the Offer Code. Alpha string between 2 and 80 characters. Spaces are allowed.
Boolean field indication whether the merchant wants this Offer Code turned on or not after creation.
- Mock serverhttps://momnt-api-docs.redocly.app/_mock/docs/openapi/sponsor_merchant_v1/api/v1/sponsor/merchants/{merchant_uuid}/offer-code/{id}/
curl -i -X PATCH \
-u '<username>:<password>' \
'https://momnt-api-docs.redocly.app/_mock/docs/openapi/sponsor_merchant_v1/api/v1/sponsor/merchants/{merchant_uuid}/offer-code/{id}/' \
-H 'Content-Type: application/json' \
-d '{
"request_user_id": "25639547-c9b9-4774-aa30-dd374668b0e0",
"name": "string",
"is_active": true,
"rate_sheet_merchant_product_prices": [
null,
null
]
}'External Partner user ID of an existing user set up at Momnt who creating the Offer Code. This user must be an active merchant admin user for the Merchant used in the contractor_id path.
The name of the Offer Code. Alpha string between 2 and 80 characters. Spaces are allowed.
Boolean field indication whether the merchant wants this Offer Code turned on or not after creation.
The value of the rate_sheet_merchant_product_price_id (found in the Merchant Rate Sheet Query) of the products the Merchant wants to add to this rate sheet.
{ "request_user_id": "25639547-c9b9-4774-aa30-dd374668b0e0", "name": "string", "is_active": true, "rate_sheet_merchant_product_prices": [ null ], "message": "string" }