Skip to main content
PATCH
/
dev
/
v1
/
invoices
/
{uniqid}
Update invoice
curl --request PATCH \
  --url https://api.shoppex.io/dev/v1/invoices/{uniqid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "gateway": "PANDABASE",
  "apmMethod": "card",
  "name": "Alex",
  "surname": "Buyer",
  "addressLine1": "Example Street 1",
  "addressCity": "Berlin",
  "addressCountry": "DE",
  "addressPostalCode": "10115"
}
'
{
  "data": {
    "id": "inv_2",
    "uniqid": "22222222-2222-4222-8222-222222222222",
    "type": "PRODUCT",
    "shop_id": "shop_1",
    "customer_email": "[email protected]",
    "currency": "USD",
    "total": 19.99,
    "total_display": 19.99,
    "status": "PENDING",
    "payment_status": "PENDING",
    "gateway": "PANDABASE",
    "items": [
      {
        "product_id": "prod_2",
        "product_title": "Pro Pack",
        "quantity": 1,
        "unit_price": 19.99,
        "total": 19.99,
        "delivered_items": {
          "service_text": "Join the private channel"
        }
      }
    ],
    "created_at": 1711957200,
    "updated_at": 1711957800
  }
}

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