Skip to main content
POST
/
dev
/
v1
/
invoices
/
{uniqid}
/
replacements
Issue invoice replacement
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.

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

uniqid
string
required

Body

full
Available options:
true
quantity
number | null
product_id
string | null
Maximum string length: 50
reason
string | null
Maximum string length: 500
override_remaining_quantity
boolean

Response

200 - application/json

Successful response

data
object