Currency Code in Twitter Ads Business account - api

How can I get what currency code is set for twitter ads business account. I have gone through their api-documentation, but i don't seem to find any endpoint mentioning currency code.

On the Ads Getting Started guide, there is a section discussing Currency:
The type of a currency is identified using ISO-4217. This is a three-letter string like “USD” or “EUR”. The value of a currency is represented in micros. For USD, $5.50 is encoded as 5.50*1e6, or 5,500,000. To represent a “whole value”, you need to multiply the local micro by 1e6 (1_000_000) for all currencies.
Currency is associated with a funding instrument and can be programmatically queried using the Funding Instrument API endpoints.

Related

How to get real weight / price of label via FedEx API?

I already have a working FedEx API in production with two services: rate and shipping.
Note that I use:
My own packages: "PackagingType": "YOUR_PACKAGING"
Almost always I know estimated weight of parcel: "RequestedPackageLineItems": { "Weight": { "Value": "42" } }
So, I do rate&buy label with concrete price. But sometimes package exceeds dimensions or weight is changed after buying label – this leads to additional payments and total price for label is different in real life than i receive at the moment of buying label.
The question is: How can I get REAL weight and price of sent package?
I tried to use tracking service with no luck – API returns old incorrect data of weight and no price.
For example, I know that label 123456789012 was created with 2 lbs of weight with price 9.45$. Later on, weight changed dramatically (to 48 lbs) and price changed to 48.98$. I know that because of talking with real people but request to tracking service of FedEx API says that PackageWeight is still 2 LB and Payments parameter contains only "Type": "SHIPPER_ACCOUNT" value and that's all.
Okay, I've found out that i need to request invoices because they contain needed information. How to get them? Didn't find any documentation inside PDF for developers.

Public API for all state tax names

Is there any public API which returns the tax names for all the states across all countries ?
Here are some APIs.
About pricing, some are completely free, some are based on usage and others have free trial versions.
Taxjar: github.com*, developers.taxjar.com
AvaTax: developer.avalara.com, www.avalara.com
USGeocoder: usgeocoder.com
FastTax: www.serviceobjects.com
SalesTaxPAL: www.salestaxpal.com
*GitHub link to the Taxjar profile since each language has its own repository.

how to set currency code in square payment gateway? and what types of currency it support.?

i have integrate payment gateway in my web application on PHP and i want to use CAD or GBP for currency so how to use that currency and what types of currency support it.
I have to set as below:
$request_body2 = array("amount_money" => array (
"amount" => (int)$total_ammount,
"currency" => "USD"
));`);
You can find all of Square's supported currencies here.
In order to charge a card in a specific currency, your location must support that currency. See Square's documentation on Charge for v2 in the section for amount_money.
The value of currency must match the currency associated with the business that is charging the card.
You can also only create locations for the country with which you had registered your Square account. So if you had registered in the US, you can only create US locations and process USD on your Square account.
If you're processing payments on behalf of other Square accounts (using OAuth), then you could process the payment in the currency that matches that Square account's country.

The TaxType code 'MOSS Spain 21%' cannot be used with account code '200'

My UK-based application needs to create invoices using Xero's API. Some customers are in other EU countries, so I have to use a different VAT rate for them.
I've added a new Tax Rate called 'MOSS Spain 21%', with the Tax Type as 'MOSS Sales'.
When creating an invoice via the API using this tax rate I get the following validation exception:
The TaxType code MOSS Spain 21% does not exist or cannot be used for this type of transaction.
The TaxType code 'MOSS Spain 21%' cannot be used with account code '200'.
200 is the sales account, so should be fine. I can manually create an invoice in the Xero UI. It's just the API call that fails. Other invoices with the normal OUTPUT2 tax rate work.
I'm using the .NET Xero API: https://github.com/XeroAPI/Xero-Net
The TaxType code isn't the user displayed name (MOSS Spain 21%) but something like TAX001 .
I had to query the API's Tax Rates end point to find the correct code for my custom tax rate.

Yodlee Aggregation REST API containerNames

The call to getSiteInfo returns, among other things, a list of enableContainers.
Each of these is a hash eg: { "containerName":"bills", "assetType":0 }
Is there an exhaustive list of containerNames?
Is there an exhaustive list of assetTypes and what do the enums mean?
I have looked through the Yodlee developer's docco but can't find the answers.
There are couple of things to know about this.
This enabled containers varies depending upon which all containers are enabled for you as a customer, for example if you are interested only in bank and credit cards then this can be configured and irrespective of what other container types Yodlee supports you will get only these two container types.
Exhaustive list- bank, credits(for credit cards), loan/mortgage, bills(can have- minutes,telephone,utilities,cable_satellite,bills), insurance, stocks(for investments), miles(for Rewards) and prepay.
Asset Types- can be of 0,1,2 where all you containers which will have your asset will get 1, containers considered as liabilities will have this value as 2 and rest will have 0.