Skip to content

Add Country required-fields endpoint - #217

Closed
PrestaEdit wants to merge 1 commit into
PrestaShop:devfrom
PrestaEdit:add-country-required-fields-endpoint
Closed

PrestaEdit wants to merge 1 commit into
PrestaShop:devfrom
PrestaEdit:add-country-required-fields-endpoint

Conversation

@PrestaEdit

Copy link
Copy Markdown
Contributor
Questions Answers
Description? Add a Country required-fields endpoint to the Admin API
Type? new feature
BC breaks? no
Deprecations? no
Fixed ticket? Related to PrestaShop/PrestaShop#39630
Sponsor company

Exposes GetCountryRequiredFields through GET /countries/{countryId}/required-fields,
in a dedicated resource class (like CustomerDetails / SupplierDetails). The query
returns a small object {stateRequired, dniRequired}, mapped by matching field names
(no explicit mapping needed, same as SearchEngine).

Adds an integration test and a scopes (authorization) entry.

Expose GetCountryRequiredFields through GET /countries/{countryId}/required-fields,
in a dedicated resource class (like CustomerDetails / SupplierDetails). The query
returns a small object {stateRequired, dniRequired} mapped by matching field names
(no explicit mapping needed, same as SearchEngine).

Adds an integration test and a scopes entry.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard Jun 10, 2026
@kpodemski kpodemski added Need AI review Trigger: Request an AI pre-review from Claude Admin API Contributions and removed Admin API Contributions Need AI review Trigger: Request an AI pre-review from Claude labels Jun 10, 2026
@github-actions github-actions Bot added AI reviewed Status: Claude AI has already pre-reviewed this PR and removed Need AI review Trigger: Request an AI pre-review from Claude labels Jun 10, 2026
@cnavarro-prestashop cnavarro-prestashop added Need AI review Trigger: Request an AI pre-review from Claude and removed AI reviewed Status: Claude AI has already pre-reviewed this PR labels Jun 11, 2026
@github-actions github-actions Bot removed the Need AI review Trigger: Request an AI pre-review from Claude label Jun 11, 2026
@jolelievre jolelievre added the Need AI review Trigger: Request an AI pre-review from Claude label Jun 11, 2026
@github-actions github-actions Bot removed the Need AI review Trigger: Request an AI pre-review from Claude label Jun 11, 2026
@PrestaEdit
PrestaEdit marked this pull request as draft August 20, 2026 08:23
@PrestaEdit

Copy link
Copy Markdown
Contributor Author

Superseded by #429, which merges this endpoint with the rest of the domain, following the mutualisation asked for by the core team (one PR per domain rather than one per endpoint).

The consolidated PR is green and lists what changed for this endpoint on the way in. Closing here to keep the review in one place.

@PrestaEdit PrestaEdit closed this Aug 21, 2026
@github-project-automation github-project-automation Bot moved this from Ready for review to Closed in PR Dashboard Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants