Documentation Index

Fetch the complete documentation index at: https://docs.wair.ai/llms.txt

Use this file to discover all available pages before exploring further.

POST /Currencies

Prev Next

GENERAL INFORMATION

Use this endpoint to create currencies. Direct link to Swagger documentation:

https://public-api-dev.wair.cloud/swagger/index.html#/Sales/post_api_v1_Currencies

REQUEST

Authentication

Bearer token, information on page POST /Token

Headers

Name

Description

Example

X-Tenant

Tenant code supplied by Wair

“TENANT”

QueryParameters:

Name

Description

Example

fullLoad

See documentation: Integration core principles

true

Body example:

{
  "currencies": [
    {
      "currencyId": "guid01",
      "code": "EUR",
      "description": "Euro",
      "isDefault": true,
      "startDate": "2023-09-06T12:07:06.774Z",
      "currencyFactor": 1
    },
    {
      "currencyId": "guid02",
      "code": "GBP",
      "description": "Pound",
      "isDefault": false,
      "startDate": "2023-09-06T12:07:06.774Z",
      "currencyFactor": 0.85
    }
  ]
}

Additional information:

currencyId and code = Use of "id" and "code" archived

description = description of the vendor.

isDefault = state your default currency.

startDate = the (new) starting date of the currency/currencyfactor.

currencyFactor = how much strange currency I can acquire using your 1 of your default currency. Example; my default currency is euro and for 1 euro I can acquire 0,85 British pound. My currencyFactor is 0.85 as in the example body above. For my default currency the currencyFactor is always 1.

RESPONSE

StatusCodes:

200 = OK.

401 = Unauthorized, which means an expired/missing/invalid token.

400 = Bad request, see body of the response to check which validation errors have occured.

500 = System error, see body of the response to check which error has occured or contact integration support.

Body Example:

No body in the response.