---
title: "Credit a facility"
method: POST
path: "/facilities/{facility_id}/credit"
tags: ["Facilities"]
---

# Credit a facility

`POST /facilities/{facility_id}/credit`

## Request

- Base URL: `https://production.pier-finance.com/api`
- URL: `https://production.pier-finance.com/api/facilities/{facility_id}/credit`
- Auth: HTTP bearer

Credit a facility

## Path parameters

- `facility_id` string, required

## Request body

- object
  - `amount` integer, required: The amount to credit the facility, in cents (e.g. 1000 = $10.00)
  - `memo` string, nullable: A memo to attach to the credit
  - `original_disbursement_id` string
  - `original_payment_id` string

## Response `200`

- RefundedPayment
  - `id` string, required
  - `amount` integer, required: The amount of the payment, in cents
  - `facility_id` string, required: The facility_id of the credit facility to make a payment for
  - `status` 'pending' | 'processing' | 'processed' | 'settled' | 'failed' | 'canceled' | 'cancellation_pending', required
  - `transfer_type` 'standard' | 'none' | 'refund' | 'credit' | 'cancellation' | 'suspense_credit', required: Transfer types that are not standard/none are set by special operations like the refund endpoint for example. Special types, like refund, will reference the original transaction transfer type of standard/none to determine if ACH was used if this knowledge is needed (e.g. does an ACH refund need to happen or was this ledgering only).
  - `created_on` string, date-time, required: Timestamp the payment is created on
  - `failure_reason` string, nullable: A reason for the failure if one exists
  - `is_autopay` boolean, nullable: If the payment was a result of an autopay

## Other responses

- `400`
- `401`
- `404`
- `429`
- `500`

---

[API](https://skmtc.dev/pier-finance/apis/pier-api.md) - [All operations](https://skmtc.dev/pier-finance/apis/pier-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pier-finance/apis/pier-api/revisions/08a7c49252b9?raw)
