Skip to main content
PUT
cURL
Updates one active credit pack by its URL id. Send the complete editable body: name, type: "credit_pack", positive creditAmount, and positive priceCents in USD cents. The response contains the current item and changed; unchanged values return changed: false. New Checkouts use the updated value. If a purchase is still pending_checkout, changing its credit amount or price returns 409 purchase_pending. Complete the payment or wait for Stripe’s signed checkout.session.expired event to clear the pending purchase, then retry. A browser cancel redirect alone does not expire the session. If an expired Checkout still blocks the edit, verify the organization’s Stripe webhook subscribes to expiry events and that Ledger received the event. A name-only edit is allowed while Checkout is pending. An unknown or archived ID returns 404 not_found; invalid values return 400 invalid_request. See Create an add-on for pack setup and Customers for payment and credit timing.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Required string length: 1 - 100
Pattern: ^[a-zA-Z0-9_-]+$

Body

application/json
name
string
required
Required string length: 1 - 120
type
enum<string>
required
Available options:
credit_pack
creditAmount
integer
required
Required range: x <= 2147483647
priceCents
integer
required
Required range: x <= 2147483647

Response

AddOn updated

item
object
required
changed
boolean
required