POST /v1/payment_links/{payment_link}
Updates a payment link.
Servers
- https://api.stripe.com/
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
payment_link |
String | Yes |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
optional_items |
No |
A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring Prices. There is a maximum of 10 optional items allowed on a payment link, and the existing limits on the number of line items allowed on a payment link apply to the combined number of line items and optional items. There is a maximum of 20 combined line items and optional items. |
|
customer_creation |
String | No |
Configures whether checkout sessions created by this payment link create a Customer. Valid values:
|
name_collection |
No |
Controls settings applied for collecting the customer's name. |
|
phone_number_collection |
Object | No |
Controls phone number collection settings during checkout. We recommend that you review your privacy policy and check with your legal contacts. |
phone_number_collection.enabled |
Boolean | Yes | |
expand[] |
Array | No |
Specifies which fields in the response should be expanded. |
submit_type |
String | No |
Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the url property (example: Valid values:
|
automatic_tax |
Object | No |
Configuration for automatic tax collection. |
automatic_tax.enabled |
Boolean | Yes | |
automatic_tax.liability |
Object | No | |
automatic_tax.liability.account |
String | No | |
automatic_tax.liability.type |
String | Yes |
Valid values:
|
allow_promotion_codes |
Boolean | No |
Enables user redeemable promotion codes. |
metadata |
Object | No |
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to |
after_completion |
Object | No |
Behavior after the purchase is complete. |
after_completion.hosted_confirmation |
Object | No | |
after_completion.hosted_confirmation.custom_message |
String | No | |
after_completion.type |
String | Yes |
Valid values:
|
after_completion.redirect |
Object | No | |
after_completion.redirect.url |
String | Yes | |
shipping_address_collection |
No |
Configuration for collecting the customer's shipping address. |
|
billing_address_collection |
String | No |
Configuration for collecting the customer's billing address. Defaults to Valid values:
|
invoice_creation |
Object | No |
Generate a post-purchase Invoice for one-time payments. |
invoice_creation.enabled |
Boolean | Yes | |
invoice_creation.invoice_data |
Object | No | |
invoice_creation.invoice_data.rendering_options |
No | ||
invoice_creation.invoice_data.description |
String | No | |
invoice_creation.invoice_data.account_tax_ids |
No | ||
invoice_creation.invoice_data.issuer |
Object | No | |
invoice_creation.invoice_data.issuer.account |
String | No | |
invoice_creation.invoice_data.issuer.type |
String | Yes |
Valid values:
|
invoice_creation.invoice_data.metadata |
No | ||
invoice_creation.invoice_data.custom_fields |
No | ||
invoice_creation.invoice_data.footer |
String | No | |
restrictions |
No |
Settings that restrict the usage of a payment link. |
|
active |
Boolean | No |
Whether the payment link's |
line_items[] |
Array | No |
The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported. |
line_items[].id |
String | Yes | |
line_items[].adjustable_quantity |
Object | No | |
line_items[].adjustable_quantity.minimum |
Integer | No | |
line_items[].adjustable_quantity.enabled |
Boolean | Yes | |
line_items[].adjustable_quantity.maximum |
Integer | No | |
line_items[].quantity |
Integer | No | |
payment_intent_data |
Object | No |
A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in |
payment_intent_data.description |
No | ||
payment_intent_data.metadata |
No | ||
payment_intent_data.transfer_group |
No | ||
payment_intent_data.statement_descriptor |
No | ||
payment_intent_data.statement_descriptor_suffix |
No | ||
tax_id_collection |
Object | No |
Controls tax ID collection during checkout. |
tax_id_collection.required |
String | No |
Valid values:
|
tax_id_collection.enabled |
Boolean | Yes | |
inactive_message |
No |
The custom message to be displayed to a customer when a payment link is no longer active. |
|
payment_method_collection |
String | No |
Specify whether Checkout should collect a payment method. When set to Can only be set in If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial. Valid values:
|
payment_method_types |
No |
The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your payment method settings. |
|
custom_text |
Object | No |
Display additional text for your customers using custom text. You can't set this parameter if |
custom_text.shipping_address |
No | ||
custom_text.terms_of_service_acceptance |
No | ||
custom_text.submit |
No | ||
custom_text.after_submit |
No | ||
custom_fields |
No |
Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if |
|
subscription_data |
Object | No |
When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use |
subscription_data.trial_settings |
No | ||
subscription_data.trial_period_days |
No | ||
subscription_data.metadata |
No | ||
subscription_data.invoice_settings |
Object | No | |
subscription_data.invoice_settings.issuer |
Object | No | |
subscription_data.invoice_settings.issuer.account |
String | No | |
subscription_data.invoice_settings.issuer.type |
String | Yes |
Valid values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.