---
updatedAt: 2025-09-08T22:30:03.000Z
agentTools:
  projectIndex: https://boomfi.readme.io/llms.txt
---

# Enable or Disable a Paylink

Update the status of a specific paylink by setting the `enabled` field to `true` or `false`.

# 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/{paylinkId}": {
      "patch": {
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Enable or Disable a Paylink",
        "description": "Update the status of a specific paylink by setting the `enabled` field to `true` or `false`.",
        "operationId": "enable-disable-paylink",
        "tags": [
          "Paylinks"
        ],
        "parameters": [
          {
            "name": "paylinkId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the paylink to update.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Set to `false` to disable the paylink or `true` to enable it."
                  }
                },
                "required": [
                  "enabled"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/internal.Response-paylinks_PaymentLinkResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//mapi.boomfi.xyz"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header"
      }
    },
    "schemas": {
      "internal.Response-paylinks_PaymentLinkResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/paylinks.PaymentLinkResponse"
          },
          "error": {
            "type": "boolean"
          }
        }
      },
      "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": {}
              }
            }
          }
        }
      }
    }
  }
}
```