🚀 New: Theme Control Plane API — build, customize, and deploy themes programmatically. Learn more →
curl --request POST \
--url https://api.shoppex.io/dev/v1/orders/{id}/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"note": "Completed by external gateway"
}
'{
"data": {
"id": "inv_complete_1",
"uniqid": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
"shop_id": "shop_1",
"customer_id": null,
"customer_email": "[email protected]",
"affiliate_link_id": null,
"affiliate_customer_id": null,
"affiliate_code": null,
"affiliate_discount_amount": 0,
"currency": "USD",
"status": "COMPLETED",
"status_details": "Completed",
"payment_status": "COMPLETED",
"gateway": "PANDABASE",
"flow_type": "PROVIDER_SESSION",
"provider_reference": "ref_complete_1",
"provider_reference_type": "SESSION_ID",
"subtotal": 19.99,
"discount": 0,
"total": 19.99,
"custom_fields": {
"customFields": []
},
"checkout_url": null,
"items": [
{
"product_id": "prod_1",
"product_title": "Starter Pack",
"product_type": "SERVICE",
"variant_title": null,
"quantity": 1,
"unit_price": 19.99,
"total": 19.99
}
],
"created_at": 1711956300,
"updated_at": 1711956360
}
}Completes a pending order server-side through the existing invoice completion pipeline. This is an explicit alias for integrations that look for a completion endpoint.
curl --request POST \
--url https://api.shoppex.io/dev/v1/orders/{id}/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"note": "Completed by external gateway"
}
'{
"data": {
"id": "inv_complete_1",
"uniqid": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
"shop_id": "shop_1",
"customer_id": null,
"customer_email": "[email protected]",
"affiliate_link_id": null,
"affiliate_customer_id": null,
"affiliate_code": null,
"affiliate_discount_amount": 0,
"currency": "USD",
"status": "COMPLETED",
"status_details": "Completed",
"payment_status": "COMPLETED",
"gateway": "PANDABASE",
"flow_type": "PROVIDER_SESSION",
"provider_reference": "ref_complete_1",
"provider_reference_type": "SESSION_ID",
"subtotal": 19.99,
"discount": 0,
"total": 19.99,
"custom_fields": {
"customFields": []
},
"checkout_url": null,
"items": [
{
"product_id": "prod_1",
"product_title": "Starter Pack",
"product_type": "SERVICE",
"variant_title": null,
"quantity": 1,
"unit_price": 19.99,
"total": 19.99
}
],
"created_at": 1711956300,
"updated_at": 1711956360
}
}Use your Shoppex API key in the Authorization header.
Successful response
Show child attributes