Setting the file. One moment.
Subchapter 8.88
references/site-properties/change-payment-currency-site-properties.mdMarkdown2 KBView on GitHub
Update a Wix site’s payment currency (the ISO-4217 currency code used to bill customers) programmatically.
USD to EUR).paymentCurrency field is part of Site Properties (often shown in the dashboard under regional/business info).version.fields.paths) to indicate which fields you’re updating.This is useful to understand the current snapshot version and other regional fields.
curl -X GET 'https://www.wixapis.com/site-properties/v4/properties' \
-H 'Authorization: <AUTH>'Use the PATCH /site-properties/v4/properties endpoint: put the new currency under properties.paymentCurrency and include a fields.paths mask.
curl -X PATCH 'https://www.wixapis.com/site-properties/v4/properties' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
--data-binary '{
"properties": {
"paymentCurrency": "EUR"
},
"fields": {
"paths": ["paymentCurrency"]
}
}'A successful call returns an updated Site Properties snapshot version, for example:
{ "version": "123" }fields.paths will fail with 400 and "Illegal request - No updates on request body".USD, CAD, EUR, GBP).POST https://www.wixapis.com/currency_converter/v1/currencies/amounts/{from}/convert/{to}