POST
/
invoice_account_number
curl --request POST \
  --url https://api.treasuryprime.com/invoice_account_number \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "account_id": "acct_1234567890"
}'
{
  "account_id": "acct_1234567890",
  "account_number": "1234567890",
  "active": true,
  "bank_id": "bank_treasuryprime",
  "id": "acctnum_1234567890",
  "org_id": "org_1234567890",
  "tags": [],
  "userdata": null
}

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
The invoice_account_number to create
account_id
string
required

ID of the account with which the object is associated. Filterable.

active
boolean

Flag indicating whether payments with this account number will post. Deafults to true. Filterable.

tags
string[]

Tags associated with the object. Filterable.

userdata
object

Arbitrary data the user can attach to the object

Response

200 - application/json
The invoice_account_number created
account_id
string

ID of the account with which the object is associated. Filterable.

account_number
string

Account number for use with incoming payments

active
boolean

Flag indicating whether payments with this account number will post. Deafults to true. Filterable.

bank_id
string

ID of the bank with which the object is associated

id
string

Unique identifier for object

org_id
string

ID of the organization with which the object is associated

tags
string[]

Tags associated with the object. Filterable.

userdata
object

Arbitrary data the user can attach to the object