This page provides the list of events and associated payload for internal events (via RabbitMQ/AWS MQ) and external events (via EventBridge) for the Accounts microservice.
External Events via EventBridge
The following events contain the entity changed in the event message payload.
List of Events
| S.No. | API call | Call detail | Event Type | Identifier |
|---|---|---|---|---|
| 1. | POST | CreateAccount | accountservice/account/create | response_account.id |
| 2. | PUT | UpdateAccount | accountservice/account/update | response_account.id |
| 3. | POST | CreateAccountBuyer | accountservice/accountbuyer/create | response_accountBuyer.id |
| 4. | POST | CreateAccountSeller | accountservice/accountseller/create | response_accountSeller.id |
| 5. | POST | CreateAccountType | accountservice/accounttype/create | response_accountType.id |
| 6. | POST | CreateAddress | accountservice/address/create | response_address.id |
| 7. | POST | CreateAttribute | accountservice/attribute/create | response_attribute.identifier |
| 8. | POST | CreateContract | accountservice/contract/create | response_contract.id |
| 9. | POST | CreateCostCentre | accountservice/costcentre/create | response_costCentre.id |
| 10. | POST | CreatePayment | accountservice/payment/create | response_payments.id |
| 11. | POST | CreatePaymentTerm | accountservice/paymentterm/create | response_paymentTerm.id |
| 12. | POST | CreateTeam | accountservice/team/create | response_team.id |
| 13. | DELETE | DeleteAccountBuyer | accountservice/accountbuyer/delete | request_accountBuyer.id |
| 14. | DELETE | DeleteAccountProperties | accountservice/accountproperties/delete | request_accountproperties.id |
| 15. | DELETE | DeleteAccountSeller | accountservice/accountseller/delete | request_accountSeller.id |
| 16. | DELETE | DeleteAccount | accountservice/account/delete | request_account.id |
| 17. | DELETE | DeleteAccountType | accountservice/accounttype/delete | request_accountType.id |
| 18. | DELETE | DeleteAddress | accountservice/address/delete | request_address.id |
| 19. | DELETE | DeleteAttribute | accountservice/attribute/delete | request_attribute.identifier |
| 20. | DELETE | DeleteBudget | accountservice/budget/delete | request_budget.id |
| 21. | DELETE | DeleteContractProperties | accountservice/contractproperties/delete | request_contractProperties.id |
| 22. | DELETE | DeleteContract | accountservice/contract/delete | request_contract.id |
| 23. | DELETE | DeleteCostCentre | accountservice/costcentre/delete | request_costCentre.id |
| 24. | DELETE | DeleteDocument | accountservice/document/delete | request_document.id |
| 25. | DELETE | DeletePayment | accountservice/payment/delete | request_payments.id |
| 26. | DELETE | DeletePaymentTerm | accountservice/paymentterm/delete | request_paymentTerm.id |
| 27. | DELETE | DeleteTeam | accountservice/team/delete | request_team.id |
| 28. | PATCH | PatchUpdateAccountType | accountservice/accounttype/patch | response_accountType.id |
| 29. | PATCH | PatchUpdateAttributes | accountservice/attributes/patch | response_attribute.identifier |
| 30. | PUT | UpdateAccountProperties | accountservice/accountproperties/update | response_accountProperty.id |
| 31. | PUT | UpdateContractProperties | accountservice/contractproperties/update | response_contractProperty.id |
| 32. | PATCH | UpdateAccountBuyer | accountservice/accountbuyer/patch | response_accountBuyer.id |
| 33. | PATCH | UpdateAccountSeller | accountservice/accountbuyer/patch | response_accountSeller.id |
| 34. | PATCH | UpdateAddress | accountservice/address/patch | response_address.id |
| 35. | PATCH | UpdateContract | accountservice/contract/patch | response_contract.id |
| 36. | PATCH | UpdateCostCentre | accountservice/costcentre/patch | response_costCentre.id |
| 37. | PATCH | UpdatePayment | accountservice/payment/patch | response_payments.id |
| 38. | PATCH | UpdatePaymentTerm | accountservice/paymentterm/patch | response_paymentTerm.id |
| 39. | PATCH | UpdateTeam | accountservice/team/patch | response_team.id |
Payload
CreateAccount
Event Type: accountservice/account/create
{
"version": "0",
"id": "b8236a02-f8d6-debe-916c-57571d34d85f",
"detail-type": "accountservice/account/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:05Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "30317",
"timestamp": 1715233745897,
"payload": {
"responseCode": "ACACCRE0000",
"responseMessage": "Collection Create Success",
"account": {
"id": 30317,
"collectionId": 4471,
"name": "bzpFBdL",
"size": "<500",
"phoneNumber": "+919876543210",
"dunsNumber": "123456789",
"referenceAttribute2": 0,
"taxNumber": "123456789",
"typeId": 84865,
"accountType": "sFgSQVnf",
"status": "active",
"parentAccountId": 0,
"createdTime": 1715233745845,
"updatedTime": 1715233745845,
"properties": [
{
"id": 10094,
"attributeId": "1715233737668",
"value": "dlPllRZ",
"accountId": 30317,
"sequence": 0.0,
"createdBy": 1,
"updatedBy": 1
}
],
"createdBy": 1,
"updatedBy": 1,
"costCentre": [
{
"id": 35975,
"accountId": 30317,
"name": "Default Cost Centre",
"status": "active",
"createdTime": 1715233745863,
"updatedTime": 1715233745863,
"createdBy": 1,
"updatedBy": 1
}
],
"team": [
{
"id": 35418,
"accountId": 30317,
"costCentreId": 35975,
"name": "Default Team",
"status": "active",
"createdTime": 1715233745873,
"updatedTime": 1715233745873,
"createdBy": 1,
"updatedBy": 1
}
]
}
},
"collectionId": "4471",
"eventType": "accountservice/account/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateAccount
Event Type: accountservice/account/update
{
"version": "0",
"id": "1e77efec-0f25-4cfe-ac27-d23adfdf926a",
"detail-type": "accountservice/account/update",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:42Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "30317",
"timestamp": 1715233782856,
"payload": {
"responseCode": "ACACUPD0000",
"responseMessage": "Account Update Success",
"account": {
"id": 30317,
"collectionId": 4471,
"name": "tGkTlbz",
"size": "<500",
"phoneNumber": "+919876543210",
"dunsNumber": "123456789",
"referenceAttribute2": 0,
"taxNumber": "123456789",
"typeId": 84865,
"accountType": "sFgSQVnf",
"status": "active",
"parentAccountId": 0,
"createdTime": 1715233746000,
"updatedTime": 1715233782848,
"properties": [
],
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/account/update",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreateAccountBuyer
Event Type: accountservice/accountbuyer/create
{
"version": "0",
"id": "598f7560-01eb-b6af-4425-973eb70ef9fb",
"detail-type": "accountservice/accountbuyer/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:24Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "29154",
"timestamp": 1715233764606,
"payload": {
"responseCode": "ACABCRE0000",
"responseMessage": "AccountBuyer Create Success.",
"accountBuyer": {
"id": 29154,
"userId": "Nq88do08d",
"teamId": 35419,
"accountId": 30317,
"createdTime": 1715233764594,
"updatedTime": 1715233764594,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/accountbuyer/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreateAccountSeller
Event Type: accountservice/accountseller/create
{
"version": "0",
"id": "6744db16-9ccb-ef76-cdf0-555891e81163",
"detail-type": "accountservice/accountseller/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:39Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "14166",
"timestamp": 1715233779203,
"payload": {
"responseCode": "ACASCRE0000",
"responseMessage": "Create Account Buyer Success",
"accountSeller": {
"id": 14166,
"userId": "7880",
"accountId": 30317,
"createdTime": 1715233779190,
"updatedTime": 1715233779190,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/accountseller/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreateAccountType
Event Type: accountservice/accounttype/create
{
"version": "0",
"id": "8aef90ff-2b51-c153-67b4-ade5d42da7ce",
"detail-type": "accountservice/accounttype/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:02Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "84865",
"timestamp": 1715233742154,
"payload": {
"responseCode": "ACATCRE0000",
"responseMessage": "AccountType Create Success ",
"accountType": {
"id": 84865,
"name": "sFgSQVnf",
"description": "QaflC",
"collectionId": 4471,
"createdTime": 1715233742142,
"updatedTime": 1715233742142,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/accounttype/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreateAddress
Event Type: accountservice/address/create
{
"version": "0",
"id": "d17fa427-bce0-e489-2bc7-e0e338511398",
"detail-type": "accountservice/address/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:35Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "18409",
"timestamp": 1715233775550,
"payload": {
"responseCode": "ACADCRE0000",
"responseMessage": "Create Address Success",
"address": {
"id": 18409,
"accountId": 30317,
"type": "BillingAddreess",
"name": "Kieran Hyde",
"phone": "527-713-5795",
"email": "adena.weeks@yandex.net",
"street1": "14003 NorthJames Ln.",
"street2": "1494 EastNorway Way",
"street3": "48477 WestAguilar Ave.",
"city": "Ontario",
"country": "Monaco",
"county": "a88c143d-17d9-424b-9390-1e786fa4cd92",
"state": "Colorado",
"zipCode": "09405",
"validated": false,
"createdTime": 1715233775538,
"updatedTime": 1715233775538,
"createdBy": 1,
"updatedBy": 1,
"default": false
}
},
"collectionId": "4471",
"eventType": "accountservice/address/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreateAttribute
Event Type: accountservice/attribute/create
{
"version": "0",
"id": "b958591d-ceb8-7a0d-e552-2954301f1ac6",
"detail-type": "accountservice/attribute/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:48:57Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "1715233737668",
"timestamp": 1715233737712,
"payload": {
"responseCode": "ACATTRCRE0000",
"responseMessage": "Attribute create sucess.",
"attribute": {
"name": "Accountsattribute",
"identifier": "1715233737668",
"status": "ACTIVE",
"required": false,
"type": "ACCOUNTS",
"fieldtype": "LONGSTRING",
"validation": "1to10",
"sequence": 0.0,
"createdTime": 1715233737698,
"updatedTime": 1715233737698,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/attribute/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreateContract
Event Type: accountservice/contract/create
{
"version": "0",
"id": "37f45531-a93c-82db-a739-d477747a660e",
"detail-type": "accountservice/contract/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:20Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "14517",
"timestamp": 1715233760909,
"payload": {
"responseCode": "ACCTCRE0000",
"responseMessage": "Contract Update Success",
"contract": {
"id": 14517,
"accountId": 30317,
"name": "contract_171523376081170",
"creditLimit": 45396.0,
"catalogId": "21",
"priceListId": "65",
"paymentMethod": "PO,CREDIT CARD",
"paymentTermId": 18208,
"paymentTermName": "rKEqlx",
"status": "inactive",
"createdTime": 1715233760867,
"updatedTime": 1715233760867,
"startTime": 151715233760811,
"endTime": 171715233760811,
"documents": [
{
"id": 1454,
"contractId": 14517,
"type": "LJI61xgvjq",
"name": "LnNF9X42",
"content": "JVBERi0xLjMNCiXi48/TDQoNCjEgMCBvYmoNCjw8DQovVHlwZSAvQ2F0YWxvZw0KL091dGxpbmVzIDIgMCBSDQovUGFnZXMgMyAwIFINCj4+DQplbmRvYmoNCg0KMiAwIG9iag0KPDwNCi9UeXBlIC9PdXRsaW5lcw0KL0NvdW50IDANCj4+DQplbmRvYmoNCg0KMyAwIG9iag0KPDwNCi9UeXBlIC9QYWdlcw0KL0NvdW50IDINCi9LaWRzIFsgNCAwIFIgNiAwIFIgXSANCj4+DQplbmRvYmoNCg0KNCAwIG9iag0KPDwNCi9UeXBlIC9QYWdlDQovUGFyZW50IDMgMCBSDQovUmVzb3VyY2VzIDw8DQovRm9udCA8PA0KL0YxIDkgMCBSIA0KPj4NCi9Qcm9jU2V0IDggMCBSDQo+Pg0KL01lZGlhQm94IFswIDAgNjEyLjAwMD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ODI2KQ0KPj4NCmVuZG9iag0KDQp4cmVmDQowIDExDQowMDAwMDAwMDAwIDY1NTM1IGYNCjAwMDAwMDAwMTkgMDAwMDAgbg0KMDAwMDAwMDA5MyAwMDAwMCBuDQowMDAwMDAwMTQ3IDAwMDAwIG4NCjAwMDAwMDAyMjIgMDAwMDAgbg0KMDAwMDAwMDM5MCAwMDAwMCBuDQowMDAwMDAxNTIyIDAwMDAwIG4NCjAwMDAwMDE2OTAgMDAwMDAgbg0KMDAwMDAwMjQyMyAwMDAwMCBuDQowMDAwMDAyNDU2IDAwMDAwIG4NCjAwMDAwMDI1NzQgMDAwMDAgbg0KDQp0cmFpbGVyDQo8PA0KL1NpemUgMTENCi9Sb290IDEgMCBSDQovSW5mbyAxMCAwIFINCj4+DQoNCnN0YXJ0eHJlZg0KMjcxNA0KJSVFT0YNCg==",
"createdTime": 1715233760878,
"updatedTime": 1715233760878,
"createdBy": 1,
"updatedBy": 1
}
],
"properties": [
{
"id": 731,
"value": "10",
"contractId": 14517,
"attributeId": "Attrid_171523376034460",
"createdBy": 1,
"updatedBy": 1,
"sequence": 1.0
}
],
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/contract/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreateCostCentre
Event Type: accountservice/costcentre/create
{
"version": "0",
"id": "c29b4c4a-ee07-4d22-107c-611082ec3f62",
"detail-type": "accountservice/costcentre/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:09Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "35976",
"timestamp": 1715233749672,
"payload": {
"responseCode": "ACCCCRE0000",
"responseMessage": "CostCentre Created Successfully",
"costCentre": {
"id": 35976,
"accountId": 30317,
"name": "tzTDDo",
"status": "active",
"createdTime": 1715233749665,
"updatedTime": 1715233749665,
"createdBy": 1,
"updatedBy": 1,
"budgets": [
{
"id": 11753,
"costCentreId": 35976,
"totalBudget": 407504.0,
"usedBudget": 0.0,
"startDate": 1715233749000,
"endDate": 1717825749000,
"createdTime": 1715233749667,
"updatedTime": 1715233749667,
"createdBy": 1,
"updatedBy": 1
}
]
}
},
"collectionId": "4471",
"eventType": "accountservice/costcentre/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreatePayment
Event Type: accountservice/payment/create
{
"version": "0",
"id": "fc707753-aef4-a2e6-4007-bd896fb2a40b",
"detail-type": "accountservice/payment/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:31Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "761",
"timestamp": 1715233771894,
"payload": {
"responseCode": "ACPYCRE0000",
"responseMessage": "Create Payment Success",
"payments": {
"id": 761,
"accountId": 30317,
"paymentId": "84",
"paymentItemId": "240",
"paymentMethod": "creditcard",
"createdTime": 1715233771882,
"updatedTime": 1715233771882,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/payment/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreatePaymentTerm
Event Type: accountservice/paymentterm/create
{
"version": "0",
"id": "01e15234-38f1-e961-d15f-3e58b200f0ed",
"detail-type": "accountservice/paymentterm/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:13Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "18208",
"timestamp": 1715233753388,
"payload": {
"responseCode": "ACPTCRE0000",
"responseMessage": "PaymentTerm Created Successfully",
"paymentTerm": {
"id": 18208,
"name": "rKEqlx",
"term": "iExppPM",
"collectionId": 4471,
"createdTime": 1715233753377,
"updatedTime": 1715233753377,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/paymentterm/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
CreateTeam
Event Type: accountservice/team/create
{
"version": "0",
"id": "00c28684-8ce5-48a7-4862-7ba3671fba85",
"detail-type": "accountservice/team/create",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:17Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "35419",
"timestamp": 1715233757152,
"payload": {
"responseCode": "ACTECRE0000",
"responseMessage": "Create Team Success",
"team": {
"id": 35419,
"accountId": 30317,
"costCentreId": 35976,
"name": "Hamish Baldwin",
"description": "Nepal",
"status": "active",
"createdTime": 1715233757131,
"updatedTime": 1715233757131,
"createdBy": 1,
"updatedBy": 1,
"teamBuyer": [
{
"id": 29153,
"userId": "LY0Ei0E41",
"teamId": 35419,
"accountId": 30317,
"createdTime": 1715233757141,
"updatedTime": 1715233757141,
"createdBy": 0,
"updatedBy": 0
}
]
}
},
"collectionId": "4471",
"eventType": "accountservice/team/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteAccountBuyer
Event Type: accountservice/accountbuyer/delete
{
"version": "0",
"id": "941e0a86-9a28-77c0-9bd1-1830a93a2868",
"detail-type": "accountservice/accountbuyer/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:51:01Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233861061,
"payload": {
"responseCode": "ACABDEL0000",
"responseMessage": "AccountBuyer Delete Success."
},
"collectionId": "4471",
"eventType": "accountservice/accountbuyer/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteAccountProperties
Event Type: accountservice/accountproperties/delete
{
"version": "0",
"id": "5a2c281f-c73c-938e-86bd-a72e49b0b175",
"detail-type": "accountservice/accountproperties/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:51:08Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "0",
"timestamp": 1715233868058,
"payload": {
"responseCode": "ACAPDEL0000",
"responseMessage": "AccountProperties Delete Success."
},
"collectionId": "4471",
"eventType": "accountservice/accountproperties/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteAccountSeller
Event Type: accountservice/accountseller/delete
{
"version": "0",
"id": "5a2c281f-c73c-938e-86bd-a72e49b0b175",
"detail-type": "accountservice/accountproperties/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:51:08Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "0",
"timestamp": 1715233868058,
"payload": {
"responseCode": "ACAPDEL0000",
"responseMessage": "AccountProperties Delete Success."
},
"collectionId": "4471",
"eventType": "accountservice/accountproperties/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteAccount
Event Type: accountservice/account/delete
{
"version": "0",
"id": "24397e62-f18b-c7fe-3a29-c67cbe86c0d6",
"detail-type": "accountservice/account/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:51:11Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233871835,
"payload": {
"responseCode": "ACACDEL0000",
"responseMessage": "Account Delete Success"
},
"collectionId": "4471",
"eventType": "accountservice/account/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteAccountType
Event Type: accountservice/accounttype/delete
{
"version": "0",
"id": "5e22a05a-c5cc-2b1a-d841-f79fc645c994",
"detail-type": "accountservice/accounttype/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:53Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233853634,
"payload": {
"responseCode": "ACATDEL0000",
"responseMessage": "AccountType Delete Success"
},
"collectionId": "4471",
"eventType": "accountservice/accounttype/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteAddress
Event Type: accountservice/address/delete
{
"version": "0",
"id": "808158d5-2a58-22bf-c017-51b31566b12b",
"detail-type": "accountservice/address/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:46Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233846507,
"payload": {
"responseCode": "ACADDEL0000",
"responseMessage": "Delete Address Success"
},
"collectionId": "4471",
"eventType": "accountservice/address/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteAttribute
Event Type: accountservice/attribute/delete
{
"version": "0",
"id": "7921e8e9-e9c6-de55-af64-d08681d0f40a",
"detail-type": "accountservice/attribute/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:49Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233849776,
"collectionId": "4471",
"eventType": "accountservice/attribute/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteBudget
Event Type: accountservice/budget/delete
{
"version": "0",
"id": "7bbb4148-63b2-ac0b-4738-dd8e8e853f17",
"detail-type": "accountservice/budget/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:51:17Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "11755",
"timestamp": 1715233877554,
"payload": {
"responseCode": "ACBTDEL0000",
"responseMessage": "Budget Delete Success."
},
"collectionId": "4471",
"eventType": "accountservice/budget/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteContractProperties
Event Type: accountservice/contractproperties/delete
{
"version": "0",
"id": "381c1c9b-33aa-b537-7c26-78adb8877d7e",
"detail-type": "accountservice/contractproperties/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:27Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "0",
"timestamp": 1715233827056,
"payload": {
"responseCode": "ACCPSDEL0000",
"responseMessage": "Contract Property DELETE success."
},
"collectionId": "4471",
"eventType": "accountservice/contractproperties/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteContract
Event Type: accountservice/contract/delete
{
"version": "0",
"id": "7ef58d9e-c7ae-a817-c0c2-5fe9eacf0e8e",
"detail-type": "accountservice/contract/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:51:04Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233864317,
"payload": {
"responseCode": "ACCTDEL0000",
"responseMessage": "Contract Delete Success"
},
"collectionId": "4471",
"eventType": "accountservice/contract/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteCostCentre
Event Type: accountservice/costcentre/delete
{
"version": "0",
"id": "bc88a324-b024-bfca-f8c5-e486bf671b3e",
"detail-type": "accountservice/costcentre/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:42Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "35977",
"timestamp": 1715233842753,
"payload": {
"responseCode": "ACCCDEA0000",
"responseMessage": "CostCentre Deleted Successfully"
},
"collectionId": "4471",
"eventType": "accountservice/costcentre/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteDocument
Event Type: accountservice/document/delete
{
"version": "0",
"id": "a56123dd-d11b-8232-63bc-25694eafcb6e",
"detail-type": "accountservice/document/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:51:23Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "1455",
"timestamp": 1715233883405,
"payload": {
"responseCode": "ACDTDEL0000",
"responseMessage": "Document Delete Success."
},
"collectionId": "4471",
"eventType": "accountservice/document/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeletePayment
Event Type: accountservice/payment/delete
{
"version": "0",
"id": "dd87150b-219f-2905-4940-8ac5432fe667",
"detail-type": "accountservice/payment/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:38Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233838874,
"payload": {
"responseCode": "ACPYDEL0000",
"responseMessage": "Payment Delete Success."
},
"collectionId": "4471",
"eventType": "accountservice/payment/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeletePaymentTerm
Event Type: accountservice/paymentterm/delete
{
"version": "0",
"id": "b25130b1-edd5-1af0-2f3e-771d986f2a9c",
"detail-type": "accountservice/paymentterm/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:35Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233835077,
"payload": {
"responseCode": "ACPTDEL0000",
"responseMessage": "Delete Payment Term Success"
},
"collectionId": "4471",
"eventType": "accountservice/paymentterm/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
DeleteTeam
Event Type: accountservice/team/delete
{
"version": "0",
"id": "055f5498-d974-41da-9618-42469495f3c7",
"detail-type": "accountservice/team/delete",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:31Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "35420",
"timestamp": 1715233831224,
"payload": {
"responseCode": "ACTEDEL0000",
"responseMessage": "Team Delte Success"
},
"collectionId": "4471",
"eventType": "accountservice/team/delete",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
PatchUpdateAccountType
Event Type: accountservice/accounttype/patch
{
"version": "0",
"id": "349ec663-7154-03b5-da4d-e7b03ad35fc6",
"detail-type": "accountservice/accounttype/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:57Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "84865",
"timestamp": 1715233797679,
"payload": {
"responseCode": "ACATUPD0000",
"responseMessage": "AccountType Update Success ",
"accountType": {
"id": 84865,
"name": "H6jcEij",
"description": "27081o",
"collectionId": 4471,
"createdTime": 1715233742000,
"updatedTime": 1715233797665,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/accounttype/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
PatchUpdateAttributes
Event Type: accountservice/attributes/patch
{
"version": "0",
"id": "e08b4492-4f33-3110-942f-857cdfa14fc6",
"detail-type": "accountservice/attributes/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:28Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "1715233737668",
"timestamp": 1715233768261,
"payload": {
"responseCode": "ATATTRUPD0000",
"attribute": {
"name": "Accountsattribute",
"identifier": "1715233737668",
"status": "ACTIVE",
"required": false,
"type": "ACCOUNTS",
"fieldtype": "LONGSTRING",
"validation": "1to10",
"sequence": 0.0,
"createdTime": 1715233737698,
"updatedTime": 1715233768247,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/attributes/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateAccountProperties
Event Type: accountservice/accountproperties/update
{
"version": "0",
"id": "54e7b887-b5ff-d763-bd3a-6cc4c8ca478e",
"detail-type": "accountservice/accountproperties/update",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:19Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233819884,
"payload": {
"responseCode": "ACAPUPD0000",
"responseMessage": "Unknown Message",
"accountPropertiesList": [
{
"id": 10095,
"attributeId": "1715233737668",
"value": "string",
"accountId": 30317,
"sequence": 0.0,
"createdBy": 1,
"updatedBy": 1
}
]
},
"collectionId": "4471",
"eventType": "accountservice/accountproperties/update",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateContractProperties
Event Type: accountservice/contractproperties/update
{
"version": "0",
"id": "c68cb00e-6d23-cb63-3502-84d889537871",
"detail-type": "accountservice/contractproperties/update",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:23Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"timestamp": 1715233823825,
"payload": {
"responseCode": "ACCPSUPD0000",
"responseMessage": "Contract Property UPDATE success.",
"contractPropertiesList": [
{
"id": 732,
"value": "10",
"contractId": 14517,
"attributeId": "Attrid_171523376034460",
"createdBy": 1,
"updatedBy": 1,
"sequence": 0.0
}
]
},
"collectionId": "4471",
"eventType": "accountservice/contractproperties/update",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateAccountBuyer
Event Type: accountservice/accountbuyer/patch
{
"version": "0",
"id": "6d95959d-64c6-cfa5-7fb5-061161a9b8e2",
"detail-type": "accountservice/accountbuyer/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:50Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "29154",
"timestamp": 1715233790296,
"payload": {
"responseCode": "ACABUPD0000",
"responseMessage": "AccountBuyer Update Success.",
"accountBuyer": {
"id": 29154,
"userId": "0s4mV0",
"teamId": 35419,
"accountId": 30317,
"createdTime": 1715233765000,
"updatedTime": 1715233790283,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/accountbuyer/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateAccountSeller
Event Type: accountservice/accountbuyer/patch
{
"version": "0",
"id": "6d95959d-64c6-cfa5-7fb5-061161a9b8e2",
"detail-type": "accountservice/accountbuyer/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:50Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "29154",
"timestamp": 1715233790296,
"payload": {
"responseCode": "ACABUPD0000",
"responseMessage": "AccountBuyer Update Success.",
"accountBuyer": {
"id": 29154,
"userId": "0s4mV0",
"teamId": 35419,
"accountId": 30317,
"createdTime": 1715233765000,
"updatedTime": 1715233790283,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/accountbuyer/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateAddress
Event Type: accountservice/address/patch
{
"version": "0",
"id": "5708acca-8e65-0b59-5956-12b4d4596754",
"detail-type": "accountservice/address/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:01Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "18409",
"timestamp": 1715233801363,
"payload": {
"responseCode": "ACADUPD0000",
"responseMessage": "Update Address Success",
"address": {
"id": 18409,
"accountId": 30317,
"type": "BillingAddress",
"name": "Lucian Macias",
"phone": "474-778-4167",
"email": "shay.contreras@gmail.net",
"street1": "91353 Georgia Ave.",
"street2": "63208 Egypt Way",
"street3": "70088 Holy See (Vatican City State) Way",
"city": "Pico Rivera",
"country": "Cuba",
"county": "9a74722b-98e3-4cf3-8d96-1528a4ab250e",
"state": "Tennessee",
"zipCode": "06311",
"validated": false,
"createdTime": 1715233776000,
"updatedTime": 1715233801354,
"createdBy": 1,
"updatedBy": 1,
"default": true
}
},
"collectionId": "4471",
"eventType": "accountservice/address/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateContract
Event Type: accountservice/contract/patch
{
"version": "0",
"id": "254ea655-181f-8ee6-9ce1-b4357feb465c",
"detail-type": "accountservice/contract/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:49:46Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "14517",
"timestamp": 1715233786640,
"payload": {
"responseCode": "ACCTUPD0000",
"responseMessage": "Contract Update Success",
"contract": {
"id": 14517,
"accountId": 30317,
"name": "YGaMid",
"creditLimit": 1000000.0,
"catalogId": "21",
"priceListId": "65",
"paymentMethod": "PO",
"paymentTermId": 1,
"paymentTermName": "Net30",
"status": "inactive",
"createdTime": 1715233761000,
"updatedTime": 1715233786624,
"startTime": 151715233760811,
"endTime": 171715233760811,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/contract/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateCostCentre
Event Type: accountservice/costcentre/patch
{
"version": "0",
"id": "0fdd9452-9611-53ad-19cf-95cd817df766",
"detail-type": "accountservice/costcentre/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:05Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "35976",
"timestamp": 1715233805063,
"payload": {
"responseCode": "ACCCUPD0000",
"responseMessage": "Update CostCentre Success",
"costCentre": {
"id": 35976,
"accountId": 30317,
"name": "9ATVLEz",
"status": "active",
"createdTime": 1715233750000,
"updatedTime": 1715233750000,
"createdBy": 1,
"updatedBy": 1,
"budgets": [
{
"id": 11753,
"costCentreId": 35976,
"totalBudget": 407504.0,
"usedBudget": 0.0,
"startDate": 1715233749000,
"endDate": 1717825749000,
"createdTime": 1715233750000,
"updatedTime": 1715233750000,
"createdBy": 1,
"updatedBy": 1
}
]
}
},
"collectionId": "4471",
"eventType": "accountservice/costcentre/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdatePayment
Event Type: accountservice/payment/patch
{
"version": "0",
"id": "26c95d58-6255-e8c8-ae1a-00f9d804c090",
"detail-type": "accountservice/payment/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:08Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "761",
"timestamp": 1715233808755,
"payload": {
"responseCode": "ACPYUPD0000",
"responseMessage": "Payment Update Success.",
"payments": {
"id": 761,
"accountId": 30317,
"paymentId": "47",
"paymentItemId": "232",
"paymentMethod": "creditcard",
"createdTime": 1715233772000,
"updatedTime": 1715233808743,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/payment/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdatePaymentTerm
Event Type: accountservice/paymentterm/patch
{
"version": "0",
"id": "c1d8a268-ed4d-2e74-7f40-9b163ed89c79",
"detail-type": "accountservice/paymentterm/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:12Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "18208",
"timestamp": 1715233812461,
"payload": {
"responseCode": "ACPTUPD0000",
"responseMessage": "PaymentTerm Update Success",
"paymentTerm": {
"id": 18208,
"name": "vjgyYdfF",
"term": "CKAVKMffr",
"collectionId": 4471,
"createdTime": 1715233753000,
"updatedTime": 1715233812447,
"createdBy": 1,
"updatedBy": 1
}
},
"collectionId": "4471",
"eventType": "accountservice/paymentterm/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
UpdateTeam
Event Type: accountservice/team/patch
{
"version": "0",
"id": "6e818a07-366b-c52e-1b11-001d943b0f68",
"detail-type": "accountservice/team/patch",
"source": "accountservice",
"account": "277827593990",
"time": "2024-05-09T05:50:16Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "35419",
"timestamp": 1715233816163,
"payload": {
"responseCode": "ACTEUPD0000",
"responseMessage": "Team Update Success",
"team": {
"id": 35419,
"accountId": 30317,
"costCentreId": 35976,
"name": "cMdOaBky",
"description": "Nepal",
"status": "active",
"createdTime": 1715233757000,
"updatedTime": 1715233816141,
"createdBy": 1,
"updatedBy": 1,
"teamBuyer": [
{
"id": 29154,
"userId": "0s4mV0",
"teamId": 35419,
"accountId": 30317,
"createdTime": 1715233765000,
"updatedTime": 1715233790000,
"createdBy": 1,
"updatedBy": 1
},
{
"id": 29153,
"userId": "LY0Ei0E41",
"teamId": 35419,
"accountId": 30317,
"createdTime": 1715233757000,
"updatedTime": 1715233757000,
"createdBy": 0,
"updatedBy": 0
}
]
}
},
"collectionId": "4471",
"eventType": "accountservice/team/patch",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_SUPER_ADMIN"
],
"channel": "CSR"
}
}
Internal Events via RabbitMQ/AWS MQ
The following events communicate with the internal microservices.
List of Events
| SL.# | NAME | DESCRIPTION | PUBLISH LOCATION | ROUTING KEY | DURABILITY | PAYLOAD TYPE |
|---|---|---|---|---|---|---|
| 1 | Account Created | This event is triggered when an account is created. | Topic: ecomm | accounts.createaccount | false | CreateOrUpdateAccount |
| 2 | Account Updated | This event is triggered when an account is updated. | Topic: ecomm | accounts.updateccount | false | CreateOrUpdateAccount |
| 3 | Account Buyer Created | This event is triggered when an account buyer is created. | Topic: ecomm | accounts.createaccountbuyer | false | CreateOrUpdateAccountBuyer |
| 4 | Account Buyer Updated | This event is triggered when an account buyer is updated. | Topic: ecomm | accounts.updateaccountbuyer | false | CreateOrUpdateAccountBuyer |
| 5 | Account Seller Created | This event is triggered when an account seller is created. | Topic: ecomm | accounts.createaccountseller | false | CreateOrUpdateAccountSeller |
| 6 | Account Seller Updated | This event is triggered when an account seller is updated. | Topic: ecomm | accounts.updateaccountseller | false | CreateOrUpdateAccountSeller |
| 7 | Contract Created | This event is triggered when a contract is created. | Topic: ecomm | accounts.createcontract | false | CreateOrUpdateContract |
| 8 | Contract Updated | This event is triggered when a contract is updated. | Topic: ecomm | accounts.updatecontract | false | CreateOrUpdateContract |
Payload Models
Below are the payloads for the Accounts microservice events:
CreateOrUpdateAccount
| PROPERTY | TYPE | DESCRIPTION | EXAMPLE |
|---|---|---|---|
id | long | Indicates the unique ID of the account. | 1 |
collectionId | long | Indicates the unique ID of the collection. | 1 |
name | String | Indicates the name of the account. | Account_1 |
size | String | Refers to the count of the employees in the account. | 100 |
typeId | long | Indicates the unique ID of the account type. | 1 |
accountType | String | Indicates the name of the account type. | testaccounttype |
status | long | Refers to the status of the account. | active |
parentAccountId | long | Refers to the ID of the parent account under which this account is associated. | 1 |
createdTime | Date | Indicates the timestamp of the created account. | 1543923953856 |
updatedTime | Date | Indicates the timestamp of the updated account. | 1543923953856 |
properties[].id | long | Indicates the unique ID of the property. | 1 |
properties[].name | String | Indicates the name of the property. | accountProperty |
properties[].value | String | Refers to the value of an account property, which is associated with a particular name of the account property. | value |
properties[].accountId | long | Indicates the unique ID of the account. | 1 |
CreateOrUpdateAccountBuyer
| PROPERTY | TYPE | DESCRIPTION | EXAMPLE |
|---|---|---|---|
teamId | String | Indicates the unique ID of the team. | 1 |
userId | long | Indicates the unique ID of the buyer user. | 1 |
CreateOrUpdateAccountSeller
| PROPERTY | TYPE | DESCRIPTION | EXAMPLE |
|---|---|---|---|
accountId | String | Indicates the unique ID of the existing account, which is to be associated with the account seller. | 1 |
userId | long | Indicates the unique ID of the seller user. | 1 |
CreateOrUpdateContract
| PROPERTY | TYPE | DESCRIPTION | EXAMPLE |
|---|---|---|---|
catalogId | String | Indicates the ID of the catalog, which is associated with this contract. | 10011 |
creditLimit | double | Refers to the maximum credit limit of amount, which is allocated for an account. | 10000 |
endTime | long | Refers to the end period of the contract. | 144256 |
name | String | Indicates the name of the contract. | Contract1 |
paymentMethod | String | Indicates the method of payment. | creditcard |
paymentTermId | long | Indicates the valid ID of the existing payment term. | 1 |
priceListId | String | Indicates the ID of the price list, which is a collection ID of pricing. | 1001 |
startTime | long | Refers to the start time of the contract. | 134256 |
status | String | Refers to the status of the contract. | ACTIVE |
Revision History
2024-05-22 | JP – Added external event details for release 8.17.4.
2019-05-16 | AN – Updated to a new table tool.
2019-04-11 | MA – Updated content and format.
2019-01-18 | PLK – Content uploaded.