Add AccountReceivable To Profile [POST]

Operation

Add Account Receivable to Profile (Customer or Company)

POST
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/profile/{profileId}/accountReceivable


Request


PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter0Unique identificator of the chain.
propertyIdIntegertruepath parameter0Unique identificator of the property.
propertyIdListList<Integer>falserequest parameter0

Example request

POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/profile/2/accountReceivable

Body

An element of type AccountReceivable.


FieldTypeRequiredDescription
idIntegertrueUnique identifier for the

AccountReceivable.

codeStringtrueCode of the

AccountReceivable. <10 length

nameStringtrueName of the

AccountReceivable. <50 length

accountReceivableStatementSendTypeAccountReceivableStatementSendTypefalse
emailStatementSendStringfalse
limitDueDayIntegerfalse
limitAmountBigDecimalfalse
accountReceivableEmailListAccountReceivableEmailfalse
accountReceivablePhoneListAccountReceivablePhonefalse
accountReceivableAddressListAccountReceivableAddressfalse
remarkStringfalseMAX 255

Example body

{
	"code": "123456789A",
	"name": "Abata",
	"accountReceivableAddressList": [
		{
			"city": "Barcelona",
			"postalCode": "08001",
			"street": "c/Diputació 314",
			"countryCode": "ESP",
			"stateProvCode": "ES-B",
			"municipalityCode": "019"
		}
	],
	"accountReceivableEmailList": [
		{
			"email": "example@gmail.com"
		}
	],
	"accountReceivablePhoneList": [
		{
			"phoneNumber": "123456789"
		}
	]
}

Response

ResponseApiMessage

Example response

{
    "httpStatus": "201",
    "userMessage": "Success",
    "technicalMessage": "Success AccountReceivable added to Profile",
    "errorCode": "0",
    "moreInfo": "0",
    "id": 18,
    "entity": null,
    "responseApiErrorList": null
}
{
	"httpStatus": "400",
	"userMessage": "Exception AccountReceivable Code length >10 : 987654321AAAAA",
	"technicalMessage": "Exception AccountReceivable Code length >10 : 987654321AAAAA",
	"userException": null,
	"technicalException": "com.tesipro.pms.exception.BusinessLogicException",
	"moreInfo": "",
	"remoteHost": "127.0.0.1",
	"pathError": "/api/v1/con/chain/1/profile/36/accountReceivable",
	"timestamp": 1730674800
}
{
	"httpStatus": "400",
	"userMessage": "Exception AccountReceivable Name length >50 : adsfkjlhaksjfhalkhadsjklhdflkajhflkdjaladsjhfkasdlhdfklashflkdjas",
	"technicalMessage": "Exception AccountReceivable Name length >50 : adsfkjlhaksjfhalkhadsjklhdflkajhflkdjaladsjhfkasdlhdfklashflkdjas",
	"userException": null,
	"technicalException": "com.tesipro.pms.exception.BusinessLogicException",
	"moreInfo": "",
	"remoteHost": "127.0.0.1",
	"pathError": "/api/v1/con/chain/1/profile/36/accountReceivable",
	"timestamp": 1730674800
}