Country

List countries

Use this BillingServ API endpoint to list countries. Cache the returned canonical names and IDs for country selection, or use search for autocomplete. Pass the selected country ID to the customer endpoint and county lookup. Review the response for the operation result or validation errors.

get/country/lists

Query parameters

pageinteger

Page number for pagination.

per_pageinteger

Number of countries to return per page. Defaults to 15 and supports up to 100.

searchstring

Optional search by country name, ISO-2 code, or ISO-3 code.

Response

OK

successboolean

Changes

Changed in 2 of the 6 revisions of this API.9

    • added the new optional query request parameter page

      new-optional-request-parameter

    • added the new optional query request parameter per_page

      new-optional-request-parameter

    • added the new optional query request parameter search

      new-optional-request-parameter

    • added the optional property code to the response with the 401 status

      response-optional-property-added

    • added the optional property code to the response with the 403 status

      response-optional-property-added

    • added the optional property code to the response with the 422 status

      response-optional-property-added

    • added the optional property request_id to the response with the 401 status

      response-optional-property-added

    • added the optional property request_id to the response with the 403 status

      response-optional-property-added

    • added the optional property request_id to the response with the 422 status

      response-optional-property-added