Skip to main content
PUT
Apply discount code to subscription

Headers

X-API-Key
string
required

API Key for authentication

Query Parameters

contractId
integer<int64>
required

Subscription contract ID to apply discount to. Provide the numeric ID without the gid:// prefix

Required range: x >= 1
api_key
string

API Key (Deprecated - Use X-API-Key header instead)

discountCode
string
required

Valid Shopify discount code to apply. Case-sensitive. Must be an active discount code in your Shopify store.

Required string length: 1 - 255
Pattern: ^[A-Za-z0-9_-]+$

Response

Discount code successfully applied

billingAttempts
object
billingPolicy
object
createdAt
object
customAttributes
object[]
customer
object
customerPaymentMethod
object
deliveryMethod
object
deliveryPolicy
object
deliveryPrice
object
discounts
object
get__typename
string
id
string
lastPaymentStatus
enum<string>
Available options:
SUCCEEDED,
FAILED,
$UNKNOWN
lines
object
nextBillingDate
object
note
string
originOrder
object
status
enum<string>
Available options:
ACTIVE,
PAUSED,
CANCELLED,
EXPIRED,
FAILED,
$UNKNOWN
updatedAt
object