Transactions

Service group for viewing a transaction, checking balances, creating a new transaction, and more.

Service that returns the available balances in the account.

POST /api/v1/commerces/getBusiness

Request Body

{
  "statusCode":200,
  "message": "Sucessful",
  "data": { 
    "Business": {
      "balance":12000,
      "profits":2300
    }
  },
  "_channel": "web"
}

Service that returns all the information about a transaction.

POST /api/v1/transactions/find

This service returns information about a transaction if it was carried out within the last two days.

Request Body

{
  "statusCode":200,
  "message": "Exitoso",
  "data": {
    "Transaction": {
      "id": 1,
      "amount": 5000,
      "currency": "COP",
      "costs": 0,
      "prevBalance": 30000,
      "newBalance": 25000,
      "createdAt": "DD/MM/YY HH:mm",
      "Product": {
        "id": 1,
        "name": "Exitoso",
      },
      "TransactionStatus": {
        "id": 1,
        "name": "Exitoso",
        "color": "red"
      },
      "Person": {
        "document": "",
        "cellphone": ""
      },
      "PaymentMethod": {
          "id": 1,
          "image": "",
          "name": "Saldo"
        }
      }
    },
  "_channel": "web"
}

Status transaction

Sell a product

Service used to initiate a sale

POST /api/v1/transactions/sell

Request Body

{
  "message": "Exitoso",
  "_channel": "WS",
  "statusCode": 200,
  "data": {
    "transactionId": "5d2fa66e-4c73-4f86-b698-6bd5fd5284b1"
  }
}

Inquire / Quote

Service that allows for quoting and obtaining the sale value

POST /api/v1/transactions/query

It is recommended to always consume this service, even if the product does not require a prior inquiry.

Request Body

Última actualización