Skip to content
Logo MoneyGo

Activation Info

This endpoint retrieves information needed for activating a voucher, including the calculated amount that will be credited to the wallet after commission fees are deducted. The response helps users understand the net amount they will receive before proceeding with the actual voucher activation.

Important Notes:

  • USD Wallets Only: Only USD wallets are allowed for voucher activation. Ensure your wallet currency is USD before making the request.

  • User Authorization: Valid bearer token is required. The user must not be blocked.

  • Voucher Validation: The voucher must be valid, not expired, and in awaiting activation status.

  • User Type Restriction: Partners can only activate merchant vouchers, and merchants can only activate partner vouchers.

  • Commission Calculation: The system calculates commission based on user type and deducts it from the voucher amount.

  • Method: POST
  • URL: https://api.money-go.com/api/vouchers/activation/info
  • Headers:
  • Authorization: Bearer YOUR_ACCESS_TOKEN
  • Content-Type: application/json


The following JSON body must be sent with the POST request:

{
"voucher_number": "1001",
"voucher_code": "VCH-ABC123-XYZ789-DEF456-GHI012",
"wallet_to": "U123456"
}
FieldTypeRequiredDescription
voucher_numberstringYesThe voucher number (internal ID) to activate.
voucher_codestringYesThe voucher activation code (32-character code).
wallet_tostringYesYour USD wallet number to which funds will be credited.
Terminal window
curl -X POST "https://api.money-go.com/api/vouchers/activation/info" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"voucher_number": "1001",
"voucher_code": "VCH-ABC123-XYZ789-DEF456-GHI012",
"wallet_to": "U123456"
}'
{
"voucher_number": "1001",
"voucher_code": "VCH-ABC123-XYZ789-DEF456-GHI012",
"voucher_amount": 100.00,
"voucher_currency": "USD",
"fee_percent": 1.5,
"wallet_amount": 98.50,
"wallet_currency": "USD",
"status": 0,
"date_created": "2024-01-15T10:00:00Z",
"expired_at": "2024-04-15T10:00:00Z"
}
FieldTypeDescription
voucher_numberstringThe voucher number (internal ID).
voucher_codestringThe voucher activation code (decrypted for display).
voucher_amountnumberThe original voucher amount.
voucher_currencystringThe voucher currency (always “USD”).
fee_percentnumberThe commission percentage charged by MoneyGo for activation.
wallet_amountnumberNet amount to be credited to wallet (voucher - commission).
wallet_currencystringThe currency of the destination wallet.
statusnumberVoucher status (0 = awaiting activation, 1 = activated, 2 = expired, 3 = cancelled).
date_createdstringISO 8601 timestamp when the voucher was created.
expired_atstringISO 8601 timestamp when the voucher expires.

When a POST request is made to the /api/vouchers/activation/info endpoint, the API may return error responses with HTTP status codes 401 or 422 if any validation fails. Below is a table summarizing the possible error responses:

Error CodeError MessageDescription
401UnauthorizedMissing or invalid bearer token.
422Voucher activation disabledVoucher activation is currently disabled.
422Voucher invalidInvalid voucher number or activation code.
Transaction Status: Related transaction must have status = 3 (“Completed”).
Type Validation: Partners can only activate merchant vouchers (type = 2), Merchants can only activate partner vouchers (type = 1).
Creator Status: Voucher creator is blocked.
422Voucher closedVoucher already activated or expired.
422Only USD wallet allowedOnly USD wallets are allowed for voucher activation.
422Wallet to not existsThe destination wallet (wallet_to) does not exist or is inactive (e.g., deleted or in status NEW).
422User is blockedThe user account is blocked. Please check the “translation” field for more details (e.g., "server_error.recipient_account_is_blocked").
  1. Bearer Token Validation: Valid access token is required
  2. Voucher Existence: The voucher must exist with the provided number and code
  3. Voucher Secret: The provided voucher code must match the stored encrypted secret
  4. User Status: Both the activating user and voucher creator must not be blocked
  5. Voucher Status: Voucher must be in status 0 (awaiting activation)
  6. Expiration Check: Voucher must not be expired (current time < expired_at)
  7. Transaction Status: Associated transaction must be in status 3 (completed)
  8. Cross-Type Activation:
    • Partners can only activate merchant vouchers (type = 2)
    • Merchants can only activate partner vouchers (type = 1)
  9. Wallet Ownership: The specified wallet must belong to the authenticated user
  10. Currency Restriction: Only USD wallets are allowed for voucher activation
  • Type 1: Partner vouchers (can only be activated by merchants)
  • Type 2: Merchant vouchers (can only be activated by partners)

Before providing activation information, the system validates:

  • Voucher Status: Must be 0 (awaiting activation)
  • Expiration: Automatically updates expired vouchers to status 2
  • Transaction Integrity: Verifies the underlying transaction is completed

Important: This endpoint only provides calculation information. To actually activate the voucher, you’ll need to use a separate voucher activation confirmation endpoint after reviewing the net amount presented by this endpoint.