API Documentation
  • 🦸User
    • 🐔requestDeveloperVerification
    • ☑️Accept Developer verification
    • 🚫Reject developer verification
    • 🆕NEW Authentication Trigger
  • 📧Send emails
  • 📂Projects
    • 📩Invite a new Team member
  • 📔Tasks
    • 💣Cancel Task
    • 🔎Submit task
    • 👨‍💻Assign Task
  • Step 1 taskflow
    • ✅Accept task
    • ❌Reject task
    • ⏳Deadline reached
  • Step 2 taskflow
    • ✅Accept developer (creator)
    • ❌Reject developer (creator)
  • Step 3 taskflow
    • 🚦Submit for review
    • ⏳Review Deadline reached
    • ✅Accept work result
    • ❌Reject work result
  • Step 4 Taskflow
    • 💸Generate Invoice
    • 💸Mark invoice as paid
Powered by GitBook
On this page
  • Input parameters
  • How to call from app
  • Logic
  1. Step 3 taskflow

Accept work result

As a creator, I want to accept the work of a submitted task

PreviousReview Deadline reachedNextReject work result

Last updated 2 years ago

Input parameters

  • TaskID

How to call from app

HTTP request to: /accept-work-result/TASKID

Logic

  1. The frontend (app.tasksource.io) calls the API (api.tasksource.io/accept-work-result/TASK-ID)

  2. the backend should now set a field in the task document (workResultIsAccepted = true)

  3. change task document databaseStatus into "closed".

  4. call the gernreate invoiced API ()

  5. Send First Email:

    • to_email_adress = email_of_assigned_person

    • template_name = "work-result-accepted->developer"

    • data = {taskData: taskData, taskId: taskId}

  6. Send Second Email:

    • to_email_adress = email_of_task_creator

    • template_name = "work-result-accepted->creator"

    • data = {taskData: taskData, taskId: taskId}

✅
https://desent-solutions-gmbh.gitbook.io/api-documentation/step-4-taskflow/generate-invoice