# Support

## Get Vendor Support Ticket Categories

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

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Vendor Support Ticket API","description":"APIs related to vendor support ticket management"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/vendor-support-ticket/ticket-category":{"get":{"tags":["Vendor Support Ticket API"],"summary":"Get Vendor Support Ticket Categories","description":"This API retrieves a list of vendor support ticket categories based on the provided query parameters.","operationId":"getVendorSupportTicketCategories","parameters":[{"name":"limit","in":"query","description":"Limit number of records.","required":false,"schema":{"type":"integer"}},{"name":"offset","in":"query","description":"Pagination offset.","required":false,"schema":{"type":"integer"}},{"name":"keyword","in":"query","description":"Search keyword.","required":false,"schema":{"type":"string"}},{"name":"parentCategoryId","in":"query","description":"Filter by parent category ID.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by status.","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Bearer token is required.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response with category list","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string"},"modifiedBy":{"type":"string"},"modifiedDate":{"type":"string"},"id":{"type":"string"},"categoryName":{"type":"string"},"parentCategoryId":{"type":"string"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"}}}}}}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}
```

## Get Vendor Support Tickets

> Retrieves a list of vendor support tickets based on query parameters.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Vendor Support Ticket API","description":"APIs related to vendor support ticket management"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/vendor-support-ticket":{"get":{"tags":["Vendor Support Ticket API"],"summary":"Get Vendor Support Tickets","description":"Retrieves a list of vendor support tickets based on query parameters.","operationId":"getVendorSupportTickets","parameters":[{"name":"limit","in":"query","description":"Limit the number of results.","required":false,"schema":{"type":"integer"}},{"name":"offset","in":"query","description":"Number of items to skip.","required":false,"schema":{"type":"integer"}},{"name":"keyword","in":"query","description":"Keyword to search tickets.","required":false,"schema":{"type":"string"}},{"name":"count","in":"query","description":"Flag to return only the count of tickets.","required":false,"schema":{"type":"integer"}},{"name":"Authorization","in":"header","required":true,"description":"Bearer token for authentication.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved vendor support tickets","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"},"data":{"type":"object","properties":{"categoryId":{"type":"integer"},"subCategoryId":{"type":"integer"},"refId":{"type":"string"},"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"userId":{"type":"integer"},"userType":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"id":{"type":"integer"}}}}}}}},"500":{"description":"Failed to retrieve vendor support ticket","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"status":{"type":"string"}}}}}}}}}}}
```

## Create Vendor Support Ticket

> Allows vendors to create a support ticket with optional attachments.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Vendor Support Ticket API","description":"APIs related to vendor support ticket management"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/vendor-support-ticket":{"post":{"tags":["Vendor Support Ticket API"],"summary":"Create Vendor Support Ticket","description":"Allows vendors to create a support ticket with optional attachments.","operationId":"createVendorSupportTicket","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"categoryId":{"type":"integer"},"subCategoryId":{"type":"integer"},"ticketId":{"type":"integer","nullable":true},"subject":{"type":"string"},"description":{"type":"string"},"message":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"fileName":{"type":"string"},"filePath":{"type":"string"}}}}},"required":["categoryId","subCategoryId","subject","description","message"]}}}},"parameters":[{"name":"Authorization","in":"header","required":true,"description":"Bearer token is required.","schema":{"type":"string"}}],"responses":{"200":{"description":"Vendor support ticket created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"},"data":{"type":"object","properties":{"ticketId":{"type":"integer"},"categoryId":{"type":"integer"},"subCategoryId":{"type":"integer"},"subject":{"type":"string"},"description":{"type":"string"},"message":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"fileName":{"type":"string"},"filePath":{"type":"string"}}}}}}}}}}},"500":{"description":"Failed to create vendor support ticket","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"status":{"type":"string"}}}}}}}}}}}
```

## Get Vendor Support Ticket Details

> Retrieves the details of a specific vendor support ticket by ID.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Vendor Support Ticket API","description":"APIs related to vendor support ticket management"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/vendor-support-ticket/{id}":{"get":{"tags":["Vendor Support Ticket API"],"summary":"Get Vendor Support Ticket Details","description":"Retrieves the details of a specific vendor support ticket by ID.","operationId":"getVendorSupportTicketDetails","parameters":[{"name":"id","in":"path","required":true,"description":"The ID of the vendor support ticket.","schema":{"type":"integer"}},{"name":"Authorization","in":"header","required":true,"description":"Bearer token for authentication.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved ticket details","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"},"data":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"modifiedBy":{"type":"string"},"modifiedDate":{"type":"string","format":"date-time"},"id":{"type":"integer"},"refId":{"type":"string"},"userId":{"type":"integer"},"userType":{"type":"string"},"categoryId":{"type":"integer"},"subCategoryId":{"type":"integer"},"subject":{"type":"string"},"description":{"type":"string"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"},"status":{"type":"string"},"ticketMessage":{"type":"array","items":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"modifiedBy":{"type":"string"},"modifiedDate":{"type":"string","format":"date-time"},"id":{"type":"integer"},"ticketId":{"type":"integer"},"senderId":{"type":"integer"},"senderType":{"type":"string"},"message":{"type":"string"},"sentAt":{"type":"string","format":"date-time"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"},"createdByType":{"type":"string"},"modifiedByType":{"type":"string"},"ticketAttachments":{"type":"array","items":{"type":"object"}}}}}}}}}}}},"500":{"description":"Failed to retrieve ticket details","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"status":{"type":"string"}}}}}}}}}}}
```

## Update Vendor Support Ticket Status

> Updates the status of a specific vendor support ticket by ID.

```json
{"openapi":"3.0.1","info":{"title":"SpurtV5","version":"1.0.0"},"tags":[{"name":"Vendor Support Ticket API","description":"APIs related to vendor support ticket management"}],"servers":[{"url":"http://139.59.67.17/backend/api"},{"url":"https://139.59.67.17/backend/api"}],"paths":{"/vendor-support-ticket/{id}":{"put":{"tags":["Vendor Support Ticket API"],"summary":"Update Vendor Support Ticket Status","description":"Updates the status of a specific vendor support ticket by ID.","operationId":"updateVendorSupportTicketStatus","parameters":[{"name":"id","in":"path","required":true,"description":"The ID of the vendor support ticket.","schema":{"type":"integer"}},{"name":"Authorization","in":"header","required":true,"description":"Bearer token for authentication.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"New status for the ticket (e.g., open, closed, resolved)."}},"required":["status"]}}}},"responses":{"200":{"description":"Ticket status updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"},"data":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"modifiedBy":{"type":"string"},"modifiedDate":{"type":"string","format":"date-time"},"id":{"type":"integer"},"refId":{"type":"string"},"userId":{"type":"integer"},"userType":{"type":"string"},"categoryId":{"type":"integer"},"subCategoryId":{"type":"integer"},"subject":{"type":"string"},"description":{"type":"string"},"isActive":{"type":"boolean"},"isDelete":{"type":"boolean"},"status":{"type":"string"}}}}}}}},"500":{"description":"Failed to update vendor support ticket status","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"status":{"type":"string"}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spurtcommerce.com/spurtapi/spurtcommerce/vendor-api/profile/support.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
