Authenticating the API
curl -X "POST" "https://api.sandbox.txn.pro/api/public/v1/invoices" \
-H 'Content-Type: application/vnd.api+json' \
-H 'Authorization: Bearer txn_cmp_F41bbUWxPR2FCPA3KK5t1NadFE9Ghn' \
-d $'{
"data": {
"type": "invoices",
"attributes": {
"amountBilled": "1000",
"billedCurrency": "EUR",
"chargedCurrency": "USDT",
"network": "TTRX:USDT",
"reference": "37ac503d-4e1f-458e-8407-033ab8bd1e5c"
}
}
}'{
"errors": [
{
"status": 401,
"title": "HTTP Token: Access denied.",
"code": "unauthorized"
}
]
}Last updated