HSRCPAY Dökümantasyon
API v1

List payment provider methods

GET
/payment-provider-methods/

Authorization

bearerAuth
AuthorizationBearer <token>

Use Authorization: Bearer <token>. The same header supports: (1) JWT access token from the configured auth provider; (2) secret API key whose value contains sk_ within the first 32 characters (e.g. sk_live_…, sk_test_…); (3) publishable key containing pk_. Sandbox keys typically include _test_ in the string; the server resolves repositories from that.

In: header

Query Parameters

sandbox_mode?Sandbox mode
account_id?Account ID
payment_provider_id?Payment provider ID
category?Payment method category
type?Payment method type

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.hsrcpay.com/v1/payment-provider-methods/"
{
  "message": "success",
  "success": true,
  "data": [
    {
      "object": "payment_provider_method",
      "id": "string",
      "name": "string",
      "category": "CARD",
      "type": "CREDIT_CARD",
      "network": "VISA",
      "installments_supported": true,
      "payment_provider_id": "string",
      "txn_mappings": [
        {
          "object": "payment_provider_method_txn_mapping",
          "payment_provider_method_id": "string",
          "strategy": "SDK",
          "strategy_identifier": "string",
          "type": "string",
          "capabilities": null,
          "property1": null,
          "property2": null
        }
      ],
      "charges": [
        {
          "object": "charge",
          "id": "string",
          "payment_id": "string",
          "payment_method_id": "string",
          "customer_id": "string",
          "account_id": "string",
          "status": "CREATED",
          "amount": 0,
          "authorized_amount": 0,
          "captured_amount": 0,
          "refunded_amount": 0,
          "currency": "USD",
          "installments": 0,
          "security": {
            "property1": null,
            "property2": null
          },
          "transaction": {
            "property1": null,
            "property2": null
          },
          "exchanges": [
            null
          ],
          "details": {
            "property1": null,
            "property2": null
          },
          "performance": {
            "duration": 0,
            "property1": null,
            "property2": null
          },
          "metadata": {
            "property1": null,
            "property2": null
          },
          "routing_plan_id": "string",
          "routing_origin": "MERCHANT_DIRECT",
          "attempt_no": 0,
          "payment_provider_id": "string",
          "payment_provider_method_id": "string",
          "payment_provider_config_snapshot": {
            "property1": null,
            "property2": null
          },
          "created_at": null,
          "updated_at": null,
          "property1": null,
          "property2": null
        }
      ],
      "created_at": null,
      "updated_at": null,
      "property1": null,
      "property2": null
    }
  ],
  "property1": null,
  "property2": null
}
{
  "message": "string",
  "success": false,
  "error": {
    "code": 0,
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    },
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}
{
  "message": "string",
  "success": false,
  "error": {
    "code": 0,
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    },
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}
{
  "message": "string",
  "success": false,
  "error": {
    "code": 0,
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    },
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}
{
  "message": "string",
  "success": false,
  "error": {
    "code": 0,
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    },
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}
{
  "message": "string",
  "success": false,
  "error": {
    "code": 0,
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    },
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}
{
  "message": "string",
  "success": false,
  "error": {
    "code": 0,
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    },
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}
{
  "message": "string",
  "success": false,
  "error": {
    "code": 0,
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    },
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}
{
  "message": "string",
  "success": false,
  "error": {
    "code": 0,
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    },
    "property1": null,
    "property2": null
  },
  "property1": null,
  "property2": null
}