Convert a list via NBG rates
nbg_convert_manyConverts a list of amounts, each at the official NBG rate in force on its own date: one call for a list of invoices. Items are answered independently; a bad date or code fails only its item, with the error text in that item. total is present when every converted item has the same target currency and covers the converted items only; call it partial when skipped is not 0. Once NBG stops answering, the remaining dates fail with the same error without being asked. Show resultRounded as the amount; result is the unrounded value for further calculation. Dates are calendar days in Tbilisi; the default is today. NBG sets a rate on business days around 17:00 Tbilisi time, valid from the next calendar day until the next rate, so after 17:00 tomorrow can be requested by date. Sundays, Mondays and days after a public holiday have no rate of their own: the rate in force was set earlier and is returned with carriedOver true and effectiveDate set to the day it took effect. Quote effectiveDate when carriedOver is true. A date whose rate NBG has not published yet returns an error, never a guess.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 1 to 100 conversions, each with the fields of nbg_convert; items are answered independently. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | One entry per input item, in input order: a conversion, or the item with an error | |
| total | No | Present only when at least one item converted, every converted item has the same target currency, and the sum is a finite number. It covers the converted items only: when skipped is not 0, say the total is partial and list the skipped items. | |
| skipped | Yes | ||
| converted | Yes |