AWorld Lab
About
API Reference
API Reference
  • App API
  • Dashboard API
  • Overview
API Download
API Download
  • App API
  • Dashboard API
AWorld.orgAWorld Trust
About
API Reference
API Reference
  • App API
  • Dashboard API
  • Overview
API Download
API Download
  • App API
  • Dashboard API
AWorld.orgAWorld Trust
AWorld.org
  1. VirtualTransactions
  • ActivityLogs
    • Create activity log
  • Analytics
    • Get community metrics
  • Learning Paths
    • Items
      • List learning path items
    • List learning paths
    • Get learning path by ID
  • Learning Groups
    • Tags
      • List learning group tag assignments
      • Get learning group tag assignment
    • Translation
      • Get learning group translation
    • List learning groups
    • Get learning group by ID
  • Learning Path Assignments
    • Items
      • List learning path assignment items
    • Tags
      • List learning path assignment tags
      • Get learning path assignment tag by ID
    • Translation
      • Get learning path assignment translation
    • List learning path assignments
    • Get learning path assignment by ID
  • Missions
    • List missions
    • Get mission
  • Quizzes
    • Tags
      • List quiz tags
      • Get quiz tag by ID
    • Translation
      • Get quiz translation
    • List quizzes
    • Get quiz by ID
    • Submit quiz answers
  • Runtime Leaderboards
    • List runtime leaderboards
    • Get a runtime leaderboard by ID
    • Get leaderboard rankings
    • Get current user's ranking
  • Slides
    • TagAssignments
      • List slide tags
      • Get slide tag by ID
    • Translation
      • Get slide translation
    • List slides
    • Get slide by ID
    • Submit slide completion
  • Stories
    • TagAssignments
      • List story tags
      • Get story tag by ID
    • Translation
      • Get story translation
    • List stories
    • Get story by ID
    • Submit story completion
  • Streaks
    • List streaks
  • Users
    • Tags
      • List current user tags
      • Get current user tag by ID
    • Get current user
    • Get current user principal
    • Update current user
    • Get current user learning stats
  • VirtualBalances
    • List virtual balances
    • Get virtual balance by currency ID
  • VirtualTransactions
    • List virtual transactions
      GET
    • Create virtual transaction
      POST
    • Get virtual transaction by ID
      GET
    • Redeem virtual transaction
      POST
  • WorkspaceConfiguration
    • Get workspace configuration
About
API Reference
API Reference
  • App API
  • Dashboard API
  • Overview
API Download
API Download
  • App API
  • Dashboard API
AWorld.orgAWorld Trust
About
API Reference
API Reference
  • App API
  • Dashboard API
  • Overview
API Download
API Download
  • App API
  • Dashboard API
AWorld.orgAWorld Trust
AWorld.org
  1. VirtualTransactions

Create virtual transaction

POST
https://api.eu-west-1.aworld.cloud/app/v1/virtual-transactions
Creates a new virtual currency transaction.
This endpoint allows users to initiate transactions such as purchases or transfers using virtual currency.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/jsonRequired

Examples

Responses

🟢201Created
application/json
Virtual transaction created successfully
Body

🟠400Bad Request
🟠401Unauthorized
🟠409409
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.eu-west-1.aworld.cloud/app/v1/virtual-transactions' \
--header 'x-idempotency-key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "transactions": [
        {
            "virtualCurrencyId": "string",
            "redemptionMode": "AUTO",
            "additionalData": {
                "property1": "string",
                "property2": "string"
            },
            "amount": 1,
            "expiresAt": "2019-08-24T14:15:22.123Z",
            "destinationUserId": "string",
            "virtualTransactionGroupId": "string"
        }
    ]
}'
Response Response Example
{
    "transactions": [
        {
            "userId": "string",
            "virtualCurrencyId": "string",
            "virtualTransactionId": "string",
            "virtualTransactionGroupId": "string",
            "redemptionGroupId": "string",
            "redemptionMode": "AUTO",
            "state": "PENDING",
            "direction": "CREDIT",
            "initiatorType": "USER",
            "initiator": "string",
            "counterpartType": "USER",
            "counterpart": "string",
            "additionalData": {
                "property1": "string",
                "property2": "string"
            },
            "amount": 0,
            "expiresAt": "2019-08-24T14:15:22.123Z",
            "redeemedAt": "string",
            "accountId": "stringstri",
            "workspaceId": "stringstri",
            "sourceRegion": "us-east-1",
            "createdAt": "2019-08-24T14:15:22.123Z",
            "updatedAt": "2019-08-24T14:15:22.123Z"
        }
    ]
}
Modified at 2026-02-10 10:37:54
Previous
List virtual transactions
Next
Get virtual transaction by ID
Built with