New Shopify Certification now available: Liquid Storefronts for Theme Developers

Get the "CPF/CNPJ" field from API Shopify

Presence
Visitor
1 0 4

Hi. I'm trying to get the "CPF/CNPJ" field from API Shopify, but I cannot do it. This field stores the "Document ID" in Brazil. When I get a order using Orders Endpoint, this field doesn't return. How can I get this information?

Replies 6 (6)
reynierhdez
Shopify Partner
1 0 0

Same problem here. Any updates?

mfcss
Explorer
65 6 27

I also have this issue, same for South Korea. Any suggestions?

 

JohnAl
Shopify Partner
1 0 0

+1 .. 

reginaldoboeke
Shopify Partner
2 0 0

same problem here...

VBlancoPR
Shopify Partner
1 0 1

In case anyone is still looking for this, you need to fetch the order information from the GraphQL API, and the tax id for Brazil or South Korea is within the 

 

You would get something like this for Brazil CPF/CNPJ:

"localizationExtensions": {
    "nodes": [
        {
            "countryCode": "BR",
            "purpose": "SHIPPING",
            "title": "CPF/CNPJ",
            "value": "000.000.000-00"
        }
    ]
},

 

And for the South Korean PCC:

"localizationExtensions": {
    "nodes": [
        {
            "countryCode": "KR",
            "purpose": "SHIPPING",
            "title": "Personal Customs Code",
            "value": "P000000000000"
        }
    ]
},

 

majulucato
Shopify Partner
1 0 1

Thank you @VBlancoPR ‌😁‌ I was searching for this for so long.