🚀 New: Edit Shoppex themes from the dashboard, the CLI, or an AI agent — one unified workflow. Learn more →
curl --request POST \
--url https://api.shoppex.io/dev/v1/invoices/{uniqid}/replacements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"full": "false",
"quantity": 1,
"product_id": "prod_2"
}
'{
"data": {
"id": "replacement_1",
"invoice_id": "33333333-3333-4333-8333-333333333333",
"product_id": "prod_2",
"quantity": 1,
"message": "Replacement issued.",
"created_at": 1712059800
}
}Issues replacement serials for a completed serial-based invoice. By default, replacements cannot exceed the original purchased quantity. Set override_remaining_quantity to true for a manual support override when a previous replacement also failed.
curl --request POST \
--url https://api.shoppex.io/dev/v1/invoices/{uniqid}/replacements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"full": "false",
"quantity": 1,
"product_id": "prod_2"
}
'{
"data": {
"id": "replacement_1",
"invoice_id": "33333333-3333-4333-8333-333333333333",
"product_id": "prod_2",
"quantity": 1,
"message": "Replacement issued.",
"created_at": 1712059800
}
}Documentation Index
Fetch the complete documentation index at: https://docs.shoppex.io/llms.txt
Use this file to discover all available pages before exploring further.
Use your Shoppex API key in the Authorization header.
Successful response