Execute token purchase

Execute an OPEN token purchase - exchange real currency for virtual tokens.

Request
Security:
tilia_auth (write_tokens)
path Parameters
token_exchange_id
required
string (TokenExchangeId) <= 36 characters

The virtual exchange ID. Must refer to an OPEN token exchange with direction=token_purchase

Example: vtok_2V2WX4AZZiE6eDoGb6coN0RuxIR
Responses
200

Successfully executed token purchase.

400

Invalid input

401

Unauthorized access.

403

Disallowed from transacting.

500

Service unavailable or server error.

post/v2/token/purchase/{token_exchange_id}
Request samples
curl -i -X POST \
  https://invoicing.tilia-inc.com/v2/token/purchase/:token_exchange_id \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Response samples
application/json
{
  • "status": "Success",
  • "payload": {
    }
}