POST
/
nps
/
ticket
/
tx
cURL
curl --request POST \
  --url https://apidev.nusd.me/nps/ticket/tx \
  --header 'BIZ-API-KEY: <api-key>' \
  --header 'Biz-Api-Nonce: <api-key>' \
  --header 'Biz-Api-Signature: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "transaction_id": "8da460a3-75f8-489d-a099-802c38a702b3"
}
'
{
  "status": 0,
  "data": {
    "transaction_id": "8da460a3-75f8-489d-a099-802c38a702b3",
    "ticket_id": "3792b891-2066-41d6-be30-051b917cdd75"
  },
  "msg": "<string>"
}

Authorizations

BIZ-API-KEY
string
header
required

API key. Must be included in the request header.

Biz-Api-Nonce
string
header
required

Timestamp. Must be included in the request header.

Biz-Api-Signature
string
header
required

Signature string. Must be included in the request header.

Body

application/json
transaction_id
string
required

Transaction ID.

Example:

"8da460a3-75f8-489d-a099-802c38a702b3"

abnormals
string

Fields with exceptions or mismatches. Separate multiple values with commas, e.g. amount,fee,status.

Example:

"amount,status"

desc
string

Exception description.

Example:

"amount and status not match"

Response

Request succeeded. Returns the ticket ID.

status
integer

Status code. 0 indicates success.

Example:

0

data
object

Ticket creation result.

msg
string

Error message. Present when status is non-zero.