---
updatedAt: 2026-05-21T09:00:30.000Z
agentTools:
  projectIndex: https://docs.paymongo.com/llms.txt
---

# Create Legacy Link

Creates a legacy link.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Payment Links API",
    "version": "1.0.0",
    "description": "API documentation for managing payment links and legacy links."
  },
  "servers": [
    {
      "url": "https://api.paymongo.com"
    }
  ],
  "tags": [
    {
      "name": "Legacy Links",
      "description": "Operations about legacy links."
    }
  ],
  "paths": {
    "/v1/links": {
      "post": {
        "tags": [
          "Legacy Links"
        ],
        "summary": "Create Legacy Link",
        "description": "Creates a legacy link.",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "The API key for authentication. Use Basic base64(sk_live:).",
            "required": true,
            "schema": {
              "type": "string",
              "example": "Basic base64(sk_live:)"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes"
                    ],
                    "properties": {
                      "attributes": {
                        "type": "object",
                        "required": [
                          "amount",
                          "description"
                        ],
                        "properties": {
                          "amount": {
                            "type": "integer",
                            "description": "Amount in the smallest currency unit.",
                            "example": 10000
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the legacy link.",
                            "example": "tteokbokki"
                          },
                          "remarks": {
                            "type": "string",
                            "description": "Remarks attached to the legacy link.",
                            "example": "test"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Legacy link created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "type",
                        "attributes"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "The unique identifier of the legacy link.",
                          "example": "link_12345"
                        },
                        "type": {
                          "type": "string",
                          "description": "Object type.",
                          "example": "link"
                        },
                        "attributes": {
                          "type": "object",
                          "required": [
                            "amount",
                            "archived",
                            "currency",
                            "livemode",
                            "fee",
                            "status",
                            "taxes",
                            "checkout_url",
                            "reference_number",
                            "created_at",
                            "updated_at",
                            "payments"
                          ],
                          "properties": {
                            "amount": {
                              "type": "integer",
                              "example": 10000
                            },
                            "archived": {
                              "type": "boolean",
                              "example": false
                            },
                            "currency": {
                              "type": "string",
                              "example": "PHP"
                            },
                            "description": {
                              "type": "string",
                              "example": "tteokbokki"
                            },
                            "livemode": {
                              "type": "boolean",
                              "example": true
                            },
                            "fee": {
                              "type": "integer",
                              "example": 0
                            },
                            "remarks": {
                              "type": "string",
                              "example": "test"
                            },
                            "status": {
                              "type": "string",
                              "example": "unpaid"
                            },
                            "tax_amount": {
                              "type": "integer",
                              "nullable": true,
                              "example": null
                            },
                            "taxes": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              },
                              "example": []
                            },
                            "checkout_url": {
                              "type": "string",
                              "example": "https://pm.link/example/aBcDe"
                            },
                            "reference_number": {
                              "type": "string",
                              "example": "aBcDe"
                            },
                            "created_at": {
                              "type": "integer",
                              "description": "Creation timestamp (epoch).",
                              "example": 1773731980
                            },
                            "updated_at": {
                              "type": "integer",
                              "description": "Last update timestamp (epoch).",
                              "example": 1773731980
                            },
                            "payments": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              },
                              "example": []
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "code",
                          "detail"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "unauthorized"
                          },
                          "detail": {
                            "type": "string",
                            "example": "You do not have access to this resource."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "code",
                          "detail"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "internal_server_error"
                          },
                          "detail": {
                            "type": "string",
                            "example": "An unexpected error occurred."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Use Basic authentication with base64(sk_live:)."
      }
    }
  }
}
```