Idempotency
Prevent duplicate operations with idempotency keys
Idempotent Endpoints
API
Endpoint
Requires Idempotency Key
Using the Idempotency Key
curl -X POST https://api.partssource.com/internal/api/orders \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
-d '{
"requesterId": 12345,
"userId": 67890,
"facilityId": 1001,
"shippingAddressId": 2001,
"billingAddressId": 3001,
"shippingMethod": "GROUND",
"quoteItems": [
{"priceOptionId": "OPT-001", "productId": "CAT-123", "quantity": 1, "price": 100.00}
]
}'Key Requirements
Requirement
Details
How It Works
Request Body Validation
Caching Behavior
Response Code
Cached?
Duration
Retry Behavior
Response Header
Concurrent Request Handling
Error Responses
Status
Error
Cause
Solution
Code Examples
C#
TypeScript
Python
Best Practices
Retry Pattern Example
Last updated

