Skip to main content
POST
Create a payable

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
acting_user_id
integer
required

The ID of the user performing this action. This will be displayed in the developer dashboard.

number
string
required
description
string
external_id
string
ap_vendor_id
string<uuid>
ap_payment_method_id
string<uuid>
amount
number

Total payable amount in cents.

Required range: x >= 1
funding_source
enum<string>

The funding source for the payable.

If dots_balance is specified, uses the app's Dots wallet balance to pay the payable.

If ach is specified, uses a bank transfer from the app's linked bank account to pay the payable.

If not specified, defaults to ach.

Available options:
dots_balance,
ach
file
file

Base64 encoded pdf file to attach to payable.

items
object[]

Response

201 - application/json

Created

action_history
object[]
amount
number

Total payable amount in cents.

funding_source
enum<string>
Available options:
dots_balance,
ach
ap_payment_method_id
string<uuid>
ap_payment_method_name
string
ap_vendor_id
string<uuid>
ap_vendor_name
string
api_app_id
string<uuid>
approval_steps
object[]
created
string<date-time>
currency
string
description
string | null
external_id
string | null
file_url
string<uri> | null
id
string<uuid>
items
object[]
number
string
status
string
status_history
object[]
transfer_history
object[]
transfer_id
string<uuid>
updated
string<date-time>