List store payment providers
List a store's payment providers, split into providers already connected to the store and gateways available to install. Never exposes gateway credentials, secrets, or configuration.
List a store's payment providers, split into providers already connected to the store and gateways available to install. Never exposes gateway credentials, secrets, or configuration.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
store_idstringRequiredExample:
The ID of the store to list payment providers for.
store_01J8Z5F8W9K8M4A7B3C2D1E0FGQuery parameters
include_currency_unsupportedbooleanOptionalExample:
Include gateways that do not support the store currency in the available list.
trueResponses
200
Success response
application/json
401
Unauthenticated response
application/json
500
Error response
application/json
get/api/ecommerce/v1/stores/{store_id}/payment-providers
GET /api/ecommerce/v1/stores/{store_id}/payment-providers HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"connected": [
{
"id": "storepp_01J8Z5F8W9K8M4A7B3C2D1E0FG",
"provider_id": "stripe",
"title": "Stripe",
"is_enabled": true,
"status": "connected",
"shows_at_checkout": true
}
],
"available": [
{
"id": "stripe",
"is_installed": false,
"is_enabled": false,
"is_currency_supported": true,
"supported_currencies": [
"usd"
]
}
]
}
}Last updated
Was this helpful?