Set default payment method
Set the default payment method for your account. Use this endpoint to configure the primary payment method for future orders.
Set the default payment method for your account.
Use this endpoint to configure the primary payment method for future orders.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
paymentMethodIdintegerRequiredExample:
Payment method ID
9693613Responses
200
Success empty response
application/json
messagestringOptionalExample:
Request accepted401
Unauthenticated response
application/json
500
Error response
application/json
post/api/billing/v1/payment-methods/{paymentMethodId}
POST /api/billing/v1/payment-methods/{paymentMethodId} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"message": "Request accepted"
}Last updated
Was this helpful?