SSP Wallet
  • Welcome to SSP Wallet
  • Getting Started with SSP Wallet
    • Change Language
    • Switch Chain
    • Wallet
      • Retrieve SSP Wallet Seed Phrase
      • Create a New Wallet
      • Restore Wallet Using Seed Phrase
      • Create Multiple Wallet
      • Delete a Wallet
      • Retrieving Your Wallet Address
    • Transaction
      • Buy / Sell
      • Swap
      • Send
      • Receive
      • Export Transactions
      • View Transactions
    • Token
      • Add Token to Main Screen
      • Remove Token from Main Screen
    • Custom Tokens
      • Add Custom Token
      • Delete Custom Token
    • Contacts
      • Create New Contact
      • Edit Contact
      • Delete Contact
    • Logout Your SSP Wallet
  • GETTING STARTED WITH SSP KEY
    • Install SSP Key
    • Create a New Key and Syncing to SSP Wallet
    • Restore Key Using Seed Phrase and Syncing to SSP Wallet
    • Retrieving Your SSP Key Seed Phrase
    • Using Your SSP Key For Syncing
  • GETTING STARTED WITH SSP RELAY DEVELOPMENT
    • Overview
    • Environment Requirements
    • Project Installation
    • Project Structure 0verview
    • Project Folders
      • Config
      • Helpers
      • Logs
      • Src
        • apiServices
        • lib
        • services
        • routes.ts
          • GET /v1/sync
          • GET /v1/action
          • POST /v1/sync
          • POST /v1/token
          • POST /v1/action
          • GET /v1/rates
          • GET /v1/networkfees
          • POST /v1/ticket
          • GET /v1/tokeninfo
          • GET /v1/services
          • POST /v1/sign
      • Tests
        • unit
  • GETTING STARTED WITH SSP WALLET DEVELOPMENT
    • Overview
    • Environment Requirements
    • Project Installation
    • SSP Wallet API
    • Project Structure Overview
    • Project Folders
      • Public
        • scripts
      • Patches
      • Src
        • assets
        • components
        • contexts
        • hooks
        • lib
        • pages
        • storage
        • store
        • translations
      • Tests
        • lib
  • GETTING STARTED WITH SSP KEY DEVELOPMENT
    • Overview
    • Environment Requirements
      • For Mac Users Only
    • Project Installation
    • Project Structure Overview
    • Project Folders
      • Types
      • Src
        • assets
        • components
        • contexts
        • hooks
        • lib
        • navigators
        • screens
        • storage
        • store
        • themes
        • translations
      • Tests
        • lib
Powered by GitBook
On this page
  1. GETTING STARTED WITH SSP RELAY DEVELOPMENT
  2. Project Folders
  3. Src
  4. routes.ts

POST /v1/ticket

Create ticket using data specified in the request body

POST /v1/ticket

Headers

Name
Value

Content-Type

application/json

X-Challenge

Mandatory header for creating ticket

X-Forwarded-For

Host where the message came from

Body

Parameter
Description

description

ticket description

subject

ticket subject

type

ticket type

email

email address

{
    "description": "sample description",
    "subject": "sample subject",
    "type": "inquiry",
    "email": "sample@email.com",
}

Request

curl --location 'https://relay.sspwallet.io/v1/ticket' \
--header 'Content-Type: application/json' \
--header 'X-Challenge: sample' \
--header 'X-Forwarded-For: 103.0.113.165' \
--data-raw '{
    "description": "sample description", 
    "subject": "sample subject", 
    "type": "inquiry", 
    "email": "sample@email.com" 
}'

Response

{
    "status": "success",
    "data": {
        "info": "Ticket created successfully."
    }
}
// List of messages:
// No description specified
// No subject specified
// No type specified
// No email specified
// Invalid request
// Description is too long
// Subject is too long
// Email is invalid
// Type is too long
// Ticket already submitted

{
    "status": "error",
    "data": {
        "name": "Error",
        "message": "<message>"
    }
}
PreviousGET /v1/networkfeesNextGET /v1/tokeninfo

Last updated 3 months ago