Accounts
Update an account
Updates an account.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
Account payload
type?string
Type of account.
Value in
"individual" | "organization"name?string
Name of the account.
email?string
Email of the account.
country?string
Country of the account.
default_currency?string
Default currency of the account.
external_id?string
External unique reference ID or identifier for this account.
timezone?string
Timezone for the account.
shipping_address?
Shipping address of the account.
billing_address?
Shipping address of the account.
invoice_settings?
Invoice settings for the account.
metadata?object
Additional data related to the account.
Response Body
application/json
curl -X PUT "https://api.sandbox.billingrails.com/v1/accounts/acc_IhMUl3rrZ3" \ -H "Content-Type: application/json" \ -d '{ "invoice_settings": { "grace_period_days": 10, "net_term_days": 45, "number_prefix": "BILL" } }'{
"account": {
"object": "account",
"id": "acc_IhMUl3rrZ3",
"type": "individual",
"name": "John Doe",
"email": "john@example.com",
"country": "NG",
"created_at": "2025-02-14T17:33:40.843Z",
"default_currency": "USD",
"external_id": "test_account",
"timezone": "UTC",
"invoice_settings": {
"grace_period_days": 0,
"net_term_days": 30,
"number_prefix": "INV"
},
"metadata": null
},
"meta": {
"request_id": "req_IhMUl3rrZ3"
}
}