Search...
changeCurrency( )
Changes the currency for all tickets per event.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function changeCurrency(options: ChangeCurrencyOptions): Promise<void>
changeCurrency Parameters
NAME
TYPE
DESCRIPTION
options
Optional
ChangeCurrencyOptions
Returns
Return Type:
Promise<
void
>Was this helpful?
changeCurrency example
Copy Code
1import { ticketDefinitions } from 'wix-events.v2';23 async function changeCurrency(options) {4 try {5 const result = await ticketDefinitions.changeCurrency(options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13