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. Admin

Support

PreviousMy ProfileNextBuyers

Last updated 14 days ago

Get Support Tickets

get

This API retrieves a list of support tickets based on the provided 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 tickets.

Example: refund
countbooleanOptional

Flag to count the number of tickets matching the query.

Example: true
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the support tickets
application/json
500
Failed to retrieve support tickets
application/json
get
GET /backend/api/support-ticket HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
{
  "status": "1",
  "message": "Support tickets retrieved successfully",
  "data": [
    {
      "createdBy": "admin",
      "createdDate": "2025-04-01T10:00:00Z",
      "modifiedBy": "admin",
      "modifiedDate": "2025-04-01T10:30:00Z",
      "id": 123,
      "refId": "REF123",
      "userId": "user01",
      "userType": "customer",
      "categoryId": 1,
      "subCategoryId": 1,
      "subject": "Refund Request",
      "description": "Request for a refund on order #XYZ",
      "isActive": true,
      "isDelete": false,
      "status": "open",
      "ticketCategory": {
        "createdBy": "admin",
        "createdDate": "2025-04-01T10:00:00Z",
        "modifiedBy": "admin",
        "modifiedDate": "2025-04-01T10:30:00Z",
        "id": 1,
        "categoryName": "Refund",
        "parentCategoryId": 0,
        "isActive": true,
        "isDelete": false
      }
    }
  ]
}

Get Ticket Details

get

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

Path parameters
idintegerRequired

Ticket ID

Example: 123
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the ticket details
application/json
500
Failed to retrieve ticket details
application/json
get
GET /backend/api/support-ticket/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
{
  "status": 1,
  "message": "Ticket details retrieved successfully",
  "data": {
    "createdBy": "admin",
    "createdDate": "2025-04-01T10:00:00Z",
    "modifiedBy": "admin",
    "modifiedDate": "2025-04-01T10:30:00Z",
    "id": 123,
    "refId": "TICKET123",
    "userId": "user01",
    "userType": "customer",
    "categoryId": 1,
    "subCategoryId": 1,
    "subject": "Refund Request",
    "description": "Refund requested for order #XYZ",
    "isActive": true,
    "isDelete": false,
    "status": "open",
    "ticketMessage": [
      {
        "createdBy": "user01",
        "createdDate": "2025-04-01T10:00:00Z",
        "modifiedBy": "admin",
        "modifiedDate": "2025-04-01T10:30:00Z",
        "id": 456,
        "ticketId": 123,
        "senderId": "user01",
        "senderType": "customer",
        "message": "Can you please update on my refund request?",
        "sentAt": "2025-04-01T10:00:00Z",
        "isActive": true,
        "isDelete": false,
        "createdByType": "customer",
        "modifiedByType": "admin",
        "ticketAttachments": []
      }
    ]
  }
}

Get Ticket Logs

get

This API retrieves a list of ticket logs based on the provided query parameters.

Query parameters
limitintegerOptional

The number of logs to retrieve.

Example: 10
offsetintegerOptional

The offset for pagination.

Example: 0
countintegerOptional

The total count of logs (if you want just the count of records).

Example: 0
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved ticket logs
application/json
500
Failed to retrieve ticket logs
application/json
get
GET /backend/api/support-ticket/ticket-logs HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
{
  "status": "1",
  "message": "Successfully retrieved ticket logs",
  "data": [
    {
      "createdBy": "user1",
      "createdDate": "2025-04-21T00:00:00Z",
      "modifiedBy": "user2",
      "modifiedDate": "2025-04-21T01:00:00Z",
      "id": 1,
      "ticketId": 123,
      "actionTaken": "Updated ticket status",
      "actionBy": "admin",
      "actionByType": "system",
      "actionAt": "2025-04-21T01:00:00Z",
      "isActive": true,
      "isDelete": false,
      "createdByType": "user",
      "modifiedByType": "admin"
    }
  ]
}
  • GETGet Support Tickets
  • GETGet Ticket Details
  • POSTAdd Message and Attachments to Ticket
  • PUTUpdate Ticket Status
  • GETGet Ticket Logs

Add Message and Attachments to Ticket

post

This API allows users to add a new message and attachments to an existing support ticket based on the provided ticket ID.

Path parameters
idintegerRequired

Ticket ID

Example: 123
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
messagestringOptionalExample: Can you provide an update on my request?
Responses
200
Successfully added message and attachments to the ticket
application/json
500
Failed to add message and attachments to the ticket
application/json
post
POST /backend/api/support-ticket/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 139

{
  "message": "Can you provide an update on my request?",
  "attachments": [
    {
      "fileName": "attachment1.pdf",
      "filePath": "/uploads/attachment1.pdf"
    }
  ]
}
{
  "status": 1,
  "message": "Message and attachments added successfully",
  "data": {
    "ticketId": 123,
    "message": "Can you provide an update on my request?",
    "attachments": [
      {
        "fileName": "attachment1.pdf",
        "filePath": "/uploads/attachment1.pdf"
      }
    ]
  }
}

Update Ticket Status

put

This API allows users to update the status of an existing support ticket based on the provided ticket ID.

Path parameters
idintegerRequired

Ticket ID

Example: 123
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
statusintegerOptionalExample: 1
Responses
200
Successfully updated ticket status
application/json
500
Failed to update ticket status
application/json
put
PUT /backend/api/support-ticket/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 12

{
  "status": 1
}
{
  "status": 1,
  "message": "Ticket status updated successfully",
  "data": {
    "id": 123,
    "status": 2
  }
}