members.dev
Invoices

Update Invoice

Set the due instant (`due_at`). Reconciliation (past_due, queue `updates_at`) uses `due_at`. Allowed only while status is open, partially paid, or past due.

PATCH
/v1/invoices/{invoice_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

invoice_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://api.members.dev/v1/invoices/string" \  -H "Content-Type: application/json" \  -d '{    "due_at": null  }'
{
  "id": "string",
  "user_ids": [
    "string"
  ],
  "status": "open",
  "due_at": null,
  "amount_original": 0,
  "amount_due": 0,
  "currency": "string",
  "subscription": {
    "subscription_id": "string",
    "period_starts_at": {},
    "period_ends_at": {}
  },
  "state_transitions": {
    "opened_at": {},
    "past_due_at": {},
    "paid_at": {},
    "voided_at": {}
  },
  "next_update": {
    "updates_at": null,
    "update_type": "past_due"
  },
  "created_at": null,
  "updated_at": null
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}