Manage country fields using localization extensions

Localization extensions are additional fields required by certain countries on international orders. For example, some countries require additional fields for customs information or tax identification numbers. You can retrieve the information from these fields using the localizationExtensions connection on the Order object.

Refer to the GraphQL Admin API reference for more information on order and localization extensions objects.

This tutorial explains how to create and query country fields using the GraphQL Admin API. For this tutorial, you'll be using a Brazilian CPF number, but the following country fields can also be collected:

  • South Korea: Personal Customs Code
  • China: Resident ID number
  • Italy: Codice Fiscale and PEC