AHUER.COM API Service
  1. Trade
AHUER.COM API Service
  • Authentication
    • User Sign In
      POST
    • User Sign Out
      GET
    • Get Current Token Info
      GET
    • Get Current User Info
      GET
    • User Sign Up
      POST
    • SuperTokens SignIn
      POST
    • SuperTokens SignUp
      POST
    • SuperTokens SignOut
      POST
    • Test Rbac Permissions
      POST
  • User
    • Get Me Info
      GET
    • Update Description
      POST
    • Add Contact Info
      POST
    • Get Contact Info
      GET
    • Remove Contact Info
      DELETE
    • Remove All Contact Info
      DELETE
    • Remove User
      DELETE
  • Item
    • Get Items Of User
      GET
    • Get Items Of User
      POST
    • Get Item Detailed Info
      GET
    • Add Item
      POST
    • Update Item
      POST
    • Remove All Items
      DELETE
    • Remove Items
      DELETE
    • Add Question
      POST
    • Get Questions Of Item
      GET
    • Answer Question
      POST
    • Delete Question
      DELETE
  • Favourite
    • Get Fav Items
    • Add Fav Item
    • Remove Favourite Items
    • Remove All Favourite Items
  • Trade
    • Start Transaction
      POST
    • Accept Transaction
      GET
    • Get Transactions
      GET
    • Cancel Transaction
      POST
    • Confirm Transaction
      GET
  • Notification
    • Send Notifications
    • Get User Notifications
    • Get User Notification By Id
    • Mark Notification Read
    • Read All Notifications
  • SuperToken
    • EmailPassword Recipe
      • signIn
      • signUp
      • emailExistsDepr
      • emailExists
      • passwordResetToken
      • passwordReset
    • TOTP Recipe
      • listTOTPdevices
      • createTOTPDevice
      • removeTOTPDevice
      • verifyTOTPDevice
      • verifyTOTP
    • MultiFactorAuth Recipe
      • getMFAInfo
    • Passwordless Recipe
      • passwordlessSignInUpStart
      • passwordlessSignInUpResend
      • passwordlessSignInUpConsume
      • passwordlessEmailExistsDepr
      • passwordlessEmailExists
      • passwordlessPhoneNumberExistsDepr
      • passwordlessPhoneNumberExists
    • Session Recipe
      • signout
      • refresh
    • ThirdParty Recipe
      • signInUp
      • authorisationUrl
      • thirdPartyCallbackApple
    • Multitenancy Recipe
      • loginmethods
    • EmailVerification Recipe
      • verifyEmailToken
      • verifyEmail
      • getVerifyEmail
    • JWT Recipe
      • getJWKS
    • OpenId Recipe
      • getOpenIdDiscoveryConfiguration
    • App API
      • exampleAppAPI
  • Search
    • Search Items By Name
    • Search Items By Tags
  1. Trade

Cancel Transaction

Develop Env
http://localhost:8000
Develop Env
http://localhost:8000
POST
/trade/cancel
Cancel an active transaction or reject a pending transaction

Request

Body Params application/json

Example
{
    "trade_id": 0
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8000/trade/cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
    "trade_id": 0
}'

Responses

🟢200OK
application/json
Successful Response
Body

Example
{
    "trade_id": 0,
    "buyer": {
        "user_id": 0,
        "campus_id": "string",
        "username": "string",
        "description": "string",
        "created_time": 0
    },
    "item": {
        "item_id": 0,
        "name": "string",
        "description": "string",
        "created_time": 0,
        "price": 0,
        "state": "hide",
        "tags": [
            {
                "tag_id": 0,
                "tag_type": "string",
                "name": "string"
            }
        ],
        "tag_name_list": [
            "string"
        ]
    },
    "created_time": 0,
    "accepted_time": 0,
    "confirmed_time": 0,
    "completed_time": 0,
    "state": "pending",
    "cancel_reason": "seller_rejected"
}
🟠422Parameter Error
Modified at 2024-12-11 01:16:41
Previous
Get Transactions
Next
Confirm Transaction
Built with