Create a payment link

POST https://us-central1-appgregator.cloudfunctions.net/stripe/payment-links/:id/

Query Parameters

Name
Type
Description

name*

String

ft-4

connection_name*

String

stripe-1

Headers

Name
Type
Description

x-api-key*

String

XXX

Request Body

Name
Type
Description

line_items[0][price]*

String

price_1Lg2ZFIyq0PiFIhUzFvnkQvG

line_items[0][quantity]*

Integer

3

{
    "id": "plink_1MZUTfIyq0PiFIhUtft4go7v",
    "object": "payment_link",
    "active": true,
    "after_completion": {
        "hosted_confirmation": {
            "custom_message": null
        },
        "type": "hosted_confirmation"
    },
    "allow_promotion_codes": false,
    "application_fee_amount": null,
    "application_fee_percent": null,
    "automatic_tax": {
        "enabled": false
    },
    "billing_address_collection": "auto",
    "consent_collection": null,
    "currency": "usd",
    "custom_text": {
        "shipping_address": null,
        "submit": null
    },
    "customer_creation": "if_required",
    "invoice_creation": {
        "enabled": false,
        "invoice_data": {
            "account_tax_ids": null,
            "custom_fields": null,
            "description": null,
            "footer": null,
            "metadata": {},
            "rendering_options": null
        }
    },
    "livemode": false,
    "metadata": {},
    "on_behalf_of": null,
    "payment_intent_data": null,
    "payment_method_collection": "always",
    "payment_method_types": null,
    "phone_number_collection": {
        "enabled": false
    },
    "shipping_address_collection": null,
    "shipping_options": [],
    "submit_type": "auto",
    "subscription_data": {
        "description": null,
        "trial_period_days": null
    },
    "tax_id_collection": {
        "enabled": false
    },
    "transfer_data": null,
    "url": "https://buy.stripe.com/test_4gw7tKaEz7hP8AUeV0"
}
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/stripe/payment-links/plink_1Lg2L9Iyq0PiFIhU2yzlNb3J/line_items?name=ft-4&connection_name=stripe-1&limit=1' \
--header 'x-api-key: XXX'

Last updated