The Payment Company Logo

PaymentLink

Link Templates

This API retrieves all saved payment link templates for the authenticated user. It returns template details such as the name, redirect URLs, webhook URLs, and screenshots.

SectionPaymentLink
Topics03
PathpaymentLink / paymentTemplate

API Endpoint

GEThttps://api.thepayment.company/api/v1/payment-templates

Headers

Header NameDescription
Content-TypeMust be set to application/json.
AuthorizationBearer token using your secret key or test key.

Sample Responses

{
"data": [
  {
    "template_id": "07b3ac4b-7f99-4736-b116-12862433010y",
    "template_name": "Donation Template",
    "payment_template_id": "TPL7823981",
    "template_screenshot": "https://cdn.thepayment.company/screenshots/template1.png",
    "redirect_url": "https://thepayment.company/success",
    "webhook_url": "https://webhook.site/abc123"
  },
  {
    "template_id": "07b3ac4b-7f99-4736-b116-12862433010c",
    "template_name": "E-commerce Checkout",
    "payment_template_id": "TPL8923746",
    "template_screenshot": "https://cdn.thepayment.company/screenshots/template2.png",
    "redirect_url": "https://thepayment.company/thank-you",
    "webhook_url": "https://webhook.site/xyz987"
  }
]
}

On this page