Skip to main content

Merchant API

This API provides information about the merchant and allows for transaction searches. With these endpoints, you can retrieve merchant profile data and search for specific transactions using their unique identifiers.

Endpoints

Retrieve Merchant Information

/api/v1/merchant/me

Provides a concise summary of the registered merchant’s corporate and financial profile. The response includes key data such as tax ID, electronic contact information, operating currency, and current e-wallet balance.

Request Headers

Token-Top
string
required
Token for authentication

Response

code
string
required
Response code (e.g., “01”)
status
string
required
Status of the response (e.g., “SUCCESS”)
message
string
Additional message about the response
data
object
required
curl --request GET 'https://api-empresas.staging.tumipay.co/production/api/v1/merchant/me' \
--header 'Token-Top: your_auth_token'
{
  "code": "01",
  "status": "SUCCESS",
  "message": "",
  "data": {
    "name": "Acme Corporation",
    "nit": "2523423",
    "email": "[email protected]",
    "currency": "COP",
    "wallet": 954943500
  }
}

Search Transactions

/api/v1/transaction/{ticket}

Search for transaction details using either the ticket provided by TumiPay or the reference supplied by the merchant. The “ticket” parameter accepts both the TumiPay ticket and the merchant’s reference for payin or payout transactions.

Request Headers

Token-Top
string
required
Token for authentication

Request Body

ticket
string
required
Ticket or reference of the transaction (e.g., “1740ed7e-bbab-11ee-8335-02530a7dec0f”)

Response

code
string
required
Response code (e.g., “01”)
status
string
required
Status of the transaction (e.g., “SUCCESS”)
data
object
required
curl --request POST 'https://api-empresas.staging.tumipay.co/production/api/v1/transaction/{ticket}' \
--header 'Token-Top: your_auth_token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ticket": "1740ed7e-bbab-11ee-8335-02530a7dec0f"
}'
{
  "code": "01",
  "status": "SUCCESS",
  "data": {
    "ticket": "41ac80c3-2f50-11ef-a534-02530a7dec0f",
    "reference": "uel7aWiavpwR8uXBkqMH3AiC165855",
    "amount": 5000000,
    "currency": "COP",
    "type_transaction": "Deposit",
    "customer": {
      "legal_doc_type": "CC",
      "legal_doc": "9012286480",
      "phone_code": "57",
      "phone_number": "3216132616",
      "email": "[email protected]",
      "full_name": "3013540830"
    },
    "status": "APPROVED",
    "response_message": "Transaction approved",
    "date": "2024-06-20 16:58:55"
  }
}