Connectors and webhooks

notion.invoices.import

Link existing Notion invoice rows to Oatmilk invoices. Status differences become suggestions for review; nothing is overwritten. Supply selections of pageId and invoiceId, plus idempotencyKey.

POST/api/v1/accounting/notion.invoices.import

Permissions

accounting:readaccounting:write

Who can call it

admin, finance

Retries

Idempotency key required

MCP

accounting_notion_invoices_import

Reaches outside Oatmilk

It emails people or calls another service.

Fields

  • selectionsarray of objectsRequired

    1–100 items

  • idempotencyKeystringRequired

    Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match.

    8–200 characters

Example

curl https://app.getoatmilk.com/api/v1/accounting/notion.invoices.import \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "selections": [
    {
      "pageId": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e",
      "invoiceId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a"
    }
  ]
}'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/notion.invoices.import
curl https://app.getoatmilk.com/api/v1/accounting/notion.invoices.import \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "selections": [
    {
      "pageId": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e",
      "invoiceId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a"
    }
  ]
}'

More in Connectors and webhooks.