Skip to navigation

Update Company Profile

Changes your company’s profile. Send only the fields you want to change; anything left out stays as it is. Shared rules: see Writing data.

  • The body is closed: an unknown field is refused with 400 "Unknown field." Counts toward your write budget.
  • At least one field is required: otherwise 400 "Send at least one field to change."
  • name is at most 255 characters. address is at most 1000 characters and is saved on both the company and its billing details, which GET /company/ reads.
  • gst_number is a 15-character GSTIN in capital letters. Setting it switches the company to GST invoices. Unlike the SalaryBox app, the API does not overwrite the address or state from the GST registry, so they stay as you sent them.
  • The first two digits of gst_number must be a valid GST state code, otherwise 400 on gst_number: "Must start with a valid two-digit GST state code, e.g. 29 for Karnataka."
  • The GSTIN’s state and state must agree, because invoices take the place of supply from the state. This is checked whenever gst_number or state is sent, using the saved value for the one you did not send. If they disagree, 400 with the error on state if you sent it, otherwise on gst_number: "The GSTIN {gst_number} is registered in {gst_state}, but the state is {state}. Send the state that matches the GSTIN."
  • pincode is 6 digits and does not start with 0. state is an Indian state name from the GST state list.
  • There is no delete.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
namestringOptional<=255 characters
Company name.
addressstringOptional<=1000 characters
Address. Saved on both the company and its billing details.
gst_numberstringOptionalformat: "^\d{2}[A-Z]{5}\d{4}[A-Z][A-Z\d]Z[A-Z\d]$"

15-character GSTIN in capital letters. Switches the company to GST invoices.

pincodestringOptionalformat: "^[1-9]\d{5}$"

6-digit pincode, not starting with 0.

statestringOptional
Indian state name from the GST state list.

Response

The company profile was updated.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error