---
updatedAt: 2025-02-14T21:02:15.000Z
agentTools:
  projectIndex: https://docs.kontempo.io/llms.txt
---

# Send payment link

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/v1/payment-links/send": {
      "post": {
        "operationId": "PaymentLinksController_sendLink",
        "summary": "Send payment link",
        "parameters": [
          {
            "name": "X-Api-Secret",
            "in": "header",
            "description": "Merchant Api Secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Api-Key",
            "in": "header",
            "description": "Merchant Api Key",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendPaymentLinkDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentLink"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerErrorErrorResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Payment Links"
        ]
      }
    }
  },
  "info": {
    "title": "Kontempo Merchant API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://partners.kontempo.io"
    }
  ],
  "components": {
    "schemas": {
      "InternalServerErrorErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 500
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "statusCode",
          "message"
        ]
      },
      "BadRequestErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "statusCode",
          "message"
        ]
      },
      "SendPaymentLinkDto": {
        "type": "object",
        "properties": {
          "buyer_user_pkey": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "payment_link_pkey": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "email",
              "sms",
              "whatsapp"
            ]
          }
        },
        "required": [
          "payment_link_pkey",
          "type"
        ]
      },
      "PaymentLink": {
        "type": "object",
        "properties": {
          "pkey": {
            "type": "string"
          },
          "created": {
            "type": "number",
            "example": 1644243150
          },
          "archived": {
            "type": "number",
            "example": 0
          },
          "status": {
            "type": "number",
            "example": 1
          },
          "attributes": {
            "type": "object"
          },
          "link_url": {
            "type": "string",
            "example": "generated checkout url"
          },
          "external_order_id": {
            "type": "string",
            "example": "MERCHANT_PROVIDED_ORDER_ID"
          },
          "merchant_account": {
            "type": "string"
          },
          "cart_total": {
            "type": "number",
            "example": 10000
          },
          "buyer_account": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "expires": {
            "type": "number",
            "example": 1644243150
          },
          "currency": {
            "type": "string",
            "enum": [
              "MXN",
              "USD"
            ]
          }
        },
        "required": [
          "pkey",
          "created",
          "archived",
          "status",
          "attributes",
          "link_url",
          "external_order_id",
          "merchant_account",
          "cart_total",
          "currency"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```