Back to Home

Documentation

Everything you need to know to get the most out of DiscountFlow. Find guides, tutorials, and API references.

Quick Start
API References
FAQs

API References

Overview

API References
/
API Endpoints
/
Mutations

Mutations

Object: ApprovalLevel

createApprovalLevel

mutation {
  createApprovalLevel(input: {
    name: "Manager"
    code: "MGR"
    rank: 2
    threshold_price_requested: 10000.00
    threshold_price_approved: 8000.00
    description: "Manager-level approvals"
  }) {
    id
    name
    code
    rank
  }
}

Required fields: name, code, rank

updateApprovalLevel

mutation {
  updateApprovalLevel(id: "01ABC123", input: {
    threshold_price_requested: 15000.00
  }) {
    id
    name
    threshold_price_requested
  }
}

deleteApprovalLevel

Permanently deletes the approval level.

mutation {
  deleteApprovalLevel(id: "01ABC123") {
    id
    name
  }
}