Billing: Payment methods

Set default payment method

Set the default payment method for your account.

Use this endpoint to configure the primary payment method for future orders.

post/api/billing/v1/payment-methods/{paymentMethodId}

Request

  • Base URL: https://developers.hostinger.com
  • URL: https://developers.hostinger.com/api/billing/v1/payment-methods/{paymentMethodId}
  • Auth: HTTP bearer

Path parameters

paymentMethodIdinteger required
Example:9693613

Payment method ID

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}

Changes

No recorded changes to this operation across all 130 revisions of this API.