Documentation Sweet Pricing API

GET / phonecountries

This endpoint gets a list of phone dial codes, ordered by country. Other endpoints that take or fetch phone numbers reference these resources.

URL

https://api.sweetpricing.com/v1.0/phonecountries

200

Field Type Description
phonecountries Object[]
phonecountries.id Number

ID of the phone country record.

phonecountries.name String

Display name of the phone country option.

phonecountries.dialCode String

Dial code for the country, including the '+' sign.

{
	"phonecountries": [{
		"id": 1,
		"name": "Australia (+61)",
		"dialCode": "+61"
	}]
}

401

Name Description
401

You are not authenticated to perform the request.

403

Name Description
403

You are not allowed to view/modify this resource.

404

Name Description
404

Resource not found.