Sample - Stripe API
POST/v1/payment_method_domains/{payment_method_domain}

Update a payment method domain

Updates the enabled state of an existing payment method domain. Supply enabled to control whether payment methods that require a registered domain appear in Elements or Embedded Checkout, and use expand to request additional response fields.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.
  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 2 body fields
payment_method_domainstringrequired
The unique identifier of the payment method domain to update. Maximum 5000 characters.

Fields used to update a payment method domain.

enabledbooleanoptional
Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout.
expandarray<string>optional
Specifies which fields in the response should be expanded.

2 status codes
200Returns the updated payment method domain, including its enabled state and supported payment-method statuses.
amazon_payobjectrequired
Indicates the status of a specific payment method on a payment method domain.
apple_payobjectrequired
Indicates the status of a specific payment method on a payment method domain.
createdintegerrequired
Time at which the object was created. Measured in seconds since the Unix epoch.
domain_namestringrequired
The domain name that this payment method domain object represents.
enabledbooleanrequired
Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
google_payobjectrequired
Indicates the status of a specific payment method on a payment method domain.
idstringrequired
Unique identifier for the object.
klarnaobjectrequired
Indicates the status of a specific payment method on a payment method domain.
linkobjectrequired
Indicates the status of a specific payment method on a payment method domain.
livemodebooleanrequired
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
Allowed:payment_method_domain
paypalobjectrequired
Indicates the status of a specific payment method on a payment method domain.
defaultError response.
errorobjectrequired

Error handling

payment_method_domain must identify the payment method domain to update and must not exceed 5000 characters. enabled must be a boolean when provided, and expand values must not exceed 5000 characters.