TMFTMForumCreateProductOrder

This IP is used to invoke the TMF API to create a product order.

Input JSON 

1{
2    "@type": "ProductOrder",
3    "category": "B2C product order",
4    "channel": [
5        {
6            "id": "1",
7            "name": "Online chanel",
8            "role": "Used channel for order capture"
9        }
10    ],
11    "description": "Product Order illustration sample",
12    "externalId": "PO-456",
13    "note": [
14        {
15            "author": "Jean Pontus",
16            "date": "2019-04-30T08:13:59.509Z",
17            "id": "1",
18            "text": "This is a TMF product order illustration"
19        }
20    ],
21    "priority": "1",
22    "productOrderItem": [
23        {
24            "@type": "ProductOrderItem",
25            "action": "add",
26            "id": "205ccd31-5934-766e-848f-0bff644e6338",
27            "quantity": 1
28        }
29    ],
30    "relatedParty": [
31        {
32            "@referredType": "account",
33            "@type": "RelatedParty",
34            "href": "https://host:port/partyManagement/v4/individual/456-dd-df45",
35            "id": "CD451791",
36            "name": "Test Sh1",
37            "role": ""
38        }
39    ],
40    "requestedCompletionDate": "2019-05-02T08:13:59.506Z",
41    "requestedStartDate": "2019-05-03T08:13:59.506Z"
42}

Output JSON 

1{
2  "productOrderItem": [
3    {
4      "product": {
5        "productCharacteristics": [
6          {
7            "valueType": "Picklist",
8            "name": "VEPC_ATTR_CPE_DELIVERY_OPTION"
9          },
10          {
11            "valueType": "Picklist",
12            "name": "VEPC_ATTR_CPE_ROLE"
13          },
14          {
15            "valueType": "Text",
16            "name": "VEPC_ATTR_CONTACT_FIRST_NAME"
17          },
18          {
19            "valueType": "Text",
20            "name": "VEPC_ATTR_CONTACT_FIRST_NAME"
21          }
22        ]
23      },
24      "quantity": 1,
25      "id": "205ccd31-5934-766e-848f-0bff644e6338",
26      "action": "Add",
27      "@type": "ProductOrderItem"
28    }
29  ],
30  "relatedParty": [
31    {
32      "name": "Test Sh1",
33      "id": "CD451791",
34      "href": "/services/apexrest/%vlocity_namespace%/tmforum/productopenapi/v1/Account/0014x00000KlmAgAAJ",
35      "@type": "RelatedParty"
36    }
37  ],
38  "orderDate": "2023-05-04T05:19:17.000+0000",
39  "state": "Activated",
40  "requestedStartDate": "2019-05-03T00:00:00.000+0000",
41  "requestedCompletionDate": "2019-05-02T00:00:00.000+0000",
42  "note": "id:1;date:2019-04-30T08:13:59.509Z;text:This is a TMF product order illustration",
43  "id": "00005503",
44  "href": "/services/apexrest/%vlocity_namespace%/tmforum/productopenapi/v1/Order/8014x000000oJNOAA2",
45  "externalId": "PO-456",
46  "description": "Product Order illustration sample",
47  "channel": "Online chanel"
48}

Usage 

This IP calls the TMFOpenAPIProductOrderService.postProductOrder Apex method and the following Data Raptors: