7API Endpoints Reference
Complete reference of all SaligPay API endpoints:
| Endpoint | Method | Description | Authentication |
|---|---|---|---|
| /api/oauth/token | POST | Create an OAuth access token. | None |
| /api/checkout/sessions | POST | Create a checkout session. | Bearer token |
| /api/checkout/session/:sessionToken | GET | Retrieve current checkout/payment status. | Bearer token |
API Base URL: All endpoints are relative to the base API URL, which is typically https://api.saligpay.com for production or may be different for sandbox environments.
Authentication Endpoints
Full Documentation: For complete OAuth API specifications, visit /api/oauth/docs
POST/api/oauth/token
Issue an access token.
Request Body
{
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"grant_type": "client_credentials"
}Response
{
"access_token": "eyJ...",
"token_type": "Bearer",
"expires_in": 3600
}Checkout Endpoints
Full Documentation: For complete Checkout API specifications, visit /api/checkout/docs
POST/api/checkout/sessions
Create a new checkout session.
Request Headers
{
"Authorization": "Bearer <ACCESS_TOKEN>",
"Content-Type": "application/json"
}Request Body
{
"amount": 125000,
"currency": "PHP",
"reference_id": "ORD-10293",
"success_url": "https://merchant.example/success",
"cancel_url": "https://merchant.example/cancel"
}Response
{
"id": "cs_012345",
"sessionToken": "st_012345",
"checkoutUrl": "https://checkout.saligpay.com/cs_012345"
}Security Note: Always keep your client credentials and webhook secrets secure and never expose them in client-side code.
8Getting Help & Support
If you encounter any issues or need assistance with your SaligPay integration, we offer several support channels:
Developer Support
Email support@saligpay.com for integration assistance.
Status & Incidents
Track uptime and maintenance updates in the status page.status.saligpay.com
Documentation & Resources
- Authentication guide - Token acquisition and secure credential handling.
- Checkout guide - Create and display checkout sessions.