Operation
Add Account Receivable to Profile (Customer or Company)
Style |
---|
table { width: 100%; } body.page-gadget { padding-top: 20px; } .separator{ margin: 5px 0; } |
Div | ||
---|---|---|
| ||
POST |
Div | ||
---|---|---|
| ||
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
Code Block | ||||
---|---|---|---|---|
| ||||
POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/profile/2/accountReceivable |
Body
An element of type AccountReceivable.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Example body
Code Block | ||
---|---|---|
| ||
{ "code": "123456789A", "name": "John", "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 | ||
---|---|---|
| ||
{ "httpStatus": "201", "userMessage": "Success", "technicalMessage": "Success AccountReceivable added to Profile", "errorCode": "0", "moreInfo": "0", "id": 18, "entity": null, "responseApiErrorList": null } |
Code Block | ||
---|---|---|
| ||
{
"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 | ||
---|---|---|
| ||
{
"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
} |