Paytree API
Back to website
  • Introduction
  • Authentication
  • Webhooks
  • API Methods
    • Payment Intents
    • Payments
  • Refunds
  • Plugins & SDKs
    • Integrations
      • Wordpress
Powered by GitBook
On this page
  1. API Methods

Payments

PreviousPayment IntentsNextRefunds

Last updated 8 days ago

Payment objects represent your customer's payment transactions. You can use them in conjunction with Payment Intents to process payments, or store them on Customer objects to retain transaction details and track any future changes, such as status updates.

Get all payments

This method retrieves a list of all payment transactions, including those that are completed, failed, or still in the post-initiation stage, providing an overview of all payment statuses.

Get payment

This method fetches detailed information about a specific payment transaction using its unique identifier, allowing you to retrieve the current status, amount, and other relevant details for that payment.

get
Authorizations
Query parameters
pageintegerOptional

A page number within the paginated result set.

Responses
200Success
application/json
get
GET /v1/transaction/payment/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "amount": "text",
      "fee": "text",
      "refunded": "text",
      "currency": "text",
      "status": "pending",
      "refund": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "amount": "text",
          "currency": "text",
          "payment": "123e4567-e89b-12d3-a456-426614174000",
          "gateway_id": "text",
          "created": "2025-05-09T10:07:35.065Z"
        }
      ],
      "created": "2025-05-09T10:07:35.065Z"
    }
  ]
}
get
Authorizations
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /v1/transaction/payment/{id}/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "amount": "text",
  "fee": "text",
  "refunded": "text",
  "currency": "text",
  "status": "pending",
  "refund": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "amount": "text",
      "currency": "text",
      "payment": "123e4567-e89b-12d3-a456-426614174000",
      "gateway_id": "text",
      "created": "2025-05-09T10:07:35.065Z"
    }
  ],
  "created": "2025-05-09T10:07:35.065Z"
}
  • Get all payments
  • GET/v1/transaction/payment/
  • Get payment
  • GET/v1/transaction/payment/{id}/