curl --request POST \
--url 'https://api.stateset.com/api/v1/warranties' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"duration_months": null,
"order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"warranty_type": null
}'
{
"created_at": "string",
"id": "string",
"order_id": "string",
"product_id": "string",
"status": "string",
"warranty_number": "string",
"warranty_type": "string"
}
Create a warranty
Create a warranty
POST
/
api
/
v1
/
warranties
curl --request POST \
--url 'https://api.stateset.com/api/v1/warranties' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"duration_months": null,
"order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"warranty_type": null
}'
{
"created_at": "string",
"id": "string",
"order_id": "string",
"product_id": "string",
"status": "string",
"warranty_number": "string",
"warranty_type": "string"
}
Request body
CreateWarrantyRequest
integer,null (int32)
string (uuid)
required
string (uuid)
required
string,null
Responses
WarrantyResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/warranties' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"duration_months": null,
"order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"warranty_type": null
}'
{
"created_at": "string",
"id": "string",
"order_id": "string",
"product_id": "string",
"status": "string",
"warranty_number": "string",
"warranty_type": "string"
}
⌘I