Initiate a new token purchase - exchange real currency for virtual tokens.
Create Token Purchase request
Successfully created token purchase.
Invalid input
Unauthorized access.
Disallowed from transacting.
Service unavailable or server error.
{- "payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr",
- "amount": 250,
- "currency": "VCD",
- "destination_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "tax_inclusive": false,
- "location": {
- "type": "billing",
- "address": {
- "country": "US",
- "state": "OH",
- "postal_code": 45201
}
}
}
{- "status": "Success",
- "payload": {
- "token_exchange_id": "vtok_1y9CqqiLJ6s0W2hsPgQqLkvR4og",
- "account_id": "acct_2UU7yuHWGs2vwShyoUKeebMk5E5",
- "destination_wallet_id": "wal_2V2cKKKnzmnVvJCl02O0Bc9KnfV",
- "direction": "token_purchase",
- "invoice_id": "inv_24Fs1IP1xkYlqNY465chmHlymZm",
- "user_paid_amount": 250,
- "user_paid_currency": "USD",
- "user_received_amount": 250,
- "user_received_currency": "VCD",
- "exchange_rate": 100,
- "exchange_rate_direction": "usd_to_virtual",
- "tilia_fee_amount": 25,
- "integrator_fee_amount": 25,
- "fee_currency": "USD",
- "status": "OPEN",
- "created": "2006-01-02T15:04:05Z07:00",
- "updated": "2006-01-02T15:04:05Z07:00",
- "summary": {
- "total_amount": 250,
- "total_amount_usd": 250,
- "currency": "USD",
- "display_amount": "USD 2.50",
- "subtotal": {
- "total_amount": 250,
- "total_amount_usd": 250,
- "currency": "USD",
- "display_amount": "USD 2.50"
}, - "tax": {
- "total_amount": 0,
- "total_amount_usd": 0,
- "currency": "USD",
- "display_amount": "USD 0.00"
}
}
}
}