---
title: "Set Card On File"
method: PUT
path: "/api/system/supplier-accounts/{supplier_key}/card-on-file"
tags: ["system"]
---

# Set Card On File

`PUT /api/system/supplier-accounts/{supplier_key}/card-on-file`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/system/supplier-accounts/{supplier_key}/card-on-file`
- Auth: none declared

Frederick says whether his card is really saved on this shop's account
(`part_suppliers.payment_method_on_file`), the one fact Rooster cannot see and
the gate on every purchase there (FLR-132 S7; 2026-09-30: set it "only after
Frederick confirms a card is genuinely on file"). Only the company owner can
say so, by name of the shop's login card (`SUPPLIER_ACCOUNT_RECIPES`).

## Path parameters

- `supplier_key` string, required

## Request body

- CardOnFileRequest
  - `on_file` boolean, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-18** `a49977d4f787`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/system/supplier-accounts/:supplier_key/card-on-file/put.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
