Skip to main content
GET
/
v1
/
payment_links
/
{id}
Get Payment Link
curl --request GET \
  --url https://api.withflex.com/v1/payment_links/{id} \
  --header 'Authorization: Bearer <token>'
{
  "payment_link": {
    "payment_link_id": "obj_01EXAMPLE00000000000000000",
    "label": "Example",
    "active": false,
    "line_items": [
      {}
    ],
    "allow_promotion_codes": false,
    "shipping_address_collection": false,
    "shipping_options": {
      "shipping_rate_id": "obj_01EXAMPLE00000000000000000",
      "shipping_amount": 0,
      "display_name": "Example"
    },
    "metadata": {},
    "url": "https://example.com",
    "created_at": "2024-01-01T00:00:00Z",
    "payment_intent_data": {
      "metadata": {}
    },
    "after_completion": {},
    "origin": "shopify",
    "tax_rate": {
      "amount": 0
    },
    "discounts": [
      "string"
    ],
    "test_mode": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.withflex.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Path Parameters

id
string
required
Example:

"obj_01EXAMPLE00000000000000000"

Response

Success

Example:
{
"payment_link_id": "obj_01EXAMPLE00000000000000000",
"label": "Example",
"active": false,
"line_items": [
{
"price": "string",
"quantity": 0,
"shipping_options": {},
"tax_rate": {}
}
],
"allow_promotion_codes": false,
"shipping_address_collection": false,
"shipping_options": {
"shipping_rate_id": "obj_01EXAMPLE00000000000000000",
"shipping_amount": 0,
"display_name": "Example"
},
"metadata": {},
"url": "https://example.com",
"created_at": "2024-01-01T00:00:00Z",
"payment_intent_data": {
"capture_method": "automatic",
"metadata": {}
},
"after_completion": {
"type": "redirect",
"hosted_confirmation": { "custom_message": "string" },
"redirect": { "url": "https://example.com" }
},
"origin": "shopify",
"tax_rate": { "amount": 0 },
"discounts": ["string"],
"test_mode": false
}