Skip to main content
GET
/
sources
List sources
curl --request GET \
  --url https://api.piriod.com/sources/ \
  --header 'Authorization: <api-key>' \
  --header 'x-simple-workspace: <x-simple-workspace>'
{
  "count": 142,
  "results": [
    {
      "gateway": "<string>",
      "id": 123,
      "customer": "<string>",
      "usage": "single",
      "status": "failed",
      "amount": 123,
      "description": "<string>",
      "return_url": "<string>",
      "gateway_data": {},
      "client": {},
      "metadata": {},
      "card": {
        "brand": "<string>",
        "last4": "<string>",
        "exp_month": 123,
        "exp_year": 123
      },
      "test_mode": true,
      "created": "2023-11-07T05:31:56Z",
      "updated": "2023-11-07T05:31:56Z"
    }
  ],
  "next": "<string>",
  "previous": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://piriod-d406ac55.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use header Authorization: Token <api_token>. API tokens are obtained from the Piriod dashboard.

Headers

x-simple-workspace
string
required

Workspace (account) identifier. Required for every request.

x-piriod-test-mode
boolean
default:false

Whether to operate against test-mode data. Defaults to false.

Query Parameters

page
integer
default:1

Page number to retrieve (1-indexed).

Required range: x >= 1
page_size
integer
default:20

Number of items per page.

Required range: 1 <= x <= 100
customer
string
gateway
string
usage
enum<string>
Available options:
single,
reusable
status
string
id
integer

Response

200 - application/json

Paginated source list.

count
integer
required

Total number of items matching the filter.

Example:

142

results
object[]
required

The items in the current page.

next
string<uri> | null

URL of the next page, or null if last page.

previous
string<uri> | null

URL of the previous page, or null if first page.