- Authentication
- PayTo
- Webhook Subscriptions
- Webhooks
List Payments
GET
/pay-to/payments
payto
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Query Params
status
string
optional
limit
integer
optional
>= 1<= 100
Default:
20
Example:
20
page
integer
optional
Example:
1
created_after
string
optional
Example:
2024-02-01
created_before
string
optional
Example:
2024-02-27
Header Params
Accept
string
optional
Example:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api-sandbox.squarepay.com.au/v2/pay-to/payments?status&limit=20&page=1&created_after=2024-02-01&created_before=2024-02-27' \
--header 'Accept: application/json' \
--header 'Authorization: Basic Og=='
Responses
🟢200OK
application/json
Body
data
array[object (Payment) {9}]
required
uuid
string
required
reference
string
required
>= 1 characters<= 255 characters
agreement_uuid
string
required
amount
integer | null
optional
priority
enum<string>
required
Allowed values:
attendedunattended
statement_reference
string | null
optional
<= 35 characters
statement_description
string
required
<= 280 characters
last_payment
boolean | null
optional
payment_date
string | null
optional
Example
{
"data": [
{
"uuid": "d9b76218-5c76-46f3-83d9-5e3c0113c983",
"reference": "Loan1337-3",
"agreement_uuid": "2e9d9df0-5c70-4bdf-b031-1caa64121602",
"amount": 10000,
"priority": "unattended",
"statement_reference": "Loan #1337",
"statement_description": "Loan Payment 3 of 10",
"last_payment": true,
"payment_date": "2024-02-15"
},
{
"uuid": "a095c915-4f7b-449a-a11c-7240fd042818",
"reference": "Loan1337-2",
"agreement_uuid": "2e9d9df0-5c70-4bdf-b031-1caa64121602",
"amount": 10000,
"priority": "unattended",
"statement_reference": "Loan #1337",
"statement_description": "Loan Payment 2 of 10",
"last_payment": true,
"payment_date": "2024-02-08"
},
{
"uuid": "55965817-1cab-43c0-bf64-e047ac5fd897",
"reference": "Loan1337-1",
"agreement_uuid": "2e9d9df0-5c70-4bdf-b031-1caa64121602",
"amount": 10000,
"priority": "unattended",
"statement_reference": "Loan #1337",
"statement_description": "Loan Payment 1 of 10",
"last_payment": true,
"payment_date": "2024-02-01"
}
]
}
🟠401Unauthorised
🟠422Unprocessable Entity
🔴500Server Error