Pike13 For Developers
Get Started
Authentication
Core API
Reporting API
Webhooks API
Announcements

Core API Documentation

Transaction

A transaction is a payment or a refund recorded against one of the business's invoices. Transactions in every state are returned, including payments that are still in checkout and payments that failed. Requires permission to view client transactions.

Desk Only

GET /api/v2/desk/transactions

Returns a paginated list of the business's payments and refunds. See Pagination for the page and per_page parameters.

Show curl example

REQUEST
$ curl "https://mybiz.pike13.com/api/v2/desk/transactions?updated_since=2026-09-01T00:00:00Z&include_invoice=true&per_page=2" \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX"

RESPONSE
{
  "transactions": [
    {
      "id": 749,
      "invoice_id": 600,
      "currency_code": "USD",
      "amount_cents": 11200,
      "amount": "112.00",
      "error_message": null,
      "description": "Stored Visa 1111, 1/29",
      "payment_type_id": 3,
      "type": "Payment",
      "settled": true,
      "state": "completed",
      "uuid": "475bafff-189a-4c3c-ba14-a8ed9d593a32",
      "autobill": false,
      "external_transaction_id": "10392847561",
      "payment_type": "creditcard",
      "voided_at": null,
      "created_at": "2026-09-02T18:29:58Z",
      "updated_at": "2026-09-03T04:12:10Z",
      "invoice": {
        "id": 600,
        "total_cents": 11200,
        "total": "112.00",
        "state_events": [
          "reopen"
        ],
        "send_receipt": true,
        "receipt_email": "john.doe@example.com",
        "currency": "USD",
        "state": "closed"
      }
    },
    {
      "id": 812,
      "invoice_id": 600,
      "currency_code": "USD",
      "amount_cents": 2500,
      "amount": "25.00",
      "error_message": null,
      "description": "Stored Visa 1111, 1/29",
      "payment_type_id": 3,
      "type": "Refund",
      "settled": false,
      "state": "completed",
      "uuid": "9c1e2f6a-7d4b-4e8a-b0c3-5f2a1d9e8b7c",
      "autobill": false,
      "payment_id": 749,
      "external_transaction_id": "10392911204",
      "payment_type": "creditcard",
      "voided_at": null,
      "created_at": "2026-09-10T16:05:41Z",
      "updated_at": "2026-09-10T16:05:43Z",
      "invoice": {
        "id": 600,
        "total_cents": 11200,
        "total": "112.00",
        "state_events": [
          "reopen"
        ],
        "send_receipt": true,
        "receipt_email": "john.doe@example.com",
        "currency": "USD",
        "state": "closed"
      }
    }
  ],
  "total_count": 56,
  "next": "https://mybiz.pike13.com/api/v2/desk/transactions?page=2&per_page=2"
}

Parameters

created_sincetimestampFilter to transactions created after the given timestamp.
created_beforetimestampFilter to transactions created before the given timestamp.
updated_sincetimestampFilter to transactions updated after the given timestamp.
updated_beforetimestampFilter to transactions updated before the given timestamp.
idscomma delimited stringFilter to the given transaction ids.
include_invoicebooleanInclude a summary of each transaction's invoice.
sortstringSort results by the given attributes and directions. Attributes can be updated_at, created_at, or id. The order will be ascending unless prefixed by a minus sign (-). When no sort is given, defaults to id. Examples: "-updated_at" or "id,-created_at".

Attributes

idintegerThe id of the transaction.
typestringEither Payment or Refund.
invoice_idintegerThe id of the invoice the transaction belongs to.
payment_idintegerRefunds only. The id of the payment that was refunded.
currency_codestringThe currency of the transaction, i.e. 'USD'.
amount_centsintegerThe amount of the transaction in cents. Refund amounts are positive.
amountstringThe amount of the transaction in localized currency.
payment_typestringThe payment type key, such as cash, check, creditcard, ach, or credit.
payment_type_idintegerThe id of the payment type.
descriptionstringA description of how the transaction was paid, such as the stored card used or the check number.
statestringPayments are checkout, processing, client_action_required, accepted (a bank transfer awaiting settlement), unknown, completed, or failed. Refunds are setup, processing, completed, or failed.
error_messagestringThe processor's error message for a failed transaction.
settledbooleanTrue once the payment processor reports the funds as settled. Not every payment type reports settlement.
autobillbooleanTrue if the payment was charged automatically by recurring billing.
voided_attimestampWhen the transaction was voided, or null.
external_transaction_idstringThe payment processor's transaction id, the check number for a check payment, or the reference entered for an external payment.
uuidstringA unique identifier for the transaction.
created_attimestampWhen the transaction was created.
updated_attimestampWhen the transaction was last updated.
invoiceobjectOnly when include_invoice=true. The invoice's id, totals, state, and receipt settings, in the same shape as the Desk invoice list.