API:Get Currencies

From WHMCS Documentation

Jump to: navigation, search

This command is used to receive a list with the available currencies.

Attributes

none

Example Command

$postfields["action"] = "getcurrencies";

Returned Variables

This function will always return an array with a XML response, here is a sample output:

<whmcsapi>
<action>getcurrencies</action>
<result>success</result>
<totalresults>2</totalresults>
<currencies>
 <currency>
  <id>1</id>
  <code>EUR</code>
  <prefix>€</prefix>
  <suffix>€</suffix>
  <format>1</format>
  <rate>1.00000</rate>
 </currency>
 <currency>
  <id>3</id>
  <code>USD</code>
  <prefix>$</prefix>
  <suffix>$</suffix>
  <format>1</format>
  <rate>1.47570</rate>
 </currency>
</currencies>
</whmcsapi>

About the API System · Example API Usage · API Functions

API Functions
Add Client - Update Client - Delete Client - Get Clients - Get Clients Details - Get Clients Products - Get Clients Password - Send Email
Get Support Departments - Get Support Statuses - Get Tickets - Get Ticket - Get Ticket Predefined Cats - Get Ticket Predefined Replies
Open Ticket - Reply Ticket - Add Ticket Note - Delete Ticket
Module Create - Module Suspend - Module Unsuspend - Module Terminate
Create Quote - Update Quote - Delete Quote - Send Quote - Accept Quote
Get Orders - Get Order Statuses - Add Order - Accept Order - Pending Order - Cancel Order - Fraud Order - Delete Order
Get Invoice - Get Payment Methods - Create Invoice - Add Billable Item - Add Invoice Payment
Add Transaction - Add Credit - Capture Payment
Domain WHOIS Lookup - Get Activity Log - Get Admin Details - Update Admin Notes - Get Currencies - Get Email Templates
Get To-Do Items - Get To-Do Item Statuses - Get Staff Online - Get Stats - Encrypt Password - Decrypt Password

Note: The output has the charset defined in WHMCS.