---
updatedAt: 2026-04-06T12:57:35.000Z
agentTools:
  projectIndex: https://boomfi.readme.io/llms.txt
---

# Create Variant Pay Link URL

The **Create Variant Pay Link URL** endpoint enables you to create a customized version of an existing payment link, allowing you to modify key elements such as the amount and currency. This functionality is ideal for scenarios where you need to offer personalized payment options, such as discounts, special pricing, or promotions, while maintaining the original plan’s integrity.

> 📘 Note
> 
> You can use this endpoint to offer discounts or custom pricing by creating a variant of an existing paylink.


<HTMLBlock>{`
<style>
  :root {
    --callout-border: 0;
    --callout-border-radius: 4px;
    --text-color: #000000;

    /* Info Callout Colors */
    --info-light-bg: #DAF8FF;
    --info-light-border: #7CCEDF;
    --info-light-header: #57B3C7;
    --info-light-text: #283652;
    --info-light-link: #57B3C7;
    --info-dark-bg: #DAF8FF;
    --info-dark-border: #7CCEDF;
    --info-dark-header: #57B3C7;
    --info-dark-text: #97B5BC;
    --info-dark-link: #57B3C7;

    /* Okay Callout Colors */
    --okay-light-bg: #DFFFE8;
    --okay-light-border: #116E5F;
    --okay-light-header: #116E5F;
    --okay-light-text: #116E5F;
    --okay-light-link: #61AEA0;
    --okay-dark-bg: #DFFFE8;
    --okay-dark-header: #5BB2A4;
    --okay-dark-text: #7B9792;
    --okay-dark-link: #61AEA0;

    /* Default Callout Colors */
    --default-light-bg: #e8e8e8;
    --default-light-border: #ACACAC;
    --default-light-text: #8A8A8A;
    --default-dark-bg: #e8e8e8;
    --default-dark-text: #FFFFFF;

    /* Warn Callout Colors */
    --warn-light-bg: #fff9c2;
    --warn-light-border: #FFB293;
    --warn-light-header: #FF966B;
    --warn-light-text: #80776C;
    --warn-light-link: #FF966B;
    --warn-dark-bg: #fff9c2;
    --warn-dark-header: #FF966B;
    --warn-dark-text: #989693;
    --warn-dark-link: #FF966B;

    /* Error Callout Colors */
    --error-light-bg: #ffdada;
    --error-light-border: #FA94A6;
    --error-light-header: #FF728B;
    --error-light-text: #B56978;
    --error-light-link: #FF728B;
    --error-dark-bg: #ffdada;
    --error-dark-header: #FF728B;
    --error-dark-text: #C6A5AB;
    --error-dark-link: #FF728B;
  }

  .field-description blockquote,
  .markdown-body blockquote {
    border-left: 0;
  }

  .callout {
    border-radius: var(--callout-border-radius);
    border: var(--callout-border);
  }

  .callout .callout-heading p,
  .callout p,
  .callout ul {
    color: var(--text-color) !important;
  }

  @media (prefers-color-scheme: dark) {

    [data-color-mode="system"] .callout .callout-heading p,
    [data-color-mode="system"] .callout p,
    [data-color-mode="system"] .callout ul {
      color: var(--text-color) !important;
    }
  }

  [data-color-mode="dark"] .callout .callout-heading p,
  [data-color-mode="dark"] .callout p,
  [data-color-mode="dark"] .callout ul {
    color: var(--text-color) !important;
  }

  /* INFO CALLOUT */
  .callout.callout_info {
    background: var(--info-light-bg);
  }

  .callout.callout_info a {
    color: var(--info-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_info {
      background-color: var(--info-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_info a {
      color: var(--info-dark-link) !important;
    }
  }

  [data-color-mode="dark"] .callout.callout_info {
    background-color: var(--info-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_info a {
    color: var(--info-dark-link) !important;
  }

  /* INFO CALLOUT */

  /* OKAY CALLOUT */
  .callout.callout_okay {
    background: var(--okay-light-bg);
  }

  .callout.callout_okay a {
    color: var(--okay-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_okay {
      background-color: var(--okay-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_okay a {
      color: var(--okay-dark-link) !important;
    }
  }

  [data-color-mode="dark"] .callout.callout_okay {
    background-color: var(--okay-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_okay a {
    color: var(--okay-dark-link) !important;
  }

  /* OKAY CALLOUT */

  /* DEFAULT CALLOUT */
  .callout.callout_default {
    background: var(--default-light-bg);
  }

  .callout.callout_default a {
    color: var(--text-color) !important;
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_default {
      background-color: var(--default-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_default a {
      color: var(--text-color) !important;
    }

  }

  [data-color-mode="dark"] .callout.callout_default {
    background-color: var(--default-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_default a {
    color: var(--text-color) !important;
  }

  /* DEFAULT CALLOUT */

  /* WARN CALLOUT */
  .callout.callout_warn {
    background: var(--warn-light-bg);
  }

  .callout.callout_warn a {
    color: var(--warn-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_warn {
      background-color: var(--warn-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_warn a {
      color: var(--warn-dark-link);
    }
  }

  [data-color-mode="dark"] .callout.callout_warn {
    background-color: var(--warn-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_warn a {
    color: var(--warn-dark-link);
  }

  /* WARN CALLOUT */

  /* ERROR CALLOUT */
  .callout.callout_error {
    background: var(--error-light-bg);
  }

  .callout.callout_error a {
    color: var(--error-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_error {
      background-color: var(--error-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_error a {
      color: var(--error-dark-link);
    }
  }

  [data-color-mode="dark"] .callout.callout_error {
    background-color: var(--error-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_error a {
    color: var(--error-dark-link);
  }

  /* ERROR CALLOUT */

  img {
    border-radius: 14px !important;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);
  }

  .Sidebar-listWrapper6Q9_yUrG906C.rm-Sidebar-section:nth-child(3),
  .rm-Sidebar-section:nth-child(3), .rm-Sidebar-section:nth-child(4) {
    display: none;
  }

  .Select option {
    color: var(--color-input-text);
  }
</style>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "The BoomFi Merchants API provides a set of endpoints for merchants to manage their accounts, transactions, and more.",
    "title": "BoomFi Merchants API",
    "contact": {
      "name": "API Support",
      "email": "support@boomfi.xyz"
    },
    "version": "1.0"
  },
  "paths": {
    "/v1/paylinks/generate-variant/{paylinkId}": {
      "get": {
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "description": "The **Create Variant Pay Link URL** endpoint enables you to create a customized version of an existing payment link, allowing you to modify key elements such as the amount and currency. This functionality is ideal for scenarios where you need to offer personalized payment options, such as discounts, special pricing, or promotions, while maintaining the original plan’s integrity.\n\n> 📘 Note\n> \n> You can use this endpoint to offer discounts or custom pricing by creating a variant of an existing paylink.\n",
        "tags": [
          "Paylinks"
        ],
        "summary": "Create Variant Pay Link URL",
        "operationId": "create-variant-paylink-url",
        "parameters": [
          {
            "description": "Unique identifier of the payment link.",
            "name": "paylinkId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Amount to be associated with the payment link variant.",
            "name": "amount",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Currency to be associated with the payment link variant.",
            "name": "currency",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Customer identifier to record as `customer.reference`.",
            "name": "customer_ident",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "URL to redirect customer after a successful payment.",
            "name": "redirect_to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paylinks.GenerateVariantURLResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.ErrorResponse500"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//mapi.boomfi.xyz"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header"
      }
    },
    "schemas": {
      "internal.ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/internal.ErrorStruct"
          }
        }
      },
      "internal.ErrorResponse500": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/internal.ErrorStruct500"
          }
        }
      },
      "internal.ErrorStruct": {
        "type": "object",
        "properties": {
          "code": {
            "description": "The error code returned by the server.\nExample: 400",
            "type": "integer",
            "example": 400
          },
          "errors": {
            "description": "A list of detailed error objects.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/internal.SingleError"
            }
          },
          "message": {
            "description": "A descriptive message explaining the error.\nExample: Insufficient quantity",
            "type": "string",
            "example": "Insufficient quantity"
          }
        }
      },
      "internal.ErrorStruct500": {
        "type": "object",
        "properties": {
          "code": {
            "description": "The error code returned by the server.\nExample: 500",
            "type": "integer",
            "example": 500
          },
          "errors": {
            "description": "A list of detailed error objects.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/internal.SingleError500"
            }
          },
          "message": {
            "description": "A descriptive message explaining the error.\nExample: Internal server error",
            "type": "string",
            "example": "Internal server error"
          }
        }
      },
      "internal.SingleError": {
        "type": "object",
        "properties": {
          "domain": {
            "description": "The domain associated with the error.\nExample: orders",
            "type": "string",
            "example": "orders"
          },
          "reason": {
            "description": "The reason for the error.\nExample: InsufficientQuantity",
            "type": "string",
            "example": "InsufficientQuantity"
          }
        }
      },
      "internal.SingleError500": {
        "type": "object",
        "properties": {
          "domain": {
            "description": "The domain associated with the error.\nExample: orders",
            "type": "string",
            "example": "orders"
          },
          "reason": {
            "description": "The reason for the error.\nExample: Internal",
            "type": "string",
            "example": "Internal"
          }
        }
      },
      "models.BillingScheme": {
        "description": "The billing scheme determines how the charges are calculated for the subscription.\n- 1 = Flatfee - 2 = Perunit - 3 = Graduated - 4 = Volume",
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          4
        ],
        "x-enum-varnames": [
          "BillingSchemeFlatfee",
          "BillingSchemePerunit",
          "BillingSchemeGraduated",
          "BillingSchemeVolume"
        ]
      },
      "models.BillingSource": {
        "description": "The source  of this billing information. Can be one of the following:\n- 1 = Lago\n- 2 = Boomfi\n- 3 = Stripe\n- 4 = Chargebee",
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          4
        ],
        "x-enum-varnames": [
          "BillingSourceLago",
          "BillingSourceBoomfi",
          "BillingSourceStripe",
          "BillingSourceChargebee"
        ]
      },
      "models.PlanType": {
        "description": "The type of the plan:\n- **1** = Unknown\n- **2** = Onetime\n- **3** = Recurring",
        "type": "string",
        "enum": [
          "1",
          "2",
          "3"
        ],
        "x-enum-varnames": [
          "PlanTypeUnknown",
          "PlanTypeOnetime",
          "PlanTypeRecurring"
        ]
      },
      "models.RecurringInterval": {
        "type": "string",
        "description": "The recurring interval for the payment link:\n- **Week**\n- **Month**\n- **Year**\n",
        "enum": [
          "Week",
          "Month",
          "Year"
        ],
        "x-enum-varnames": [
          "RecurringIntervalWeek",
          "RecurringIntervalMonth",
          "RecurringIntervalYear"
        ]
      },
      "models.RecurringUsageType": {
        "type": "integer",
        "enum": [
          1,
          2,
          3
        ],
        "x-enum-varnames": [
          "RecurringUsageTypeUnknown",
          "RecurringUsageTypeLicensed",
          "RecurringUsageTypeMetered"
        ]
      },
      "paylinks.GenerateVariantURLResponse": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL of the paylink variant",
            "example": "https://pay-test.boomfi.xyz/2Z4zsnmp37AF3WKM6N2j4wmeakr?amount=101&currency=EUR&signature=7a3043f809aa4aab4ca68694f9394c6fe4deb82c745347a4fc4ae33f6716c22e"
          },
          "created_by": {
            "type": "string",
            "description": "The ID of the user who created the paylink variant",
            "example": "2TzGhPCAfFWLPBjtc6h52Aao2S6"
          },
          "payment_link": {
            "$ref": "#/components/schemas/paylinks.PaymentLinkResponse"
          },
          "plan": {
            "$ref": "#/components/schemas/plan.PlanResponse"
          }
        }
      },
      "paylinks.PaymentLinkResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier for the paylink",
            "example": "2Z4zsnmp37AF3WKM6N2j4wmeakr"
          },
          "plan_id": {
            "type": "string",
            "description": "The ID of the associated plan",
            "example": "2Z4zspFMhs2pMYjcR3l6JpJaWdA"
          },
          "invoice_id": {
            "type": "string",
            "description": "The ID of the associated invoice",
            "example": ""
          },
          "source": {
            "type": "string",
            "description": "The source of the paylink",
            "example": "BoomFi"
          },
          "customer_ident_collection": {
            "type": "boolean",
            "description": "Indicates if customer identification collection is enabled",
            "example": false
          },
          "shipping_address_collection": {
            "type": "boolean",
            "description": "Indicates if shipping address collection is enabled",
            "example": false
          },
          "tax_ident_collection": {
            "type": "boolean",
            "description": "Indicates if tax identification collection is enabled",
            "example": false
          },
          "enabled": {
            "type": "boolean",
            "description": "Indicates if the paylink is enabled",
            "example": true
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the paylink was deleted",
            "example": "2023-12-04T13:25:48.499Z"
          },
          "created_by": {
            "type": "string",
            "description": "The ID of the user who created the paylink",
            "example": "2TzGhPCAfFWLPBjtc6h52Aao2S6"
          },
          "updated_by": {
            "type": "string",
            "description": "The ID of the user who last updated the paylink",
            "example": ""
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the paylink was created",
            "example": "2023-12-04T13:25:48.496Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the paylink was last updated",
            "example": "2023-12-04T13:25:48.499Z"
          },
          "available_quantity": {
            "type": "number",
            "description": "The remaining number of times this payment link can be used. `null` indicates unlimited usage.\n\n- Decremented on each successful or failed payment.\n- Restored when a payment is canceled.\n- When the value reaches zero, the payment link becomes invalid.\n"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "The expiration date and time of the payment link. Any checkout attempt after this timestamp will fail.",
            "example": "2026-12-31T23:59:59Z"
          },
          "metadata": {
            "type": "object",
            "description": "Additional metadata associated with the paylink",
            "example": {}
          },
          "properties": {
            "type": "object",
            "description": "Additional properties associated with the paylink",
            "properties": {
              "short_code": {
                "type": "string",
                "description": "The short code associated with the paylink",
                "example": "AANj9Dm7Zl"
              }
            }
          },
          "plan": {
            "type": "object",
            "description": "The details of the associated plan",
            "properties": {
              "id": {
                "type": "string",
                "description": "The unique identifier for the plan",
                "example": "2Z4zspFMhs2pMYjcR3l6JpJaWdA"
              },
              "org_id": {
                "type": "string",
                "description": "The organization ID associated with the plan",
                "example": "2Tpmnmh6GHJXumKN1oBy2u56Ima"
              },
              "source": {
                "type": "string",
                "description": "The source of the plan",
                "example": "Lago"
              },
              "name": {
                "type": "string",
                "description": "The name of the plan",
                "example": "test paylink 12 04"
              },
              "type": {
                "type": "string",
                "description": "The type of the plan",
                "example": "OneTime"
              },
              "billing_scheme": {
                "type": "string",
                "description": "The billing scheme of the plan",
                "example": "FlatFee"
              },
              "price": {
                "type": "string",
                "description": "The price of the plan",
                "example": "1"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the plan",
                "example": "USD"
              },
              "available_quantity": {
                "type": "integer",
                "description": "The available quantity of the plan",
                "example": 0
              },
              "trial_period": {
                "type": "string",
                "description": "The trial period of the plan",
                "example": ""
              },
              "recurring_interval": {
                "type": "string",
                "description": "The recurring interval of the plan",
                "example": "Unknown"
              },
              "recurring_interval_count": {
                "type": "integer",
                "description": "The recurring interval count of the plan",
                "example": 1
              },
              "recurring_usage_type": {
                "type": "string",
                "description": "The recurring usage type of the plan",
                "example": "Unknown"
              },
              "reference": {
                "type": "string",
                "description": "The reference of the plan",
                "example": ""
              },
              "enabled": {
                "type": "boolean",
                "description": "Indicates if the plan is enabled",
                "example": true
              },
              "v1": {
                "type": "string",
                "description": "Additional information about the plan",
                "example": "eyJwbGFucyI6IHsiaWQiOiAiYWE1ZmI5MjQtMmMzZi00NzcwLTkyZDEtMjFjYmY3ODc3ODc2IiwgIm5hbWUiOiAidGVzdCBwYXlsaW5rIDEyIDA0IiwgInN0YXR1cyI6ICJhY3RpdmUiLCAiaW50ZXJ2YWwiOiBudWxsLCAicmVmZXJlbmNlIjogIiIsICJhbW91bnRfd2VpIjogIjEwMCIsICJjcmVhdGVkX2F0IjogIjIwMjMtMTI..."
              },
              "created_by": {
                "type": "string",
                "description": "The ID of the user who created the plan",
                "example": "2TzGhPCAfFWLPBjtc6h52Aao2S6"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The timestamp when the plan was created",
                "example": "2023-12-04T13:25:47.656Z"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "The timestamp when the plan was last updated",
                "example": "2023-12-04T13:25:48.491Z"
              },
              "deleted_at": {
                "type": "string",
                "format": "date-time",
                "description": "The timestamp when the plan was deleted",
                "example": null
              },
              "metadata": {
                "type": "object",
                "description": "Additional metadata associated with the plan",
                "example": {}
              }
            }
          }
        }
      },
      "plan.PlanResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the plan.",
            "example": "2eJh1L1rDrCZxTyE6vwGhck7LWI"
          },
          "org_id": {
            "type": "string",
            "description": "The identifier of the organization associated with the plan.",
            "example": "2Tpmnmh6GHJXumKN1oBy2u56Ima"
          },
          "source": {
            "type": "string",
            "description": "The source of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.BillingSource"
              }
            ]
          },
          "name": {
            "type": "string",
            "description": "The name of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.PlanType"
              }
            ]
          },
          "type": {
            "type": "string",
            "description": "The type of the plan."
          },
          "billing_scheme": {
            "type": "string",
            "description": "The billing scheme of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.BillingScheme"
              }
            ]
          },
          "price": {
            "type": "string",
            "description": "The price of the plan."
          },
          "currency": {
            "type": "string",
            "description": "The currency of the plan."
          },
          "available_quantity": {
            "type": "integer",
            "description": "The available quantity of the plan."
          },
          "trial_period": {
            "type": "string",
            "description": "The trial period of the plan."
          },
          "recurring_interval": {
            "type": "string",
            "description": "The recurring interval of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.RecurringInterval"
              }
            ]
          },
          "recurring_interval_count": {
            "type": "integer",
            "description": "The count of recurring intervals for the plan."
          },
          "recurring_usage_type": {
            "type": "string",
            "description": "The recurring usage type of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.RecurringUsageType"
              }
            ]
          },
          "reference": {
            "type": "string",
            "description": "The reference of the plan."
          },
          "enabled": {
            "type": "boolean",
            "description": "Indicates whether the plan is enabled or not."
          },
          "v1": {
            "type": "string",
            "description": "Additional information about the plan."
          },
          "created_by": {
            "type": "string",
            "description": "The identifier of the user who created the plan."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the plan was created."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the plan was last updated."
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the plan was deleted, if applicable."
          },
          "metadata": {
            "type": "object",
            "description": "Additional metadata associated with the plan.",
            "additionalProperties": true,
            "example": {
              "key": "value"
            }
          },
          "properties": {
            "type": "object",
            "description": "Additional properties of the plan.",
            "additionalProperties": true,
            "example": {
              "key": "value"
            }
          }
        }
      }
    }
  }
}
```