Commerce

Activate or deactivate a discount — estimate

Price the request without executing it. Same body as POST /v1/messaging/commerce/discounts/{discountId}/state.

post/v1/messaging/commerce/discounts/{discountId}/state/estimate

Request

  • Base URL: https://apihub.co.il
  • URL: https://apihub.co.il/v1/messaging/commerce/discounts/{discountId}/state/estimate
  • Auth: HTTP bearer

Path parameters

discountIdstring required

Platform-native id.

Request body

activeboolean required
accountIdstring required

Response

Estimate

operationstring
estimated_creditsnumber
credits_to_reservenumber
estimated_usageobject
notestring nullable
sufficientboolean

Changes

No recorded changes to this operation across all 2 revisions of this API.