- Authentication
- PayTo
- Agreements
- Agreement Actions
- Payments
- Webhook Subscriptions
- Webhooks
Test Authentication
POST
/test
testing
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 *****************
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 POST 'https://api-sandbox.squarepay.com.au/v2/test' \
--header 'Accept: application/json' \
--header 'Authorization: Basic Og=='
Responses
🟢201OK
application/json
Body
data
object
required
message
string
required
Example
{
"data": {
"message": "You have successfully authenticated!"
}
}
🟠401Unauthorised
🔴500Server Error