Skip to main content
POST
/
api
/
public
/
v1
/
payments
curl --request POST \
  --url https://app.tagadapay.com/api/public/v1/payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pagination": {
    "page": 1,
    "pageSize": 20
  }
}
'
{
  "payments": [
    {
      "id": "pay_123xyz",
      "amount": 2999,
      "currency": "USD",
      "status": "succeeded",
      "createdAt": "2024-03-20T10:30:00Z",
      "customer": {
        "email": "[email protected]",
        "firstName": "John",
        "lastName": "Doe"
      },
      "paymentInstrument": {
        "card": {
          "last4": "4242",
          "brand": "visa",
          "expYear": 2025,
          "expMonth": 12
        }
      },
      "transactions": [
        {
          "id": "txn_123",
          "type": "purchase",
          "status": "succeeded",
          "amount": 2999,
          "currency": "USD"
        }
      ]
    }
  ],
  "total": 1,
  "pageCount": 1
}

Authorizations

Authorization
string
header
required

Enter your API key as: Bearer your-api-key

Body

application/json
pagination
object
sortBy
object
filters
object
useCursor
boolean
default:false

Enable keyset pagination. IMPORTANT: when using keyset pagination, the payments will be sorted by createdAt in descending order. You cannot change this for now and should not be using sortBy option

cursor
string

Keyset pagination cursor, you can get this from the previous response 'nextCursor' attribute

Response

Successful response