Skip to content

Add Carrier Admin API endpoints - #296

Closed
boo-code wants to merge 1 commit into
PrestaShop:devfrom
boo-code:feat/carrier-endpoints
Closed

boo-code wants to merge 1 commit into
PrestaShop:devfrom
boo-code:feat/carrier-endpoints

Conversation

@boo-code

Copy link
Copy Markdown
Questions Answers
Branch? dev
Description? Adds CRUD Admin API endpoints for carriers: GET/POST/PATCH/DELETE /carriers. Create and update accept a multipart logoFile upload alongside the carrier fields (name, localized delay, grade, tracking URL, dimensions/weight, shipping method, range behavior, free/handling-fee flags), the associated customer groups and shops, and the zones. Wires to the existing CQRS (AddCarrierCommand, EditCarrierCommand, GetCarrierForEditing, DeleteCarrierCommand). Carrier ranges (weight/price ranges) are intentionally left as a follow-up since they are managed through a separate SetCarrierRangesCommand. Covered by CarrierEndpointTest — full CRUD incl. multipart logo — 8 tests / 41 assertions green against the local integration harness.
Type? new feature
Category? WS
BC breaks? no
Deprecations? no
How to test? Run CarrierEndpointTest. Or POST a multipart request to /carriers with logoFile, name, delay[<locale>], zones[], associatedGroupIds[], associatedShopIds[], shippingMethod, rangeBehavior, etc.; then GET/PATCH/DELETE /carriers/{id}.
Fixed ticket? Contributes to PrestaShop/PrestaShop#39630
Related PRs
Sponsor company Boring Investments

Expose CRUD for carriers: GET/POST/PATCH/DELETE /carriers. Create and
update accept a multipart logo upload alongside the carrier fields,
localized delay, associated groups/shops and zones. Wires to the existing
CQRS (AddCarrierCommand/EditCarrierCommand/GetCarrierForEditing/
DeleteCarrierCommand). Carrier ranges remain a follow-up (separate
SetCarrierRangesCommand). Contributes to #39630.
@ps-jarvis

Copy link
Copy Markdown

Hello @boo-code!

This is your first pull request on ps_apiresources repository of the PrestaShop project.

Thank you, and welcome to this Open Source community!

@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard Jun 28, 2026
@boo-code

Copy link
Copy Markdown
Author

Closing in favour of #147 (luigimassa), which was open first and is more complete (toggles + ranges). Apologies for the duplicate — I've offered my integration test there. See #147.

@boo-code boo-code closed this Jun 28, 2026
@boo-code boo-code mentioned this pull request Jun 28, 2026
@github-project-automation github-project-automation Bot moved this from Ready for review to Closed in PR Dashboard Jun 28, 2026
@ps-jarvis ps-jarvis moved this from Closed to Ready for review in PR Dashboard Jun 28, 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.

2 participants