POSTMAN Collection

{
"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 0000:00:00\",\n\t\t\"contractEndDate\": \"2020-07-31 0000:00:00\",\n\t\t\"legalCountryISO36611Alpha2Code\": \"ID\",\n\t\t\"countryLocationISO36611Alpha2Code\": \"ID\",\n\t \"reference\": {},\n\t \"additionalData\": {\n\t\t \"legalInfo\": {\n\t\t \"taxType\": \"TAXABLE\",\n\t\t \"taxOffice\": \"KPP Pratama Jakarta Kelapa Gading\",\n\t\t \"fiscalAddress\": \"Mall Kelapa Gading 5, Lantai Ground, Jl. Kelapa Gading Boulevard, Jakarta, Indonesia\",\n\t\t \"representativeName\": \"James Arthur\",\n\t\t \"taxRegistrationNumber\": \"026228098012001\",\n\t\t \"vatRegistrationNumber\": \"026228098012001\",\n\t\t \"businessPartnerLegalName\": \"PT. PANCIOUS TIRTA JAYA\"\n\t\t },\n\t\t \"vatConfig\": {\n\t\t \"enableVAT\": true,\n\t\t \"vatInclude\": true,\n\t\t \"VATCountryId\": \"1\"\n\t\t },\n\t\t \"whtConfig\": {\n\t\t \"enableWHT\": false,\n\t\t \"whtInclude\": \"\",\n\t\t \"WHTCountryId\": \"1\"\n\t\t },\n\t\t \"commissionInfo\": {\n\t\t \"commissionRate\": \"12\"\n\t\t },\n\t\t \"languageConfig\": {\n\t\t \"preferredEmailLanguage\": \"ID\"\n\t\t },\n\t\t \"settlementConfig\": {\n\t\t \"documentNumberProductType\": \"\",\n\t\t \"enableInternalReconciliation\": false,\n\t\t \"enableNetOffPayableDebitMemo\": false,\n\t\t \"enableNetOffReceivablePayable\": false,\n\t\t \"enableNetOffReceivableCreditMemo\": false\n\t\t },\n\t\t \"payableInvoiceConfig\": {\n\t\t \"payableInvoiceMethod\": \"BANK_TRANSFER_VIA_PAYMENT_OUT\",\n\t\t \"payableInvoiceDueDays\": \"1\",\n\t\t \"payableInvoiceIntervalType\": \"WEEKLY\",\n\t\t \"payableInvoiceIntervalValue\": {\n\t\t \"createdOn\": \"7\",\n\t\t \"cutOffEnd\": \"7\",\n\t\t \"cutOffStart\": \"1\"\n\t\t }\n\t\t },\n\t\t \"emailNotificationConfig\": {\n\t\t \"enablePayableInvoiceNotification\": true,\n\t\t \"enablePayableInvoiceStatusVoidNotification\": true,\n\t\t \"enablePayableInvoiceStatusClosedNotification\": true,\n\t\t \"enablePayableInvoiceStatusInProgressNotification\": true,\n\t\t \"enablePayableInvoiceStatusCarriedOverNotification\": true\n\t\t },\n\t\t \"contractRelated\":{\n\t\t\t \"isActive\": \"TRUE\",\n\t\t\t \"paymentType\": \"BILLING\",\n\t\t\t \"paymentEntity\": \"ID02\",\n\t\t\t \"businessPartnerId\": \"EATS#45320\",\n\t\t\t \"invoiceDueDateType\": \"VISIT_DATE\",\n\t\t\t \"contractCurrencyISO4217Code\": \"IDR\"\n\t\t }\n\t\t}\n\t \n\t}\n}"
},
"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 0000:00:00\",\n \"contractEndDate\": \"2020-07-31 0000:00:00\",\n \"legalCountryISO36611Alpha2Code\": \"ID\",\n \"countryLocationISO36611Alpha2Code\": \"ID\",\n \"reference\": {},\n \"additionalData\": {\n \"legalInfo\": {\n \"taxType\": \"TAXABLE\",\n \"taxOffice\": \"KPP Pratama - Jakarta Menteng Satu\",\n \"fiscalAddress\": \"Grand Indonesia, West Mall, Lantai Lower Ground, Jl. M.H. Thamrin No. 1, Jakarta, Indonesia\",\n \"representativeName\": \"James Cook\",\n \"taxRegistrationNumber\": \"025050402022000\",\n \"vatRegistrationNumber\": \"025050402022000\",\n \"businessPartnerLegalName\": \"PT. SARI BURGER INDONESIA\"\n },\n \"vatConfig\": {\n \"enableVAT\": true,\n \"vatInclude\": true,\n \"VATCountryId\": \"1\"\n },\n \"whtConfig\": {\n \"enableWHT\": false,\n \"whtInclude\": \"\",\n \"WHTCountryId\": \"1\"\n },\n \"commissionInfo\": {\n \"commissionRate\": \"12\"\n },\n \"languageConfig\": {\n \"preferredEmailLanguage\": \"ID\"\n },\n \"settlementConfig\": {\n \"documentNumberProductType\": \"\",\n \"enableInternalReconciliation\": false,\n \"enableNetOffPayableDebitMemo\": false,\n \"enableNetOffReceivablePayable\": false,\n \"enableNetOffReceivableCreditMemo\": false\n },\n \"payableInvoiceConfig\": {\n \"payableInvoiceMethod\": \"BANK_TRANSFER_VIA_PAYMENT_OUT\",\n \"payableInvoiceDueDays\": \"1\",\n \"payableInvoiceIntervalType\": \"WEEKLY\",\n \"payableInvoiceIntervalValue\": {\n \"createdOn\": \"7\",\n \"cutOffEnd\": \"7\",\n \"cutOffStart\": \"1\"\n }\n },\n \"receivableInvoiceConfig\": {\n \"receivableInvoiceMethod\": \"BANK_TRANSFER\",\n \"receivableInvoiceDueDays\": \"14\",\n \"receivableInvoiceIntervalType\": \"MONTHLY\",\n \"receivableInvoiceIntervalValue\": [\n {\n \"createdOn\": \"2\",\n \"cutOffEnd\": \"EoM\",\n \"cutOffStart\": \"1\"\n }\n ]\n },\n \"emailNotificationConfig\": {\n \"enablePayableInvoiceNotification\": true,\n \"enablePayableInvoiceStatusVoidNotification\": true,\n \"enablePayableInvoiceStatusClosedNotification\": true,\n \"enablePayableInvoiceStatusInProgressNotification\": true,\n \"enablePayableInvoiceStatusCarriedOverNotification\": true\n },\n \"contractRelated\":{\n \"isActive\": \"TRUE\",\n \"paymentType\": \"BILLING\",\n \"paymentEntity\": \"ID02\",\n \"businessPartnerId\": \"EATS#52023\",\n \"invoiceDueDateType\": \"VISIT_DATE\",\n \"contractCurrencyISO4217Code\": \"IDR\"\n }\n }\n \n }\n}"
},
"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-01T0100:00:00Z\",\n\t\t\"deliveryTimestamp\": \"2019-01-01T0100:00:00Z\",\n\t\t\"recognitionTimestamp\": \"2019-01-01T0100:00:00Z\",\n\t\t\"salesDeliveryItems\": [\n\t {\n\t \"id\": \"1\",\n\t \"productId\": \"21\",\n\t \"quantity\": 1,\n\t \"price\": 10000.0,\n\t \"charges\": [],\n\t \"reference\": null,\n\t \"additionalData\": {\n \"sellPrice\": 100000,\n \"netPrice\": 100000,\n \"businessModel\": \"Commission\"\n\t\t\t} \n\t }\n\t ],\n\t \"charges\": [\n\t {\n\t \"id\": \"1\",\n\t \"chargeTypeId\": \"8\",\n\t \"chargeBaseAmount\": 0,\n\t \"chargePercentage\": 0,\n\t \"chargeFixedAmount\": -123,\n\t \"chargeTotalAmount\": -123,\n\t \"reference\": null,\n\t \"additionalData\": null\n\t },\n\t {\n\t \"id\": \"2\",\n\t \"chargeTypeId\": \"10\",\n\t \"chargeBaseAmount\": 0,\n\t \"chargePercentage\": 0,\n\t \"chargeFixedAmount\": -100,\n\t \"chargeTotalAmount\": -100,\n\t \"reference\": null,\n\t \"additionalData\": null\n\t }\n\t ],\n\t\t\"reference\": {},\n\t\t\"documentOwner\": \"Traveloka Apps\",\n\t\t\"additionalData\": {\n\t \"bookingId\": \"87564825\",\n\t \"merchantBookingId\": \"TR30002589\",\n\t \"eventType\": \"BOOKING\",\n\t \"bookingTime\": \"2019-02-27T10:05:10.764Z\",\n\t \"issuedTime\": \"2019-02-27T10:05:10.764Z\",\n\t \"transactionType\": \"Booking\",\n\t \"dinerName\": \"Raditya Alwafi\",\n\t \"qrInvoiceId\": \"TR30002588\",\n\t \"paymentChannel\": {\n\t \t\"id\": \"1\",\n\t\t\t\t\"name\": \"CREDIT_CARD\"\n\t },\n\t \"locale\": \"en_ID\",\n\t \"coupon\": {\n\t \t\"id\": \"1\",\n\t\t\t\t\"couponCode\": \"MEISERU\",\n\t\t\t\t\"couponDescription\": \"Diskon Bulan Mei\"\n\t },\n\t \"relatedPurchaseDeliveryId\": \"EATS#52023#0021\",\n\t \"userInvoiceId\": \"TR30002588\"\n\t\t}\n\t}\n}"
},
"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-01T0100:00:00Z\",\n\t\t\"deliveryTimestamp\": \"2019-01-01T0100:00:00Z\",\n\t\t\"recognitionTimestamp\": \"2019-01-01T0100:00:00Z\",\n\t\t\"salesDeliveryItems\": [\n\t {\n\t \"id\": \"1\",\n\t \"productId\": \"20\",\n\t \"quantity\": 1,\n\t \"price\": 1000,\n\t \"charges\": [],\n\t \"reference\": null,\n\t \"additionalData\": {\n\t \t\"commissionTotalFare\": 200,\n\t\t\t\"commissionBaseFare\": 2000,\n\t\t\t\"commissionPercentage\": 10,\n\t\t\t\"businessModel\": \"Commission\"\n\t }\n\t }\n\t ],\n\t \"charges\": [\n\t {\n\t \"id\": \"1\",\n\t \"chargeTypeId\": \"6\",\n\t \"chargeBaseAmount\": 1000.0,\n\t \"chargePercentage\": 10.0,\n\t \"chargeFixedAmount\": 900.0,\n\t \"chargeTotalAmount\": 1000.0,\n\t \"reference\": null,\n\t \"additionalData\": null\n\t }\n\t ],\n\t\t\"reference\": {},\n\t\t\"documentOwner\": \"Traveloka Apps\",\n\t\t\"additionalData\": {\n\t \"bookingId\": \"87564825\",\n\t \"merchantBookingId\": \"TR30002589\",\n\t \"eventType\": \"BOOKING\",\n\t \"bookingTime\": \"2019-02-27T10:05:10.764Z\",\n\t \"issuedTime\": \"2019-02-27T10:05:10.764Z\",\n\t \"transactionType\": \"Booking\",\n\t \"dinerName\": \"Raditya Alwafi\",\n\t \"locale\": \"en_ID\",\n\t \"relatedPurchaseDeliveryId\": \"EATS#52023#0021\"\n\t\t}\n\t}\n}"
},
"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-01T0100:00:00Z\",\n\t\t\"deliveryTimestamp\": \"2019-01-01T0100:00:00Z\",\n\t\t\"recognitionTimestamp\": \"2019-01-01T0100:00:00Z\",\n\t\t\n\t\t\"purchaseDeliveryItems\": [{\n\t\t\t\"id\": \"EATS#52023#001\",\n\t\t\t\"productId\": \"21\",\n\t\t\t\"quantity\": 1,\n\t\t\t\"price\": 10000,\n\t\t\t\"charges\": [],\n\t\t\t\"reference\": {},\n \"attributes\": {\n \"name\": \"QR_VOUCHER\",\n \"inventoryTypeId\": \"3\"\n },\n\t\t\t\"additionalData\": {\n \"sellPrice\": 100000,\n \"netPrice\": 100000,\n \"businessModel\": \"Commission\"\n\t\t\t} \n\t\t}],\n\t\t\"charges\":[],\n\t\t\"reference\": {},\n\t\t\"documentOwner\": \"Traveloka Apps\",\n\t\t\"additionalData\": {\n \"bookingId\": \"87564825\",\n \"merchantBookingId\": \"TR30002589\",\n \"eventType\": \"BOOKING\",\n \"transactionType\": \"Booking\",\n \"bookingTime\": \"2019-02-27T10:05:10.764Z\",\n \"issuedTime\": \"2019-02-27T10:05:10.764Z\",\n \"dinerName\": \"Raditya Alwafi\",\n \"qrInvoiceId\": \"QR1000200099\",\n \"paymentType\": \"BILLING\",\n \"locale\": \"en_ID\",\n \"expectedPaymentDate\": \"2019-07-29\"\n\t\t}\n\t}\n}"
},
"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": [
""
]
}
}
]
}