Spurtcommerce
DocumentAPI ReferenceAdd-ons
API Reference
API Reference
  • About Spurtcommerce APIs
  • Spurtcommerce
    • Admin API
      • Admin
        • Authentication
        • My Profile
        • Support
      • Buyers
        • Manage Buyer
      • Chat
      • CMS
        • Manage Banner
        • Manage Blogs
        • Manage Pages
        • Manage SEO
      • Dashboard
      • Marketing
        • Manage Cross Selling
          • Related Products
        • Manage Promotions
          • Coupon
      • Marketplace
        • Manage Products
        • Manage Sales
        • Manage Settlements
        • Product Configuration
        • Reports
      • Sellers
        • Seller
        • Seller Group
        • Seller KYC Request
      • Settings
        • Add-ons
        • Add-ons Product Attributes
        • Localization
        • Order Fulfilment Status
        • Personalise
        • Site Settings
        • Store Settings
        • System
        • User and Permission
        • Support-Category
    • Store API
      • Account Settings
        • Customer
        • My Order
        • My Quotation
        • My Wishlist
        • Profile
        • Support
      • Checkouts
      • Store
        • Admin Contact
        • Categories
        • Home
        • Product Detail Page
    • Vendor API
      • Page 1
      • Catalogue
        • Bulk Product Imports
          • Custom
          • Standard
        • Common Product
        • Data Export
        • Pricing
        • Product Localisation
        • Product List
        • Product Variants
        • Related Products
      • CRM
        • Customer
        • Customer Group
        • Question and Answer
        • Rating and Review
      • Dashboard
      • Marketing
      • Payments
        • Archeived Payments
        • Earnings
        • Settlements
      • Profile
        • Account Settings
          • My Business
          • My KYC
          • My Profile
          • My Shop
          • Personalised Setting
        • Chat
        • Vendor
        • Support
      • Reports
      • Sales
        • Archeive Orders
        • Back Orders
        • Failed Orders
        • Orders
        • Quotation Request
        • Stock Update
        • Variant Stock Update
      • Supplier
        • Contact
        • Supplier
Powered by GitBook
On this page
  1. Spurtcommerce
  2. Admin API
  3. Settings

Support-Category

PreviousUser and PermissionNextStore API

Last updated 14 days ago

Get Ticket Category by ID

get

This API retrieves a specific support ticket category based on the provided category ID.

Path parameters
idintegerRequired

The unique ID of the ticket category.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the ticket category
application/json
500
Failed to retrieve ticket category
application/json
get
GET /backend/api/support-ticket/ticket-category/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
{
  "status": "1",
  "message": "Ticket category retrieved successfully",
  "data": {
    "createdBy": "admin",
    "createdDate": "2025-04-01T10:00:00Z",
    "modifiedBy": "admin",
    "modifiedDate": "2025-04-01T10:30:00Z",
    "id": 123,
    "categoryName": "Shipping Issues",
    "parentCategoryId": 1,
    "isActive": true,
    "isDelete": false
  }
}

Delete Ticket Category

delete

This API allows users to delete a specific support ticket category based on the provided category ID.

Path parameters
idintegerRequired

The unique ID of the ticket category to be deleted.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully deleted the ticket category
application/json
500
Failed to delete ticket category
application/json
delete
DELETE /backend/api/support-ticket/ticket-category/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
{
  "status": "1",
  "message": "Ticket category deleted successfully"
}
  • GETGet Ticket Categories
  • POSTCreate Ticket Category
  • GETGet Ticket Category by ID
  • PUTUpdate Ticket Category
  • DELETEDelete Ticket Category

Get Ticket Categories

get

This API retrieves a list of support ticket categories based on the query parameters.

Query parameters
limitnumberOptional

Limit the number of results.

Example: 10
offsetnumberOptional

The offset from where to start the results.

Example: 0
keywordstringOptional

Search keyword for filtering categories.

Example: shipping
parentCategoryIdstringOptional

Filter by parent category ID.

Example: 1
statusstringOptional

Filter by category status.

Example: 1
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the ticket categories
application/json
500
Failed to retrieve ticket categories
application/json
get
GET /backend/api/support-ticket/ticket-category HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
{
  "status": "1",
  "message": "Ticket categories retrieved successfully",
  "data": [
    {
      "createdBy": "admin",
      "createdDate": "2025-04-01T10:00:00Z",
      "modifiedBy": "admin",
      "modifiedDate": "2025-04-01T10:30:00Z",
      "id": 123,
      "categoryName": "Shipping Issues",
      "parentCategoryId": 1,
      "isActive": true,
      "isDelete": false
    }
  ]
}

Create Ticket Category

post

This API creates a new support ticket category.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
categoryNamestringOptionalExample: Shipping Issues
parentCategoryIdintegerOptionalExample: 1
isActivebooleanOptionalExample: true
isDeletebooleanOptionalExample: false
Responses
201
Ticket category created successfully
application/json
400
Invalid request data
application/json
500
Failed to create ticket category
application/json
post
POST /backend/api/support-ticket/ticket-category HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 88

{
  "categoryName": "Shipping Issues",
  "parentCategoryId": 1,
  "isActive": true,
  "isDelete": false
}
{
  "status": "1",
  "message": "Ticket category created successfully",
  "data": {
    "id": 124,
    "categoryName": "Shipping Issues",
    "parentCategoryId": 1,
    "isActive": true,
    "isDelete": false
  }
}

Update Ticket Category

put

This API allows users to update a specific support ticket category based on the provided category ID.

Path parameters
idintegerRequired

The unique ID of the ticket category to be updated.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
categoryNamestringOptionalExample: Updated Category Name
statusnumberOptionalExample: 1
parentCategoryIdintegerOptionalExample: 1
Responses
200
Successfully updated the ticket category
application/json
500
Failed to update ticket category
application/json
put
PUT /backend/api/support-ticket/ticket-category/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 72

{
  "categoryName": "Updated Category Name",
  "status": 1,
  "parentCategoryId": 1
}
{
  "status": 1,
  "message": "Ticket category updated successfully",
  "data": {
    "createdBy": "admin",
    "createdDate": "2025-04-01T10:00:00Z",
    "modifiedBy": "admin",
    "modifiedDate": "2025-04-01T10:30:00Z",
    "id": 123,
    "categoryName": "Updated Category Name",
    "parentCategoryId": 1,
    "isActive": true,
    "isDelete": false,
    "categoryType": "general"
  }
}