Skip to main content
You will use this API to verify the prices to use based on a person’s location. For example: Basic, Premium…
Always call this endpoint from the client side so we can determine the user’s actual location. If you call it from the server side, the API will return pricing for the server’s location instead of the user’s actual location.
Here is the endpoint you will have to hit:
GET
https://api.taag.cc/v1/verify/pricing

Authorization

All you need is to include your public key as a value of authorization in the header and hit the endpoint above.
Authorization: taag_pk_mode_xxxxxxxxx
Authorization
string
required
Use the public key that matches the mode you are in TEST or LIVE

Response

As a response to your request, you will receieve a json of all your plans and its properties
{
    "mode": "TEST",
	"countryCode": "RW",
	"plans": [
		{
			"planName": "Basic",
			"formatedPrice": "12.99",
			"currency": "USD",
			"interval": "MONTHLY",
			"planId": "5482769083851118"
		}
	]
}
Pay attention to planId, this will be used for checkout. Learn more