Payment methods
Payment method settings control which payment methods are enabled for your account and which are set as the default option. You can retrieve and update default payment methods using the same endpoint. To retrieve your payment method settings settings, make aGET request to /commerce/payment-methods/2027-03-beta/settings.
The response will return settings for all payment methods, including their active and supported currencies.
To update payment method settings, make a
PATCH request to /commerce/payment-methods/2027-03-beta/settings.
In the request body, include a paymentMethodUpdates array containing your payment method updates.
A successful
PATCH request returns the updated settings in the same format as the GET response.
Billing settings
Billing settings control checkout behavior for your HubSpot account, including how buyer information is collected, stored, and tracked. You can retrieve and update these settings using the same endpoint:/commerce/payments-settings/2027-03-beta/payments-settings/billing
- To retrieve settings, make a
GETrequest to the endpoint. The response will return all current settings. - To update settings, make a
PATCHrequest to the endpoint. In the request body, include the settings that you want to update.
A successful
PATCH request returns the updated settings in the same format as the GET response.
Shipping settings
Shipping settings control whether a shipping address is collected during checkout and which countries you ship to. You can retrieve and update these settings using the same endpoint:/commerce/payments-settings/2027-03-beta/payments-settings/shipping
- To retrieve settings, make a
GETrequest to the endpoint. The response will return all current settings. - To update settings, make a
PATCHrequest to the endpoint. In the request body, include the settings that you want to update.
A successful
PATCH request returns the updated settings in the same format as the GET response.
Policy settings
Policy settings control the terms, cancellation policy, and refund policy shown to buyers during checkout. You can retrieve and update these settings using the same endpoint:/commerce/payments-settings/2027-03-beta/payments-settings/policy
- To retrieve settings, make a
GETrequest to the endpoint. The response will return all current settings. - To update settings, make a
PATCHrequest to the endpoint. In the request body, include the settings that you want to update.
A successful
PATCH request returns the updated settings in the same format as the GET response.
Checkout fees
Checkout fees are additional charges applied to payments at checkout, such as credit card surcharges. You can retrieve and update checkout fees using the same endpoint:/commerce/payments-settings/2027-03-beta/payments-settings/checkout-fees
- To retrieve settings, make a
GETrequest to the endpoint. The response will return all current checkout fees. - To update fees, make a
PATCHrequest to the endpoint. In the request body, include acheckoutFeesarray with an object for each fee.
A successful
PATCH request returns the updated fees in the same format as the GET response.
Delete a checkout fee
To remove a specific checkout fee, make aDELETE request to /commerce/payments-settings/2027-03-beta/payments-settings/checkout-fees/{checkoutFeeId}, replacing {checkoutFeeId} with the id of the fee you want to remove.
A successful DELETE request returns a 204 response with no body.