Commerce

Add codes to a discount — estimate

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

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

Request

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

Path parameters

discountIdstring required

Platform-native id.

Request body

codesstring[] 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.