# Shopify Admin API Customer marketingUrl field write_customers

Status: search-observed
Product: Shopify customer API
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/shopify-admin-api-customer-marketingurl-field-write-customers
Machine JSON: https://gitdocs.org/api/fixes/shopify-admin-api-customer-marketingurl-field-write-customers.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

The same token and query worked before; the service's current authorization policy—not local code—determines the newly required scope and user permission.

## Fix

```
Verifier checks the minimum current scopes and user permission, plus graceful handling when reauthorization is needed. Require least privilege and a reauthorization path.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- site:shopify.dev marketingOptInLevel marketingUrl write_customers read_customers Customer GraphQL Admin API
- Shopify Admin API Customer marketingUrl field write_customers
- site:shopify.dev/docs/api/admin-graphql Customer emailMarketingConsent marketingOptInLevel
- https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer
- 'marketing' in https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer
- site:shopify.dev/changelog customer unsubscribeUrl write_customers read_customers
- "unsubscribeUrl" "write_customers"
- "marketing_url" Shopify customer API
- https://shopify.dev/docs/api/admin-graphql/unstable/objects/Customer
- shopify.dev/docs/api/admin-graphql/2026-01/objects/Customer unsubscribeUrl

## Sources

- Shopify customer marketing URL fields require write access: https://shopify.dev/changelog/customer-marketing-url-fields-now-require-write-access
- Official reference opened by Codex: https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer
- Official reference opened by Codex: https://shopify.dev/docs/api/admin-graphql/unstable/objects/Customer
