code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.PaymentLink.list(limit=3)
  '''Response {
    "object": "list",
    "url": "/v1/payment_links",
    "has_more": false,
    "data": [
      {
        "id": "plink_1LSdsx2eZvKYlo2CdmenOg9N",
        "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",
        "customer_creation": "always",
        "livemode": false,
        "metadata": {},
        "on_behalf_of": null,
        "payment_intent_data": null,
        "payment_method_types": null,
        "phone_number_collection": {
          "enabled": false
        },
        "shipping_address_collection": null,
        "shipping_options": [],
        "submit_type": "auto",
        "subscription_data": null,
        "tax_id_collection": {
          "enabled": false
        },
        "transfer_data": null,
        "url": "https://buy.stripe.com/test_5kAcPyarJaIPaQg4gg"
      },
      {...},
      {...}
    ]
  }'''
nl: List all payment linksReturns a list of your payment links.Parameters active optional Only return payment links that are active or inactive (e.g., pass false to list all inactive payment links).More parametersExpand all  ending_before optional   limit optional   starting_after optional ReturnsA dictionary with a data property that contains an array of up to limit payment links, starting after payment link starting_after. Each entry in the array is a separate payment link object. If no more payment links are available, the resulting array will be empty. This request should never raise an error