cURL
Update invoice settings
curl --request PUT \ --url https://sandbox-api.billingrails.com/v1/accounts/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "invoice_settings": { "number_prefix": "BILL", "grace_period_days": 10, "net_term_days": 45 }}'
{ "account": { "object": "account", "id": "acc_IhMUl3rrZ3", "created_at": "2025-02-14T17:33:40.843Z", "external_id": "test_account", "type": "individual", "name": "John Doe Jr.", "email": "john.doe.jr@example.com", "default_currency": "NGN", "country": "NG", "invoice_settings": { "number_prefix": "BILL", "grace_period_days": 10, "net_term_days": 45 }, "preferred_locale": "es", "metadata": { "account_manager": "jane.smith@billingrails.com", "contract_end_date": "2025-12-31", "payment_terms": "net_30" } } }
Updates an account.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Account payload
The body is of type object.
object
Account updated
The response is of type object.