Payments API Reference

Complete API reference for managing payments and transactions programmatically.

Base URL
https://wapify.me/api/payments
Authentication

All requests require Bearer token authentication. Include the token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN
Available Endpoints
Quick Navigation
GET List Payments
https://wapify.me/api/payments

Retrieve a paginated list of payments.

Query Parameters
Parameter Tipo Descripción
page integer Page number (default: 1)
per_page integer Items per page (default: 20)
transaction_type string Filter by transaction type: income or expense
date_from date Filter payments from this date (YYYY-MM-DD)
date_to date Filter payments until this date (YYYY-MM-DD)
enterprise_id integer Filter by enterprise ID
Example Request
curl -X GET "https://wapify.me/api/payments?transaction_type=income&date_from=2024-01-01" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "success": true,
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 1,
        "date": "2024-01-15",
        "amount": 1000.00,
        "transaction_type": "income",
        "enterprise": {
          "id": 1,
          "name": "Example Corp"
        },
        "invoice": {
          "id": 1,
          "number": "INV-001"
        },
        "account": {
          "id": 1,
          "name": "Bank Account"
        },
        "type": {
          "id": 1,
          "name": "Bank Transfer"
        },
        "status": 2,
        "created_at": "2024-01-15T10:30:00Z"
      }
    ],
    "per_page": 20,
    "total": 100,
    "last_page": 5
  },
  "team": {
    "id": 1,
    "name": "My Team"
  },
  "user": {
    "id": 1,
    "name": "John Doe",
    "email": "john@example.com",
    "role": "admin"
  }
}
GET Get Payment
https://wapify.me/api/payments/{id}

Retrieve a single payment by ID.

Example Request
curl -X GET "https://wapify.me/api/payments/1" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"