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

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

uniqid
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response

data
object