Get payment method list
Retrieve available payment methods that can be used for placing new orders.
Retrieve available payment methods that can be used for placing new orders.
If you want to add new payment method, please use hPanel.
Use this endpoint to view available payment options before creating orders.
Authorizations
AuthorizationstringRequired
API Token authentication
Responses
200
Success response
application/json
idintegerOptionalExample:
Payment method ID
6523namestringOptionalExample:
Credit CardidentifierstringOptionalExample:
1234*****6464payment_methodstringOptionalExample:
cardis_defaultbooleanOptionalExample:
trueis_expiredbooleanOptionalExample:
falseis_suspendedbooleanOptionalExample:
falsecreated_atstring · date-timeOptionalExample:
2025-02-27T11:54:22Zexpires_atstring · date-timeOptionalExample:
2025-03-27T11:54:22Zsuspended_atstring · date-time · nullableOptionalExample:
2025-03-28T11:54:22Z401
Unauthenticated response
application/json
500
Error response
application/json
get/api/billing/v1/payment-methods
GET /api/billing/v1/payment-methods HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 6523,
"name": "Credit Card",
"identifier": "1234*****6464",
"payment_method": "card",
"is_default": true,
"is_expired": false,
"is_suspended": false,
"created_at": "2025-02-27T11:54:22Z",
"expires_at": "2025-03-27T11:54:22Z",
"suspended_at": "2025-03-28T11:54:22Z"
}
]Last updated
Was this helpful?