7
API Endpoints Reference

Complete reference of all SaligPay API endpoints:

EndpointMethodDescriptionAuthentication
/api/oauth/authenticatePOSTAuthenticate and get access tokenClient credentials
/api/oauth/jwt/refreshPOSTRefresh an access tokenRefresh token
/api/oauth/jwt/validate/accessPOSTValidate an access tokenNone
/api/checkoutPOSTCreate a checkout sessionBearer token
/api/checkout/{sessionId}GETRetrieve checkout session detailsBearer token

API Base URL: All endpoints are relative to the base API URL, which is typically https://apisaligpay.microsource.com.ph/ 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/authenticate

Authenticates a merchant and returns an access token.

Request Body

{
  "clientId": "your_client_id",
  "clientSecret": "your_client_secret"
}

Response

{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expiresIn": 3600,
  "tokenType": "Bearer"
}

Checkout Endpoints

Full Documentation: For complete Checkout API specifications, visit /api/checkout/docs

POST/api/checkout

Creates a new checkout session for a payment.

Request Headers

{
  "Authorization": "Bearer your_access_token"
}

Request Body

{
  "amount": 2500,
  "currency": "USD",
  "description": "Order #12345",
  "externalId": "order_12345",
  "customerInfo": {
    "email": "customer@example.com",
    "name": "John Doe"
  },
  "successUrl": "https://your-site.com/checkout/success",
  "cancelUrl": "https://your-site.com/checkout/cancel"
}

Response

{
  "sessionId": "cs_123456789",
  "checkoutUrl": "https://checkout.saligpay.com/cs_123456789",
  "expiresAt": "2023-05-24T15:30:45Z",
  "status": "PENDING"
}

Security Note: Always keep your client credentials and webhook secrets secure and never expose them in client-side code.

8
Getting Help & Support

If you encounter any issues or need assistance with your SaligPay integration, we offer several support channels:

Email Support

Contact our dedicated support team at support@saligpay.com for technical assistance.

Developer Community

Join our developer community forum to discuss integration challenges and solutions with other developers.

Documentation & Resources