Book your free demo

Discover how our product can simplify your workflow. Schedule a free, no-obligation demo today.

[contact-form-7 id="c3f0fca" title="Get a Demo"]

Social Media:

Documentation Sharing & Links Generating Public Links

Generating Public Links

Requirements

Before you can generate a link:

Offer must be saved – You need a WordPress post ID
Offer must be published – Draft offers cannot have public links
Button is enabled – “Generate Link” button becomes active after save

Step-by-Step Process

1. Create and save your offer

  • Fill out all offer details
  • Add items, images, technical sections
  • Click 💾 Save button
  • Wait for success message: “✔ Saved to WP: ID 123”

2. Generate the link

  • “🔗 Generate Client Link” button becomes enabled (no longer grayed out)
  • Click the button
  • Status message appears: “Generating link…”

3. Link is created

  • REST API call to /wp-json/oferty/v1/offers/{id}/generate-link
  • Token generated: 16-character random string
  • Saved to database:
    • _offer_public_token → Token string
    • _offer_token_generated → Current datetime
  • Success message: “Link generated successfully!”

4. Link panel appears

┌─────────────────────────────────────────────┐
│ ✅ Client Link Generated!                   │
├─────────────────────────────────────────────┤
│ https://yoursite.com/offer/a1B2c3D4e5F6/   │
├─────────────────────────────────────────────┤
│ Valid for: 30 days (expires: 2025-12-26)   │
├─────────────────────────────────────────────┤
│ [📋 Copy Link]  [📧 Send Email] (Premium)   │
└─────────────────────────────────────────────┘

Was this article helpful?