Mark pending invoice completed
Mark a pending invoice completed and start the normal delivery flow.
Mark a pending invoice completed and start the normal delivery flow, including customer delivery notifications.
Important
SellApp normally handles completion after payment is confirmed. Use manual completion only after independently confirming payment or deliberately authorizing delivery without it. This action can release the purchased products.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
invoice*integerThe invoice path parameter.
X-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
application/json- body
expected_status?|Optional optimistic-concurrency guard. The mutation fails when the current order status no longer matches this value.
"PENDING""REVERSED""PARTIAL""VOIDED""REFUNDED""PAID""COMPLETED""DISPUTING""REVIEW""FAILED"nullSuccessful response.
application/json- response
id*integerpayment*status*webhooks*array<>feedback*string|nullcreated_at*stringdate-timeupdated_at*stringdate-timestore_id*integercoupon_id*integer|nullsubscription_id*integer|nullcustomer_information*product_variants*array<>curl -X PATCH 'https://sell.app/api/v2/invoices/0/mark-completed' \ -H 'X-STORE: launch-lab' \ -H 'Content-Type: application/json' \ -d '{ "expected_status": "PENDING"}'{ "id": 1, "payment": { "fee": { "base": "0", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "0", "inclusive": "0" } }, "gateway": { "data": { "total": { "base": "1999", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "1999", "inclusive": "1999" } }, "customer_email": "maya@example.com", "transaction_id": "CQEGF35V" }, "type": "COINBASE" }, "subtotal": { "base": "1999", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "1999", "inclusive": "1999" } }, "expires_at": "2024-01-10T19:33:11.000000Z", "full_price": { "base": "1999", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "1999", "inclusive": "1999" } }, "original_amount": { "base": "1999", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "1999", "inclusive": "1999" } }, "refund_currency": null, "refunded_total_cents": 0 }, "status": { "history": [ { "setAt": "2024-01-09T19:33:11.000000Z", "status": "PENDING", "updatedAt": "2024-01-09T21:17:46.000000Z" } ], "status": { "setAt": "2024-01-09T21:17:46.000000Z", "status": "COMPLETED", "updatedAt": "2024-01-09T21:17:46.000000Z" } }, "webhooks": [], "feedback": "", "created_at": "2024-01-09T19:33:11.000000Z", "updated_at": "2024-01-09T21:17:46.000000Z", "store_id": 1, "coupon_id": null, "subscription_id": null, "customer_information": { "id": 1034, "email": "maya@example.com", "country": "Germany", "location": "Munich", "ip": "1.3.3.7", "proxied": false, "browser_agent": "Mozilla/4.9 (Windows 98; sl-SI; rv:1.9.1.20) Gecko/20110422 Firefox/21.0", "vat": { "amount": "0", "country": "US" }, "discord_data": null, "billing_details": null }, "product_variants": [ { "id": 117214, "product_id": 97850, "title": "Store Credits" } ]}