Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Add Account Receivable to Profile (Customer or Company)

Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: green; color: white; display: inline-block; padding: 5px; border-radius: 3px;

POST



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

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

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


Body

An element of type AccountReceivable.

Insert excerpt
AccountReceivable
AccountReceivable
nopaneltrue


Example body

Code Block
themeDJango
{
	"code": "123456789A",
	"name": "JohnAbata",
	"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

Code Block
themeDJango
{
    "httpStatus": "201",
    "userMessage": "Success",
    "technicalMessage": "Success AccountReceivable added to Profile",
    "errorCode": "0",
    "moreInfo": "0",
    "id": 18,
    "entity": null,
    "responseApiErrorList": null
}


Code Block
themeDJango
{
	"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
}


Code Block
themeDJango
{
	"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
}