Private preview of the new site. Not live.

invoices.refund

Refund part or all of a payment (owner or office). The refund shows up once the processor confirms it.

WhoA person's own sign-in only (agent tokens are refused)
RESTPOST /v1/invoices/refund
MCP toolNot an MCP tool
Writesyes, send an Idempotency-Key
AreaInvoices and payments (unlimited)

When to use it

Agents can't call this. The owner or office refunds with their own sign-in.

What to tell the owner

Do the refund yourself with your own sign-in. It shows once Stripe confirms it.

Input

FieldTypeRequired
charge_idstringyes
amount_minorintegeryes

Example

POST https://doingwork.work/v1/invoices/refund
content-type: application/json
Idempotency-Key: 3f1c...

{
  "charge_id": "00000000-0000-4000-8000-000000000000",
  "amount_minor": 50000
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

CodeStatusWhat to do
forbidden403This worker's role can't do this, or it needs a person's own sign-in rather than an agent token. Tell the person who can.
conflict409The record is in the wrong state for this, for example sending a quote that's already signed. Read it again and pick the next step.
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.