Create Biz partner addresses
POST/biz-partners/{id}/addresses
Create Biz partner addresses.
Privileges: biz-core.manage
Audit event:
- biz.core.v2.biz.partner.address.add
Errors:
- BIZ_CORE:BIZ_PARTNER_NOT_FOUND - Biz partner not found.
Validation errors:
- BIZ_CORE:ADDRESS_TYPE_NOT_VALID - Address type not valid.
- BIZ_CORE:ADDRESS_TYPE_NOT_SUPPORTED - Address type not supported.
- BIZ_CORE:ADDRESS_TYPE_MUST_BE_PROVIDED - Address type must be provided.
- BIZ_CORE:ADDRESS_TYPE_LEGAL_NOT_FOUND - Address type legal not found.
- BIZ_CORE:ADDRESS_TYPE_HEADQUARTER_NOT_FOUND - Address type headquarter not found.
- BIZ_CORE:ADDRESS_TYPE_INVOICE_NOT_FOUND - Address type invoice not found.
- BIZ_CORE:LEGAL_ADDRESS_ALREADY_EXIST - Legal address already exist.
- BIZ_CORE:HEADQUARTER_ADDRESS_ALREADY_EXIST - Headquarter address already exist.
- BIZ_CORE:INVOICE_ADDRESS_ALREADY_EXIST - Invoice address already exist.
- BIZ_CORE:INVOICE_HARDCOPY_ADDRESS_ALREADY_EXIST - Invoice hardcopy address already exist.
- BIZ_CORE:COUNTRY_NOT_VALID - Country not valid.
- BIZ_CORE:COUNTRY_NOT_FOUND - Country not found.
- BIZ_CORE:COUNTRY_IN_BIZ_PARTNER_ADDRESS_MUST_BE_ACTIVE - Country in biz partner address must be active.
- BIZ_CORE:COUNTRY_IN_BIZ_PARTNER_ADDRESS_MUST_BE_PROVIDED - Country in biz partner address must be provided.
- BIZ_CORE:INVOICE_ADDRESS_MUST_HAVE_SOME_COUNTRY_WITH_LEGAL_ADDRESS! - Invoice Address must have same country with Legal Address!
- BIZ_CORE:BIZ_PARTNER_ADDRESS_NAME_CANNOT_BE_LONGER_THAN_150_CHARACTERS - Biz Partner Address name cannot be longer than 150 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_BRANCH_NAME_CANNOT_BE_LONGER_THAN_150_CHARACTERS - Biz Partner Address branchName cannot be longer than 150 characters
- BIZ_CORE:BIZ_PARTNER_ADDRESS_MUST_BE_PROVIDED - Biz Partner Address must be provided.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_BRANCH_NAME_CANNOT_BE_LONGER_THAN_255_CHARACTERS - Biz Partner Address cannot be longer than 255 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_PO_BOX_CANNOT_BE_LONGER_THAN_20_CHARACTERS - Biz Partner Address Po box cannot be longer than 20 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_POSTAL_CODE_CANNOT_BE_LONGER_THAN_20_CHARACTERS - Biz Partner Address postal code cannot be longer than 20 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_CITY_MUST_BE_PROVIDED - Biz Partner Address city must be provided.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_CITY_CANNOT_BE_LONGER_THAN_100_CHARACTERS - Biz Partner Address city cannot be longer than 100 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_PROVINCE_CANNOT_BE_LONGER_THAN_100_CHARACTERS - Biz Partner Address province cannot be longer than 100 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_ATTN_PERSON_CANNOT_BE_LONGER_THAN_100_CHARACTERS - Biz Partner Address attn person cannot be longer than 100 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_E_MAIL_CANNOT_BE_LONGER_THAN_255_CHARACTERS - Biz Partner Address email cannot be longer than 255 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_E_MAIL_NOT_VALID - Biz Partner Address email not valid.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_PHONE_CANNOT_BE_LONGER_THAN_30_CHARACTERS - Biz Partner Address phone cannot be longer than 30 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_PHONE_NOT_VALID - Biz Partner Address phone not valid.
- BIZ_CORE:ADDRESS_TYPE_IS_ALREADY_SET_IN_LIST_OF_COPIES - Address type is already set in list of copies.
- BIZ_CORE:ADDRESS_TYPE_IS_ALREADY_SET_AND_CAN_NOT_BE_IN_LIST_OF_COPIES - Address type is already set and can not be in list of copies.
- BIZ_CORE:LEGAL_ADDRESS_CANNOT_BE_IN_LIST_OF_COPIES - Legal address cannot be in list of copies.
- BIZ_CORE:HEADQUARTER_ADDRESS_CANNOT_BE_A_COPY_ADDRESS_EXCEPT_FROM_A_LEGAL_ADDRESS - Headquarter address can not be a copy address except from a legal address.
- BIZ_CORE:INVOICE_ADDRESS_COPY_ALLREADY_EXIST - Invoice address copy already exists!
- BIZ_CORE:INVOICE_ADDRESS_COPY_MUST_HAVE_SAME_COUNTRY_WITH_LEGAL_ADDRESS - Invoice address copy must have same country with Legal Address!
- BIZ_CORE:INVOICE_HARDCOPY_ADDRESS_COPY_ALLREADY_EXIST - Invoice hardcopy address copy already exists!
- BIZ_CORE:BIZ_PARTNER_ADDRESS_COPY_TO_ADDRESSES_NAME_CANNOT_BE_LONGER_THAN_150_CHARACTERS - Biz Partner Address copy to addresses name cannot be longer than 150 characters.
- BIZ_CORE:BIZ_PARTNER_ADDRESS_COPY_TO_ADDRESSES_BRANCH_NAME_CANNOT_BE_LONGER_THAN_150_CHARACTERS - Biz Partner Address copy to addresses branchName cannot be longer than 150 characters.
Request
Responses
- 200
- default
Biz partner addresses created successfully
unexpected error