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."
    }
}

Last updated