curl --location --request POST 'https://api.stateset.com/v1/warranties/:id/replace' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"replacement_product_id": "prod_xyz789",
"replacement_reason": "Manufacturing defect",
"shipping_address": {
"line1": "123 Main St",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US"
},
"expedited_shipping": true
}'
{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "warranty",
"replaced": true,
"replacement_order_id": "ord_repl_123abc",
"replacement_product_id": "prod_xyz789",
"replacement_status": "shipped",
"tracking_number": "1Z999AA10123456784",
"estimated_delivery": "2024-01-18",
"replacement_reason": "Manufacturing defect"
}
This endpoint processes a replacement for a warranty claim.
curl --location --request POST 'https://api.stateset.com/v1/warranties/:id/replace' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"replacement_product_id": "prod_xyz789",
"replacement_reason": "Manufacturing defect",
"shipping_address": {
"line1": "123 Main St",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US"
},
"expedited_shipping": true
}'
{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "warranty",
"replaced": true,
"replacement_order_id": "ord_repl_123abc",
"replacement_product_id": "prod_xyz789",
"replacement_status": "shipped",
"tracking_number": "1Z999AA10123456784",
"estimated_delivery": "2024-01-18",
"replacement_reason": "Manufacturing defect"
}
curl --location --request POST 'https://api.stateset.com/v1/warranties/:id/replace' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"replacement_product_id": "prod_xyz789",
"replacement_reason": "Manufacturing defect",
"shipping_address": {
"line1": "123 Main St",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US"
},
"expedited_shipping": true
}'
{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "warranty",
"replaced": true,
"replacement_order_id": "ord_repl_123abc",
"replacement_product_id": "prod_xyz789",
"replacement_status": "shipped",
"tracking_number": "1Z999AA10123456784",
"estimated_delivery": "2024-01-18",
"replacement_reason": "Manufacturing defect"
}