In record_only mode, the merchant must support the merchant bridge v4 operation.prepare command before Longplay can freeze a quote and produce merchantTerms. Submit the matching merchantConfirmation when confirming the quote.
What to change: plan switches to productVersionId, seats sets the seat total of one license, quantity sets the prepaid pack count of one Feature, cancel ends the membership at renewal or immediately, uncancel undoes a pending cancellation or scheduled change, and billing_cycle moves the billing cycle anchor.
productVersionIduuidOptional
Product Version ID.
featureQuantitiesobjectOptional
Prepaid Feature quantities by internal Feature ID.
licenseKeystringOptional
Key of the seat license in this membership to resize (seats.key from the purchase quote); quantity is the new seat total, including the included seats.
now restarts the billing cycle immediately (with timing: "immediate"); a future Unix time in milliseconds starts the new cycle at that moment (with timing: "renewal").
What to change: plan switches to productVersionId, seats sets the seat total of one license, quantity sets the prepaid pack count of one Feature, cancel ends the membership at renewal or immediately, uncancel undoes a pending cancellation or scheduled change, and billing_cycle moves the billing cycle anchor.
productVersionIduuidOptional
Product Version ID.
featureQuantitiesobjectOptional
Prepaid Feature quantities by internal Feature ID.
licenseKeystringOptional
Key of the seat license in this membership to resize (seats.key from the purchase quote); quantity is the new seat total, including the included seats.
minLength: 1 · maxLength: 200
quantityinteger | integerOptional
Quantity (integer).
internal_feature_iduuidOptional
Feature ID.
billingCycleAnchor"now" | integerOptional
now restarts the billing cycle immediately (with timing: "immediate"); a future Unix time in milliseconds starts the new cycle at that moment (with timing: "renewal").
timingenumOptional
Immediate or end-of-cycle timing, only for supported plan-change actions.
Show allowed values
"immediate""renewal"
effectiveAtdate-timeOptional
Timestamp (ISO 8601).
creditMinorintegerOptional
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
debitMinorintegerOptional
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
totalMinorintegerOptional
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
discountMinorintegerOptional
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
discountobject | nullOptional
Discount.
Show child fields
grantIduuidRequired
grant ID.
couponIduuidRequired
Coupon UUID in the current App and environment.
amountMinorintegerRequired
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
applicationPolicyenumOptional
How this offer combines with native price discounts: replace the native discount, or stack this offer with it.
Show allowed values
"replace""stack_native"
applicableProductIdsarrayOptional
Merchant-native Product identifiers eligible for this offer in the current App and environment.
minItems: 1 · maxItems: 100
termsobject | objectRequired
Terms.
durationobject | object | objectRequired
Duration.
taxMinorintegerOptional
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
prorationenumOptional
Proration policy frozen for the original subscription change: none, create prorations or invoice immediately. The merchant executes that instruction.
Show allowed values
"none""create_prorations""always_invoice"
lineItemsarrayOptional
Line items.
maxItems: 100
Show child fields
priceIduuidRequired
UUID of the catalog Price this line item bills; price is the Stripe Price bound to it.
productVersionIduuidRequired
Product Version ID.
productIdstringRequired
Product ID.
minLength: 1 · maxLength: 200
quantityintegerRequired
Quantity (integer).
min: 0 · max: 1000000
unitAmountMinorintegerRequired
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
totalMinorintegerRequired
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
intervalenumRequired
Interval; see the allowed values.
Show allowed values
"week""month""year""one_off"
intervalCountintegerRequired
Stripe Price billing interval count, at most 52.
min: 1 · max: 52
kindenumRequired
Kind; see the allowed values.
Show allowed values
"fixed""prepaid""seat"
tiersobject | nullRequired
Price tiers.
removePriceIdsarrayOptional
Longplay Price UUIDs to remove as part of the original subscription change.
maxItems: 100
sourceLineItemsarrayOptional
Frozen native subscription prices from before the change. Older quotes may omit them.
minItems: 1 · maxItems: 100
Show child fields
priceIduuidRequired
Longplay Price ID on the subscription before the change.
productVersionIduuidRequired
Product Version ID.
productIdstringRequired
Product ID.
minLength: 1 · maxLength: 200
quantityintegerRequired
Quantity (integer).
min: 1 · max: 1000000
unitAmountMinorintegerRequired
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
totalMinorintegerRequired
Amount in the currency's minor unit, such as cents.
min: 0 · max: 100000000
intervalenumRequired
Interval; see the allowed values.
Show allowed values
"week""month""year""one_off"
intervalCountintegerRequired
Stripe Price billing interval count, at most 52.
min: 1 · max: 52
kindenumRequired
Kind; see the allowed values.
Show allowed values
"fixed""prepaid""seat"
tiersobject | nullRequired
Price tiers.
storeobjectOptional
Store terms of an App Store or Google Play Product change (timing: "store"): the provider, the new store product, its catalog price and the replacement policy; the store's payment sheet shows the amount due.
Show child fields
providerenumRequired
Payment provider; see the allowed values.
Show allowed values
"apple""google"
productIdstringRequired
Product ID.
minLength: 1 · maxLength: 255
catalogAmountMinorintegerRequired
Amount in the currency's minor unit, such as cents.
Failures return an error object; handle them by error.code and error.recovery. The table lists the errors that follow from this operation's credential, scope and idempotency fields; depending on the request it can also return NOT_FOUND (a referenced resource doesn't exist), NOT_CONFIGURED (a required integration isn't connected) or PAYLOAD_TOO_LARGE. Some refusals, such as insufficient balance, are not errors but a reason in a successful response.
Possible errors
code
HTTP
When
recovery
INVALID_REQUEST
400
The request doesn't match this page's parameters. A missing or malformed protocol header returns UNSUPPORTED_PROTOCOL_VERSION or INVALID_PROTOCOL_VERSION instead.
fix_request
UNAUTHENTICATED
401
The credential is missing, invalid, expired or revoked.
authenticate
FORBIDDEN
403
The credential lacks billing:read.
check_permissions
SCOPE_MISMATCH
403
X-Indiana-Project or X-Indiana-Environment doesn't match the credential's App and environment.
check_scope
CONFLICT
409
The same requestId was sent with different input (reason: IDEMPOTENCY_CONFLICT).
resolve_conflict
RATE_LIMITED
429
Too many requests; wait for Retry-After and retry the same request.
retry_same_request
SERVICE_UNAVAILABLE
503
The service is temporarily unavailable; retry the same request.
retry_same_request
INTERNAL_ERROR
500
The outcome is unknown; read the original operation or replay the original ID and input.
recover_operation
Possible errors
INVALID_REQUEST
HTTP
400
When
The request doesn't match this page's parameters. A missing or malformed protocol header returns UNSUPPORTED_PROTOCOL_VERSION or INVALID_PROTOCOL_VERSION instead.
recovery
fix_request
UNAUTHENTICATED
HTTP
401
When
The credential is missing, invalid, expired or revoked.
recovery
authenticate
FORBIDDEN
HTTP
403
When
The credential lacks billing:read.
recovery
check_permissions
SCOPE_MISMATCH
HTTP
403
When
X-Indiana-Project or X-Indiana-Environment doesn't match the credential's App and environment.
recovery
check_scope
CONFLICT
HTTP
409
When
The same requestId was sent with different input (reason: IDEMPOTENCY_CONFLICT).
recovery
resolve_conflict
RATE_LIMITED
HTTP
429
When
Too many requests; wait for Retry-After and retry the same request.
recovery
retry_same_request
SERVICE_UNAVAILABLE
HTTP
503
When
The service is temporarily unavailable; retry the same request.
recovery
retry_same_request
INTERNAL_ERROR
HTTP
500
When
The outcome is unknown; read the original operation or replay the original ID and input.