Sellerlogic
service_omni — Endpoints: Sellerlogic¶
Location: backend/service_omni/app/api/v1/endpoints/sellerlogic.py
Summary
- CRUD and validation endpoints for Sellerlogic credentials used by downstream flows.
Routes
POST /sellerlogic/credentials/— Create Sellerlogic credential. Body model:SellerlogicCredentialCreate(example fields:name,api_key,merchant_id,is_active).
Example request:
{
"name": "Sellerlogic - ACME",
"api_key": "sk_abc123",
"merchant_id": "123",
"is_active": true
}
Curl:
curl -X POST "http://localhost:8000/api/v1/sellerlogic/credentials/" \
-H "Content-Type: application/json" \
-d '{"name":"Sellerlogic - ACME","api_key":"...","merchant_id":"123","is_active":true}'
GET /sellerlogic/credentials/— List saved credentials (supportsskip,limit).PUT /sellerlogic/credentials/{credential_id}— Update credential (SellerlogicCredentialUpdate).DELETE /sellerlogic/credentials/{credential_id}— Delete a credential.POST /sellerlogic/credentials/{credential_id}/test— Test stored credential; returns a validation result object.
Implementation & notes
- Endpoint implementation: backend/service_omni/app/api/v1/endpoints/sellerlogic.py
-
Manager & credential helpers: backend/service_omni/app/services/sellerlogic/sellerlogic_manager.py and backend/service_omni/app/services/sellerlogic/sellerlogic_credentials.py
-
Operational notes: The
testendpoint serializes responses to ensureidfields are stringified for UI compatibility. Use the test endpoint after creating credentials to ensure permissions and connectivity.