Skip to main content
POST
/
v2
/
account
/
tickets
Create Ticket
curl --request POST \
  --url https://api.avenia.io:8443/v2/v2/account/tickets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "quoteToken": "<string>",
  "ticketBrlPixInput": {
    "remitterId": "<string>",
    "additionalData": "<string>"
  },
  "ticketBlockchainInput": {
    "walletAddress": "<string>",
    "permit": {
      "r": "<string>",
      "s": "<string>",
      "v": 123,
      "nonce": 123,
      "deadline": 123
    },
    "personal": {
      "signature": "<string>",
      "deadline": 123
    }
  },
  "ticketMarkupInput": {
    "markupWalletAddress": "<string>"
  }
}
'
{}

Create Ticket

POST request to /v2/account/tickets

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

subAccountId
string

Sub-account ID

Body

application/json
quoteToken
string
required
ticketBrlPixInput
object
required
ticketBlockchainInput
object
required
ticketMarkupInput
object
required

Response

Success

The response is of type object.