Create Invoice Currency
POST /api/v1/InvoiceSetting/createcurrency
Description
This endpoint is used to create a new currency setting. It allows users to define and configure a new currency for invoices.
Headers:
- Content-Type: application/json
ApiKey:
- No API key required
Path Parameters:
- version: string, required
Request Body:
- CreateInvoiceCurrencySettings object containing the new currency settings
URL:
- POST:
{{baseUrl API url}}/api/v1/InvoiceSetting/createcurrency
Response:
- 200: Success, indicates that the new currency settings have been successfully created.
Error Codes:
-
400: Bad Request, the request body is not valid or missing required fields.
-
404: Resource not found, the specified version or setting does not exist.
-
500: Internal server error, something went wrong while processing the request.
Example Request URL:
POST /api/v1/InvoiceSetting/createcurrency
Content-Type: application/json
{
"currencyCode": "USD",
"currencySymbol": "$",
"currencyName": "US Dollar",
"isActive": true
}
Example Response:
HTTP/1.1 200 OK
Method: POST
/api/v1/InvoiceSetting/createcurrency
Headers
| Content-Type | Value |
|---|---|
Content-Type | application/json |
Body (raw)
{
"currencyOption": "<string>"
}
Response: 200
LANGUAGE
CURL REQUEST
curl --request POST \
--url /api/v1/InvoiceSetting/createcurrency \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!