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." nameis at most 255 characters.addressis at most 1000 characters and is saved on both the company and its billing details, whichGET /company/reads.gst_numberis 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_numbermust be a valid GST state code, otherwise400ongst_number:"Must start with a valid two-digit GST state code, e.g. 29 for Karnataka." - The GSTIN’s state and
statemust agree, because invoices take the place of supply from the state. This is checked whenevergst_numberorstateis sent, using the saved value for the one you did not send. If they disagree,400with the error onstateif you sent it, otherwise ongst_number:"The GSTIN {gst_number} is registered in {gst_state}, but the state is {state}. Send the state that matches the GSTIN." pincodeis 6 digits and does not start with 0.stateis 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.
name
Company name.
address
Address. Saved on both the company and its billing details.
gst_number
15-character GSTIN in capital letters. Switches the company to GST invoices.
pincode
6-digit pincode, not starting with 0.
state
Indian state name from the GST state list.
Response
The company profile was updated.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
