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
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | 0 | Unique identificator of the chain. |
propertyId | Integer | true | path parameter | 0 | Unique identificator of the property. |
propertyIdList | List<Integer> | false | request parameter | 0 |
Example request
POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/profile/2/accountReceivable
Body
An element of type AccountReceivable.
AccountReceivable. AccountReceivable. <10 length AccountReceivable. <50 lengthField Type Required Description id Integer true Unique identifier for the code String true Code of the name String true Name of the accountReceivableStatementSendType AccountReceivableStatementSendType false emailStatementSend String false limitDueDay Integer false limitAmount BigDecimal false accountReceivableEmailList AccountReceivableEmail false accountReceivablePhoneList AccountReceivablePhone false accountReceivableAddressList AccountReceivableAddress false remark String false MAX 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 }