Facilities

Create a disbursement for a facility

POST

Create a disbursement for a facility. If disbursements_ach_enabled is false, use none for transfer_type.

Path parameters

facility_idstringRequired

Request

This endpoint expects an object.
amount
integerRequired
The amount of the disbursement, in cents (e.g. 1000 = $10.00)
transfer_type
enumRequired
The type of transfer to use for the disbursement
Allowed values: standardnext_daysame_daynone
disbursement_bank_account
objectOptional
The bank account to disburse to

Response

This endpoint returns an object
id
string
The id of the disbursement
facility_id
string
amount
integer
The amount of the disbursement, in cents (e.g. 1000 = $10.00)
status
enum
The status of the disbursement
Allowed values: pendingprocessingsettledfailedcancelled
created_on
datetime
Timestamp the disbursement object is created on
transfer_type
enum
The type of transfer to use for the disbursement
Allowed values: standardnext_daysame_daynone
failure_reason
stringOptional
A reason for the failure if any exists
date
stringOptional
The date of the disbursement (YYYY-MM-DD)

Errors

POST
1curl -X POST https://production.pier-finance.com/api/facilities/fac_18e5a3726b3943cda2635f40e1041ba4/disbursements \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "amount": 100000,
6 "transfer_type": "standard",
7 "disbursement_bank_account": {
8 "bank_account_number": "98989898",
9 "bank_routing_number": "021000021",
10 "type": "checking"
11 }
12}'
1{
2 "id": "dsb_18e5a3726b3943cda2635f40e1041ba4",
3 "facility_id": "fac_18e5a3726b3943cda2635f40e1041ba4",
4 "amount": 100000,
5 "status": "pending",
6 "created_on": "2023-02-27T00:00:00Z",
7 "transfer_type": "standard",
8 "failure_reason": null,
9 "date": "2023-02-27"
10}