Create a subsidiary
Changed onCreate a new subsidiary.
Request
- Base URLhttps://developer.productive.io (the document declares no server; this is the origin it was published from)
- URLhttps://developer.productive.io/api/v2/subsidiaries
- Authnone declared
Request body
Example request
{
"data": {
"type": "subsidiaries",
"attributes": {
"name": "Acme Agency EU"
}
}
}Response
Single subsidiary
Example response
{
"data": {
"id": "2",
"type": "subsidiaries",
"attributes": {
"name": "Acme Agency EU",
"archived_at": null,
"show_delivery_date": false,
"invoice_number_format": "INV-{YYYY}-{NNN}",
"invoice_number_scope": "subsidiary"
},
"relationships": {
"bill_from": {
"data": {
"type": "contact_entries",
"id": "891"
}
},
"default_tax_rate": {
"data": {
"type": "tax_rates",
"id": "8"
}
},
"default_bank_account": {
"data": {
"type": "bank_accounts",
"id": "5"
}
},
"default_document_type": {
"data": {
"type": "document_types",
"id": "3"
}
}
}
},
"included": []
}Changes
- warning
added the new
bad_decimal_formatenum value to the//response property for the response status - warning
added the new
non_finite_numberenum value to the//response property for the response status - warning
added the new
null_bytes_in_paramsenum value to the//response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- warning
- breaking
the
//response's property type changed fromstringto no type, and format fromdate-timeto no format for status - breaking
the
//response's property type changed fromintegerto no type for status - breaking
the
//response's property type changed fromobjectto no type for status - breaking
the
//response's property type changed fromstringto no type for status - breaking
the
//response's property type changed fromstringto no type for status - breaking
the
//response's property type changed fromstringto no type for status - warning
deleted the
headerrequest parameterX-Organization-Id
This list may be incomplete.
- breaking