{
"info": {
"name": "CT-EATS",
"_postman_id": "685e37aa-3927-4664-8b1b-c1c9637cec8b",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Bank",
"description": null,
"item": [
{
"name": "Get list of bank by countryId",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{host}}/v3/banks/retrieve/list/by-reference?apiKey=v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze&key=countryISO36611Alpha2Code&value=ID&limit=10&lastRowNum=1",
"host": [
"{{host}}"
],
"path": [
"v3",
"banks",
"retrieve",
"list",
"by-reference"
],
"query": [
{
"key": "apiKey",
"value": "v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze"
},
{
"key": "key",
"value": "countryISO36611Alpha2Code"
},
{
"key": "value",
"value": "ID"
},
{
"key": "limit",
"value": "10"
},
{
"key": "lastRowNum",
"value": "1"
}
]
},
"description": null
},
"response": []
}
]
},
{
"name": "Financial Intermediaries (Bank Branch)",
"description": null,
"item": [
{
"name": "Get financial-intermediaries(bank branch) by bankId",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{host}}/v3/financial-intermediaries/retrieve/list/by-reference?apiKey=v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze&key=BPBankId&value=BRINIDJA&limit=10&lastRowNum=1",
"host": [
"{{host}}"
],
"path": [
"v3",
"financial-intermediaries",
"retrieve",
"list",
"by-reference"
],
"query": [
{
"key": "apiKey",
"value": "v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze"
},
{
"key": "key",
"value": "BPBankId"
},
{
"key": "value",
"value": "BRINIDJA"
},
{
"key": "limit",
"value": "10"
},
{
"key": "lastRowNum",
"value": "1"
}
]
},
"description": null
},
"response": []
}
]
},
{
"name": "Business Contract",
"description": null,
"item": [
{
"name": "Get business contract(s) by businessPartnerId",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{host}}/v3/business-contracts/retrieve/list/by-reference?apiKey=v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze&key=businessPartnerId&value=EATS%2352023&limit=1&lastRowNum=1",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-contracts",
"retrieve",
"list",
"by-reference"
],
"query": [
{
"key": "apiKey",
"value": "v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze"
},
{
"key": "key",
"value": "businessPartnerId"
},
{
"key": "value",
"value": "EATS%2352023"
},
{
"key": "limit",
"value": "1"
},
{
"key": "lastRowNum",
"value": "1"
}
]
},
"description": null
},
"response": []
},
{
"name": "Create business contract",
"event": [
{
"listen": "prerequest",
"script": {
"id": "23515e1a-3410-4c09-b849-dd3bfb1666dd",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t\t\"id\": \"EATS#52023#Payment\",\n\t \"name\": \"EATS#52023 Contract\",\n\t\t\"companyId\": \"ID02\",\n\t\t\"businessPartnerId\": \"EATS#52023\",\n\t\t\"contractNumber\": \"EATS#CT#001#08#2019#003\",\n\t\t\"contractStartDate\": \"2018-08-01 00:00:
:00:
},
"url": {
"raw": "{{host}}/v3/business-contracts/create",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-contracts",
"create"
]
},
"description": null
},
"response": []
},
{
"name": "Update business contract",
"event": [
{
"listen": "prerequest",
"script": {
"id": "23515e1a-3410-4c09-b849-dd3bfb1666dd",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"requestId\": {{current_timestamp}},\n \"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n \"spec\":{\n \"id\": \"EATS#52023#8000567801\",\n \"name\": \"EATS#52023 Contract\",\n \"companyId\": \"ID02\",\n \"businessPartnerId\": \"EATS#52023\",\n \"contractNumber\": \"EATS#CT#001#08#2019#003\",\n \"contractStartDate\": \"2018-08-01 00:00:
:00:
},
"url": {
"raw": "{{host}}/v3/business-contracts/update",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-contracts",
"update"
]
},
"description": null
},
"response": []
}
]
},
{
"name": "Business Partner",
"description": null,
"item": [
{
"name": "Get business partner by businessPartnerId",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{host}}/v3/business-partners/retrieve-by-id?apiKey=v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze&id=EATS%2352023",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partners",
"retrieve-by-id"
],
"query": [
{
"key": "apiKey",
"value": "v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze"
},
{
"key": "id",
"value": "EATS%2352023"
}
]
},
"description": null
},
"response": []
},
{
"name": "Create business partner",
"event": [
{
"listen": "prerequest",
"script": {
"id": "96a76997-cdf7-4143-a7aa-b690c5f13b4f",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t \"id\": \"EATS#5202327\",\n\t \"name\": \"Burger King - Grand Cakung\",\n \"clientBusinessPartnerId\": \"52023\",\n \"clientName\": \"Culinary Tools\",\n \"cityLocation\": \"Jakarta\",\n \"countryLocationISO36611Alpha2Code\": \"ID\",\n \"oracleBusinessPartnerId\": \"\",\n \"legalCountryISO36611Alpha2Code\": \"ID\",\n\t \"reference\": {},\n\t \"additionalData\": {}\n\t}\n}"
},
"url": {
"raw": "{{host}}/v3/business-partners/create",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partners",
"create"
]
},
"description": null
},
"response": []
},
{
"name": "Update business partner",
"event": [
{
"listen": "prerequest",
"script": {
"id": "e56bcfad-891a-4b98-8372-850de2b50886",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t \"id\": \"EATS#5202327\",\n\t \"name\": \"Burger King - Grand Cakng\",\n \"clientBusinessPartnerId\": \"52023\",\n \"clientName\": \"Culinary Tools\",\n \"cityLocation\": \"Jakarta\",\n \"countryLocationISO36611Alpha2Code\": \"ID\",\n \"oracleBusinessPartnerId\": \"\",\n \"legalCountryISO36611Alpha2Code\": \"ID\",\n\t \"reference\": {},\n\t \"additionalData\": {}\n\t}\n}"
},
"url": {
"raw": "{{host}}/v3/business-partners/update",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partners",
"update"
]
},
"description": null
},
"response": []
}
]
},
{
"name": "Business Partner Contacts",
"description": null,
"item": [
{
"name": "Get list of business partner contacts by businessPartnerId",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{host}}/v3/business-partner-contacts/retrieve/list/by-reference?apiKey=v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze&key=businessPartnerId&value=EATS%2352023&limit=1&lastRowNum=1",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partner-contacts",
"retrieve",
"list",
"by-reference"
],
"query": [
{
"key": "apiKey",
"value": "v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze"
},
{
"key": "key",
"value": "businessPartnerId"
},
{
"key": "value",
"value": "EATS%2352023"
},
{
"key": "limit",
"value": "1"
},
{
"key": "lastRowNum",
"value": "1"
}
]
},
"description": null
},
"response": []
},
{
"name": "Create business partner contacts",
"event": [
{
"listen": "prerequest",
"script": {
"id": "1a0357e2-8a12-409b-814c-bb1518980be7",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t \"id\": \"EATS#5202327#EATS#PartnerEngagement\",\n \"contactEntry\":\"hananto.an@traveloka.com\",\n\t\t\"contactTypeId\":\"EATS#PartnerEngagement\",\n\t\t\"businessPartnerId\":\"EATS#52023\",\n\t\t\"position\":\"owner\",\n\t\t\"available24Hour\":false,\n\t \"reference\": {},\n\t \"additionalData\": {}\n\t}\n}"
},
"url": {
"raw": "{{host}}/v3/business-partner-contacts/create",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partner-contacts",
"create"
]
},
"description": null
},
"response": []
},
{
"name": "Update business partner contacts",
"event": [
{
"listen": "prerequest",
"script": {
"id": "23515e1a-3410-4c09-b849-dd3bfb1666dd",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t \"id\": \"EATS#5202327#EATS#PartnerEngagement\",\n \"contactEntry\":\"hananto.an@travelokaa.com\",\n\t\t\"contactTypeId\":\"EATS#PartnerEngagement\",\n\t\t\"businessPartnerId\":\"EATS#52023\",\n\t\t\"position\":\"owner\",\n\t\t\"available24Hour\":false,\n\t \"reference\": {},\n\t \"additionalData\": {}\n\t}\n}"
},
"url": {
"raw": "{{host}}/v3/business-partner-contacts/update",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partner-contacts",
"update"
]
},
"description": null
},
"response": []
}
]
},
{
"name": "Business Partner Financial Account",
"description": null,
"item": [
{
"name": "Get business partner financial account by businessPartnerId",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{host}}/v3/business-partner-financial-accounts/retrieve/list/by-reference?apiKey=v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze&key=businessPartnerId&value=EATS%2352023&limit=1&lastRowNum=1",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partner-financial-accounts",
"retrieve",
"list",
"by-reference"
],
"query": [
{
"key": "apiKey",
"value": "v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze"
},
{
"key": "key",
"value": "businessPartnerId"
},
{
"key": "value",
"value": "EATS%2352023"
},
{
"key": "limit",
"value": "1"
},
{
"key": "lastRowNum",
"value": "1"
}
]
},
"description": null
},
"response": []
},
{
"name": "Create business partner financial account",
"event": [
{
"listen": "prerequest",
"script": {
"id": "23515e1a-3410-4c09-b849-dd3bfb1666dd",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t\t\"id\": \"EATS#52023#Payment\",\n\t \"businessPartnerId\": \"EATS#52023\",\n\t \"financialIntermediaryId\": \"BANKBRANCH#BD0000000KQI\",\n\t \"bankId\": \"CENAIDJA\",\n\t \"swiftCode\": \"CENAIDJA\",\n\t \"currencyId\": \"IDR\",\n\t \"bankBranch\": \"BCA KANTOR PUSAT OPERASIONAL\",\n\t \"purposeType\": \"EATS_TREATS\",\n\t \"bankAccountHolder\": \"Treats Burger King\",\n\t \"bankAccountNumber\": \"846610022\",\n\t \"reference\": {},\n\t \"additionalData\": {}\n\t \n\t}\n}"
},
"url": {
"raw": "{{host}}/v3/business-partner-financial-accounts/create",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partner-financial-accounts",
"create"
]
},
"description": null
},
"response": []
},
{
"name": "Update business partner financial account",
"event": [
{
"listen": "prerequest",
"script": {
"id": "23515e1a-3410-4c09-b849-dd3bfb1666dd",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t\t\"id\": \"EATS#52023#Payment\",\n\t \"businessPartnerId\": \"EATS#52023\",\n\t \"financialIntermediaryId\": \"BANKBRANCH#BD0000000KQI\",\n\t \"bankId\": \"CENAIDJA\",\n\t \"swiftCode\": \"CENAIDJA\",\n\t \"currencyId\": \"IDR\",\n\t \"bankBranch\": \"BCA KANTOR PUSAT OPERASIONALL\",\n\t \"purposeType\": \"EATS_TREATS\",\n\t \"bankAccountHolder\": \"Treats Burger King\",\n\t \"bankAccountNumber\": \"846610022\",\n\t \"reference\": {},\n\t \"additionalData\": {}\n\t \n\t}\n}"
},
"url": {
"raw": "{{host}}/v3/business-partner-financial-accounts/update",
"host": [
"{{host}}"
],
"path": [
"v3",
"business-partner-financial-accounts",
"update"
]
},
"description": null
},
"response": []
}
]
},
{
"name": "Sales Deliveries",
"description": null,
"item": [
{
"name": "Create customer sales delivery",
"event": [
{
"listen": "prerequest",
"script": {
"id": "84a72404-1088-4360-b38b-aac7b642565d",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t\t\"id\": \"EATS#52023#013\",\n\t\t\"companyId\": \"ID02\",\n\t\t\"businessUnit\": \"EATS_TREAT\",\n\t\t\"businessPartnerId\": \"EATS#000001\",\n\t\t\"businessContractId\": \"EATS#52023#8000567801\",\n\t\t\"currencyId\": \"IDR\",\n\t\t\"totalAmount\": 9777,\n\t\t\"invoiceAfterTimestamp\": \"2019-01-01T01:00:
:00:
:00:
},
"url": {
"raw": "{{host}}/v3/sales-deliveries/create",
"host": [
"{{host}}"
],
"path": [
"v3",
"sales-deliveries",
"create"
]
},
"description": null
},
"response": []
},
{
"name": "Create merchant sales delivery",
"event": [
{
"listen": "prerequest",
"script": {
"id": "6030d4b2-ab17-4ae3-9e0c-5a831ec2e2ce",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t\t\"id\": \"EATS#52023#904\",\n\t\t\"companyId\": \"ID02\",\n\t\t\"businessUnit\": \"EATS_TREAT\",\n\t\t\"businessPartnerId\": \"EATS#52023\",\n\t\t\"businessContractId\": \"EATS#52023#8000567801\",\n\t\t\"currencyId\": \"IDR\",\n\t\t\"totalAmount\": 2000,\n\t\t\"invoiceAfterTimestamp\": \"2019-01-01T01:00:
:00:
:00:
},
"url": {
"raw": "{{host}}/v3/sales-deliveries/create",
"host": [
"{{host}}"
],
"path": [
"v3",
"sales-deliveries",
"create"
]
},
"description": null
},
"response": []
}
]
},
{
"name": "Purchase Deliveries",
"description": null,
"item": [
{
"name": "Create purchase delivery",
"event": [
{
"listen": "prerequest",
"script": {
"id": "917405ab-c71f-4fb5-878d-408037fc16be",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requestId\": {{current_timestamp}},\n\t\"apiKey\": \"v7sve78q3n8b6487yfya5w47guazdgkpc82d3mj4tjz7gejqcq7jqq3bvkbdmdze\",\n\t\"spec\":{\n\t\t\"id\": \"EATS#52023#217\",\n\t\t\"companyId\": \"ID02\",\n\t\t\"businessUnit\": \"EATS_TREAT\",\n\t\t\"businessPartnerId\": \"EATS#52023\",\n\t\t\"businessContractId\": \"EATS#52023#8000567801\",\n\t\t\"currencyId\": \"IDR\",\n\t\t\"totalAmount\": 10000,\n\t\t\"invoiceAfterTimestamp\": \"2019-01-01T01:00:
:00:
:00:
},
"url": {
"raw": "{{host}}/v3/purchase-deliveries/create",
"host": [
"{{host}}"
],
"path": [
"v3",
"purchase-deliveries",
"create"
]
},
"description": null
},
"response": []
}
]
},
{
"name": "Settlement Invoice",
"description": "",
"item": [
{
"name": "create",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"apiKey\": \"cdb56604b195e488b1b1a3702725d75c58d3009331fcaf2c81f1849d5669a5b7\",\n \"requestId\": \"create-1\",\n \"entity\": {\n \"id\": \"settlement-invoice-1\",\n \"attributes\": {\n \"documentNumber\": \"DOC01\",\n \"company\": {\n \"id\": \"ID02\",\n \"attributes\": {\n \"name\": \"PT. Trinusa Travelindo\"\n },\n \"reference\": {\n \"companyCode\": \"ID02\",\n \"timeZone\": \"Asia/Jakarta\",\n \"oldBPCompanyId\": \"1\"\n },\n \"additionalData\": {\n }\n },\n \"businessPartner\": {\n \"id\": \"1\",\n \"attributes\": {\n \"name\": \"Business Partner 1\"\n },\n \"reference\": {\n \"reference1\": \"reference1\"\n },\n \"additionalData\": {\n \"data1\": \"value1\"\n }\n },\n \"currency\": {\n \"id\": \"2\",\n \"attributes\": {\n \"name\": \"IDR\"\n },\n \"reference\": {\n \"canonicalName\": \"Indonesian rupiah\",\n \"ISO4217Code\": \"IDR\",\n \"ISO4217Num\": \"360\"\n }\n },\n \"businessUnit\": \"business-unit\",\n \"totalAmount\": \"1000000\",\n \"invoiceTimestamp\": \"2008-09-15T15:53:00+05:00\",\n \"invoiceDueTimestamp\": \"2008-09-15T15:53:00+05:00\",\n \"settlementInvoiceItems\": [\n {\n \"id\" : \"settlement-invoice-item-1\",\n \"product\": {\n \"id\": \"1\",\n \"attributes\": {\n \"name\": \"Traveloka Service Fee\",\n \"inventoryTypeId\": \"3\"\n },\n \"reference\": {},\n \"additionalData\": {\n }\n },\n \"quantity\": \"2\",\n \"price\": \"10000\",\n \"charges\": [\n {\n \"id\": \"charge-2\",\n \"chargeType\": {\n \"id\": \"2\",\n \"attributes\": {\n \"name\": \"service_fee\"\n },\n \"reference\": {\n \"description\": \"\"\n },\n \"additionalData\": {\n }\n },\n \"chargeBaseAmount\": \"10000\",\n \"chargePercentage\": \"20000\",\n \"chargeFixedAmount\": \"30000\",\n \"chargeTotalAmount\": \"40000\",\n \"reference\": {\n \"description\": \"\"\n },\n \"additionalData\": {\n }\n }\n ],\n \"reference\": {\n \"description\": \"\"\n },\n \"additionalData\": {\n }\n }\n ],\n \"charges\": [\n {\n \"id\": \"charge-1\",\n \"chargeType\": {\n \"id\": \"2\",\n \"attributes\": {\n \"name\": \"service_fee\"\n },\n \"reference\": {\n \"description\": \"\"\n },\n \"additionalData\": {\n }\n },\n \"chargeBaseAmount\": \"10000\",\n \"chargePercentage\": \"20000\",\n \"chargeFixedAmount\": \"30000\",\n \"chargeTotalAmount\": \"40000\",\n \"reference\": {\n \"description\": \"\"\n },\n \"additionalData\": {}\n }\n ],\n \"status\": \"OPEN\",\n \"documentOwner\": \"owner\"\n },\n \"historyAttribute\": {\n \"status\": \"OPENED\"\n },\n \"reference\": {\n \"reference1\": \"reference1\"\n },\n \"additionalData\": {\n \"data1\": \"value1\"\n }\n }\n}"
},
"url": {
"raw": "http://localhost:62888/v3/sales/command/settlement-invoices/create",
"protocol": "http",
"host": [
"localhost"
],
"port": "62888",
"path": [
"v3",
"sales",
"command",
"settlement-invoices",
"create"
]
},
"description": ""
},
"response": []
},
{
"name": "record history",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"apiKey\":\"cdb56604b195e488b1b1a3702725d75c58d3009331fcaf2c81f1849d5669a5b7\",\n \"requestId\":\"record-1\",\n \"id\":\"settlement-invoice-1\",\n \"currentHistoricalAttribute\":{\n \"status\":\"OPENED\"\n },\n \"insertedHistoricalAttribute\":{\n \"status\":\"CLOSED\"\n }\n}"
},
"url": {
"raw": "http://localhost:62888/v3/sales/command/settlement-invoices/historical-attributes/record",
"protocol": "http",
"host": [
"localhost"
],
"port": "62888",
"path": [
"v3",
"sales",
"command",
"settlement-invoices",
"historical-attributes",
"record"
]
},
"description": ""
},
"response": []
},
{
"name": "carry over",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"apiKey\": \"cdb56604b195e488b1b1a3702725d75c58d3009331fcaf2c81f1849d5669a5b7\",\n \"requestId\": \"create-settlement-invoice-mapping-1\",\n \"entity\": {\n \"settlementInvoiceId\": \"settlement-invoice-1\",\n \"carriedOverSettlementInvoiceId\": \"settlement-invoice-1\"\n }\n}\n"
},
"url": {
"raw": "http://localhost:62888/v3/sales/command/settlement-invoices/carried-over-invoices/create",
"protocol": "http",
"host": [
"localhost"
],
"port": "62888",
"path": [
"v3",
"sales",
"command",
"settlement-invoices",
"carried-over-invoices",
"create"
]
},
"description": ""
},
"response": []
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "ebe3edbb-55c0-4e10-b043-2c9fe360c13e",
"type": "text/javascript",
"exec": [
"var currentTimestamp = Date.now();",
"postman.setEnvironmentVariable(\"current_timestamp\", currentTimestamp);",
"postman.setEnvironmentVariable(\"host\", \"http://localhost:58010\");"
]
}
},
{
"listen": "test",
"script": {
"id": "f7a5139d-fdc7-4641-bffe-3134dd42210b",
"type": "text/javascript",
"exec": [
""
]
}
}
]
}