Add discount

This endpoint allows you to add a discount code to the specified subscription contract.

post/2026-04/subscription/{subscriptionId}/discount

Request

  • Base URL
    https://api.loopsubscriptions.com/admin
  • URL
    https://api.loopsubscriptions.com/admin/2026-04/subscription/{subscriptionId}/discount
  • Auth
    API key in header X-Loop-Token

Path parameters

subscriptionIdinteger required

ID of the subscription

Request body

discountCodestring

Discount code set in shopify

Response

Discount applied successfully

successboolean
messagestring
codestring
pageInfounknown

Example response

{
  "success": true,
  "message": "Discount applied successfully",
  "data": {
    "shopifyId": "afbdd78e-316b-450e-9249-50438219dea5",
    "code": "TEST101"
  },
  "code": "SUCCESS"
}

Changes

No recorded changes to this operation across all 1 revision of this API.