Skip to content

Get Available Payment Gateways

Endpoint

GET /api/v1/subscriber/getAvailablePaymentGateways

This endpoint retrieves a list of available payment gateways for the authenticated subscriber.


Authorization

  • Type: Bearer Token
  • Header:
    Authorization: Bearer <your_token_here>
    

Example Request

curl -X GET "https://yourispcrmdomain/api/v1/subscriber/getAvailablePaymentGateways" \
-H "Authorization: Bearer YOURAPITOKENHERE"

Response

Success Response (200 OK)

{
  "success": true,
  "data": [
    {
      "gateway_id": 1,
      "name": "Razorpay",
      "status": "active"
    },
    {
      "gateway_id": 2,
      "name": "PayPal",
      "status": "active"
    }
  ]
}

Explanation: - success - Indicates if the request was successful. - data - An array of available payment gateways: - gateway_id - Unique ID of the payment gateway. - name - Name of the payment gateway (e.g., Razorpay, PayPal). - status - Current status of the gateway (e.g., active, inactive).


Error Responses

401 Unauthorized

{
  "success": false,
  "message": "Unauthorized"
}

Explanation: - This error occurs if the Bearer Token is invalid or missing.


Example Response

{
  "success": true,
  "data": [
    {
      "gateway_id": 1,
      "name": "Razorpay",
      "status": "active"
    },
    {
      "gateway_id": 2,
      "name": "PayPal",
      "status": "active"
    }
  ]
}

For further assistance, contact our support team at support@netgroot.com.