{"swagger":"2.0","info":{"version":"0.2","title":"MOKA API","description":"MokaPOS core API documentation written in swagger-2.0 specification","termsOfService":"https://www.mokapos.com/privacy","contact":{"name":"MokaPOS API Team"},"license":{"name":"MokaPOS"},"x-logo":{"url":"https://i.gojekapi.com/darkroom/moka/v2/images/static/open-platform/logo-moka-v2.png"}},"host":"api.mokapos.com","basePath":"","consumes":["application/json"],"produces":["application/json"],"tags":[{"name":"Types of Moka Apps","description":"\u003cp\u003eMoka APIs let developers to create applications for various integration. Depending on the purpose of your app, it can be considered as a public or private app. The definition of each can be seen below:\u003c/p\u003e \u003cul\u003e \u003cli\u003e\u003cb\u003ePublic apps\u003c/b\u003e are meant for developers who want to distribute their applications to many merchants of Moka\u003c/li\u003e \u003cli\u003e\u003cb\u003ePrivate apps\u003c/b\u003e are meant for developers who want to build an integration specifically for a certain merchant or for personal use\u003c/li\u003e \u003c/ul\u003e \u003cp\u003eThere are several differences between public and private apps:\u003c/p\u003e \u003ctable\u003e \u003ctr\u003e \u003cth\u003e\u003c/th\u003e \u003cth\u003ePublic Apps\u003c/th\u003e \u003cth\u003ePrivate Apps\u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003eVisibility in AppMarketplace\u003c/td\u003e \u003ctd\u003eVisible\u003c/td\u003e \u003ctd\u003eNot Visible\u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003eStatus in Developer Dashboard\u003c/td\u003e \u003ctd\u003ePublished\u003c/td\u003e \u003ctd\u003eIn Review\u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e \u003cp\u003e\u003cb\u003eNote:\u003c/b\u003e\u003c/p\u003e \u003cul\u003e \u003cli\u003eThe status \u003ccode\u003eIn Review\u003c/code\u003e still allow developers to use the application and it will still functionally working as expected\u003c/li\u003e \u003cli\u003eIf you want to make your application visible in AppMarketplace, please contact Moka directly by emailing to support@mokapos.com\u003c/li\u003e \u003c/ul\u003e"},{"name":"Authentication","description":"\u003ch2\u003eaccess_token\u003c/h2\u003e\n\u003cp\u003eAccess token for doing API request\u003c/p\u003e\n\u003ctable class=\"security-details\"\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003cth\u003e Security scheme type: \u003c/th\u003e\n      \u003ctd\u003e OAuth2 \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003e implicit OAuth Flow \u003c/th\u003e\n      \u003ctd\u003e\n        \u003cdiv\u003e\n          \u003cstrong\u003e Authorization URL: \u003c/strong\u003e/oauth/authorize\n        \u003c/div\u003e\n        \u003cdiv\u003e\n          \u003cstrong\u003e Scopes: \u003c/strong\u003e\n        \u003c/div\u003e\n        \u003cul\u003e\n          \u003cli\u003e\n            \u003ccode\u003ecustomer\u003c/code\u003e - Access merchant customers\n          \u003c/li\u003e\n          \u003cli\u003e\n            \u003ccode\u003elibrary\u003c/code\u003e - Access merchant library\n          \u003c/li\u003e\n          \u003cli\u003e\n            \u003ccode\u003eprofile\u003c/code\u003e - Access merchant profile\n          \u003c/li\u003e\n          \u003cli\u003e\n            \u003ccode\u003ereport\u003c/code\u003e - Access merchant reports\n          \u003c/li\u003e\n          \u003cli\u003e\n            \u003ccode\u003etransaction\u003c/code\u003e - Access merchant transaction\n          \u003c/li\u003e\n          \u003cli\u003e\n            \u003ccode\u003echeckout\u003c/code\u003e - Create checkout\n          \u003c/li\u003e\n          \u003cli\u003e\n            \u003ccode\u003echeckout_api\u003c/code\u003e - Forward orders to Moka app\n          \u003c/li\u003e\n          \u003cli\u003e\n            \u003ccode\u003esales_type\u003c/code\u003e - Create/Modify advanced orderings sales type for an outlet.\n          \u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n  \u003c/table\u003e\n"},{"name":"Changelog","description":"\u003cp\u003eThese logs document the changes in Moka APIs including the supplemental and versioned changes. \u003c/p\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eChangelog history\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e22-06-2023\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eRemove usage of below fields for following API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET getEventsV1 API\u003c/p\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePOST createSubscriptionV1 API\u003c/p\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET getSubscriptionsV1 API\u003c/p\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePATCH updateSubscriptionV1 API\u003c/p\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eDELETE deleteSubscriptionV1 API\u003c/p\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e03-02-2023\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eItem Summaries API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/listItemSummariesV1\"\u003elistItemSummariesV1\u003c/a\u003e Add more explanation and detailed description regarding the API\n\u003c/ul\u003e\n\u003ch3\u003eLatest Transasction API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/showLatestTransactionsV3\"\u003eshowLatestTransactionsV3\u003c/a\u003e Add attributes \u003ccode\u003eexclude_bundle(bool)\u003c/code\u003e\n\u003c/ul\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e16-01-2023\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eItem Library API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePOST \u003ca href=\"#operation/uploadPOSImageV1\"\u003euploadPOSImageV1\u003c/a\u003e Add 422 case error example.\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePOST \u003ca href=\"#operation/uploadEcommerceImageV1\"\u003euploadEcommerceImageV1\u003c/a\u003e Add 422 case error example.\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eDELETE \u003ca href=\"#operation/deleteItemV1\"\u003edeleteItemV1\u003c/a\u003e Add handling and example for 422 error.\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003e Add ecommerce related attribute to GET \u003ca href=\"#operation/listItemsV1\"\u003elistItemsV1\u003c/a\u003e.\n\u003c/ul\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e11-01-2023\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eItem Adjusment API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eRemove attribute \u003ccode\u003ein_stock (string)\u003c/code\u003e for POST \u003ca href=\"#operation/createItemAdjustmentV1\"\u003ecreateItemAdjustmentV1\u003c/a\u003e.\n\u003c/ul\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e02-01-2023\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eItem Library API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePOST \u003ca href=\"#operation/uploadPOSImageV1\"\u003euploadPOSImageV1\u003c/a\u003e The uploadPOSImageV1 API has been introduced to create items in MOKA library.\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePOST \u003ca href=\"#operation/uploadEcommerceImageV1\"\u003euploadEcommerceImageV1\u003c/a\u003e The uploadEcommerceImageV1 API has been introduced to create items in MOKA library.\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePOST \u003ca href=\"#operation/createItemV1\"\u003ecreateItemV1\u003c/a\u003e: Add attribute image on create item for POS item image creation.\n\u003c/ul\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e07-12-2022\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eItem Library API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePOST \u003ca href=\"#operation/createItemV1\"\u003ecreateItemV1\u003c/a\u003e The createItemV1 API has been introduced to create items in MOKA library.\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePUT \u003ca href=\"#operation/updateItemV1\"\u003eupdateItemV1\u003c/a\u003e The updateItemV1 API has been introduced to update items in MOKA library.\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eDELETE \u003ca href=\"#operation/deleteItemV1\"\u003edeleteItemV1\u003c/a\u003e The deleteItemV1 API has been introduced to delete items in MOKA library.\n\u003c/ul\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e22-11-2022\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eAdvanced Ordering Description: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eChange the status on order cancel by cashier from \"cancelled\" to \"rejected\"\u003c/li\u003e\n\u003c/ul\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e01-11-2022\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eReport Invoice Detail V2 API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/reportInvoiceDetailV2\"\u003ereportInvoiceDetailV2\u003c/a\u003e API can be query by \n  \u003ccode\u003einvoice_id (string)\u003c/code\u003e\u003c/p\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cbr\u003e\n\u003ch3\u003eDeprecate usage of below fields for following API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/reportInvoicesV2\"\u003ereportInvoicesV2\u003c/a\u003e API\u003c/p\u003e\u003c/li\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003cth style=\"text-align:left\"\u003eDeprecated Response Fields\u003c/th\u003e\n      \u003cth style=\"text-align:left\"\u003eReplacement Response Fields\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n        \u003ctd\u003e\n          \u003cul\u003e\n            \u003cli\u003e\u003ccode\u003edata.invoices[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.invoices[i].parent_payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n          \u003cul\u003e\n            \u003cli\u003e\u003ccode\u003edata.invoices[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.invoices[i].parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n  \u003c/table\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/reportInvoiceDetailV2\"\u003ereportInvoiceDetailV2\u003c/a\u003e API\u003c/p\u003e\u003c/li\u003e\n   \u003ctable\u003e\n      \u003ctr\u003e\n        \u003cth style=\"text-align:left\"\u003eDeprecated Response Fields\u003c/th\u003e\n        \u003cth style=\"text-align:left\"\u003eReplacement Response Fields\u003c/th\u003e\n      \u003c/tr\u003e\n      \u003ctbody\u003e\n        \u003ctr\u003e\n          \u003ctd\u003e\n            \u003cul\u003e\n              \u003cli\u003e\u003ccode\u003edata.id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.parent_payment_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].payment_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].payment_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].parent_checkout_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].payment_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_records[i].id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_records[i].payment_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_refunds[i].id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_refunds[i].parent_payment_id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].id\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003c/ul\u003e\n          \u003c/td\u003e\n          \u003ctd\u003e\n            \u003cul\u003e\n              \u003cli\u003e\u003ccode\u003edata.uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].parent_checkout_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_records[i].uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_records[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_refunds[i].uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_refunds[i].parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].uuid\u003c/code\u003e\u003c/li\u003e\n              \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003c/ul\u003e\n          \u003c/td\u003e\n        \u003c/tr\u003e\n      \u003c/tbody\u003e\n    \u003c/table\u003e \n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/showLatestTransactionsV2\"\u003eshowLatestTransactionsV2\u003c/a\u003e API\u003c/p\u003e\u003c/li\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003cth style=\"text-align:left\"\u003eDeprecated Response Fields\u003c/th\u003e\n      \u003cth style=\"text-align:left\"\u003eReplacement Response Fields\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n        \u003ctd\u003e\n          \u003cul\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].parent_payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_taxes[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_taxes[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_gratuities[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_gratuities[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_discounts[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_discounts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].parent_payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_modifiers[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_modifiers[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_modifiers[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_discounts[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_discounts[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_discounts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].promos[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].promos[i].items[i].payment_promo_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].promos[i].items[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].parent_promos[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].parent_promos[i].items[i].payment_promo_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].parent_promos[i].items[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].parent_payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n          \u003cul\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_taxes[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_taxes[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_gratuities[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_gratuities[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_discounts[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_discounts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_modifiers[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_modifiers[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_modifiers[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_discounts[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_discounts[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].checkout_discounts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].promos[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].promos[i].items[i].payment_promo_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].promos[i].items[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].parent_promos[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].parent_promos[i].items[i].payment_promo_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].parent_promos[i].items[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n  \u003c/table\u003e\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003ePOST \u003ca href=\"#operation/createCheckoutV1\"\u003ecreateCheckoutV1\u003c/a\u003e API\u003c/p\u003e\u003c/li\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003cth style=\"text-align:left\"\u003eDeprecated Response Fields\u003c/th\u003e\n      \u003cth style=\"text-align:left\"\u003eReplacement Response Fields\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n        \u003ctd\u003e\n          \u003cul\u003e\n            \u003cli\u003e\u003ccode\u003edata.id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.parent_payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].parent_checkout_id\u003c/code\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n          \u003cul\u003e\n            \u003cli\u003e\u003ccode\u003edata.uuid\u0026nbsp;\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].parent_checkout_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n  \u003c/table\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/reportInvoicesV3\"\u003ereportInvoicesV3\u003c/a\u003e API\u003c/p\u003e\u003c/li\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003cth style=\"text-align:left\"\u003eDeprecated Response Fields\u003c/th\u003e\n      \u003cth style=\"text-align:left\"\u003eReplacement Response Fields\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n        \u003ctd\u003e\n          \u003cul\u003e\n            \u003cli\u003e\u003ccode\u003edata.parent_payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_records[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_records[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_refunds[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_refunds[i].parent_payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].parent_checkout_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].payment_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n          \u003cul\u003e\n            \u003cli\u003e\u003ccode\u003edata.parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_gratuities[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_taxes[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_records[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_records[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_discounts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_refunds[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.payment_refunds[i].parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].parent_checkout_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_modifiers[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ccode\u003edata.checkouts[i].checkout_discounts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n  \u003c/table\u003e\n\u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/reportInvoiceDetailV3\"\u003ereportInvoiceDetailV3\u003c/a\u003e API\u003c/p\u003e\u003c/li\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth style=\"text-align:left\"\u003eDeprecated Response Fields\u003c/th\u003e\n    \u003cth style=\"text-align:left\"\u003eReplacement Response Fields\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003ccode\u003edata.invoices[i].parent_payment_id\u003c/code\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/td\u003e\n      \u003ctd\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003ccode\u003edata.invoices[i].parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\u003cli\u003e\u003cb\u003e\u003c/b\u003eGET \u003ca href=\"#operation/showLatestTransactionsV3\"\u003eshowLatestTransactionsV3\u003c/a\u003e API\u003c/p\u003e\u003c/li\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth style=\"text-align:left\"\u003eDeprecated Response Fields\u003c/th\u003e\n    \u003cth style=\"text-align:left\"\u003eReplacement Response Fields\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_taxes[i].id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_taxes[i].payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_gratuities[i].id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_gratuities[i].payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_discounts[i].id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_discounts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].parent_payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].parent_checkout_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].modifiers[i].id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].modifiers[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].modifiers[i].payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].parent_checkout_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].payment_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].modifiers[i].id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].modifiers[i].checkout_id\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].modifiers[i].payment_id\u003c/code\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/td\u003e\n      \u003ctd\u003e\n        \u003cul\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_taxes[i].uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_taxes[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_gratuities[i].uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_gratuities[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_discounts[i].uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_discounts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].parent_payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].parent_checkout_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].modifiers[i].uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].modifiers[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].checkouts[i].modifiers[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].parent_checkout_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].modifiers[i].uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].modifiers[i].checkout_uuid\u003c/code\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ccode\u003edata.payments[i].payment_refunds[i].checkouts[i].modifiers[i].payment_uuid\u003c/code\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/ul\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e20-09-2021\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003eShifts API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eThe entire Shifts API has been removed.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch3\u003eSalesType API\u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eThe \u003ca href=\"#operation/createSalesType\"\u003ecreateSalesType\u003c/a\u003e API has been introduced to create new sales type.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch3\u003e\u003cb\u003e\u003cp\u003e24-06-2020\u003c/p\u003e\u003c/b\u003e\u003c/h3\u003e\n\u003chr style=\"height:1px;border:none;color:#333;background-color:#333;\"\u003e\n\u003ch2\u003e\u003cb\u003e\u003cp\u003eFeatures:\u003c/p\u003e\u003c/b\u003e\u003c/h2\u003e\n\u003ch3\u003e Subscription API: \u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eThe \u003ca href=\"#operation/getEventsV1\"\u003egetEventsV1\u003c/a\u003e API has been introduced to retrieve events available in MOKA. \u003c/p\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eThe \u003ca href=\"#operation/getSubscriptionsV1\"\u003egetSubscriptionsV1\u003c/a\u003e API has been introduced to retrieve the subscriptions which you registered. \u003c/p\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eThe \u003ca href=\"#operation/createSubscriptionV1\"\u003ecreateSubscriptionV1\u003c/a\u003e API has been introduced to subscribe to an event. \u003c/p\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eThe \u003ca href=\"#operation/updateSubscriptionV1\"\u003eupdateSubscriptionV1\u003c/a\u003e API has been introduced to update the subscriptions which you registered. \u003c/p\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003e\u003c/b\u003eThe \u003ca href=\"#operation/deleteSubscriptionV1\"\u003edeleteSubscriptionV1\u003c/a\u003e API has been introduced to destroy the subscriptions which you registered. \u003c/p\u003e\u003c/li\u003e\n\u003c/ul\u003e\n"},{"name":"Loyalties","description":"\u003cp\u003eLoyalty Program is related to business.\u003c/p\u003e\n\u003cp\u003eThese are the terminology of loyalty\u003c/p\u003e\n\u003cp\u003e\n  \u003cb\u003eCustomer and Merchant\u003c/b\u003e\n  \u003cp\u003eMerchant is the owner of a business, and a user of Moka App. Customer will do transactions to merchant. There are 2 kind of customers, loyalty and non-loyalty.\u003c/p\u003e\n  \u003cp\u003eA loyalty customer must have phone number\u003c/p\u003e\n\u003c/p\u003e\n\u003cp\u003e\n  \u003cb\u003eProgram\u003c/b\u003e\n\u003c/p\u003e\n\u003cp\u003eWhen a merchant create a loyalty, he needs to first create a program. Currently we support 2 programs\u003c/p\u003e\n\u003col\u003e\n  \u003cli\u003eGain points from money you spent (Rp/IDR amount)\u003c/li\u003e\n  \u003cli\u003eGain points from item you bought\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\n  \u003cb\u003eProgram Rules/Earning Rules\u003c/b\u003e\n\u003c/p\u003e\n\u003cp\u003eThis is how a loyalty member get points. For example, by spending 1,000 IDR you get 1 points loyalty. Also, new member can get initial point reward when joining loyalty program\u003c/p\u003e\n\u003cp\u003e\n  \u003cb\u003eProgram Rewards\u003c/b\u003e\n\u003c/p\u003e\n\u003cp\u003eYou can get these following rewards configuration:\u003c/p\u003e\n\u003col\u003e\n  \u003cli\u003e% discount on total sale. You will get % price cut based on total calculation of a transaction.\u003c/li\u003e\n  \u003cli\u003eRp discount on total sale. You will get Rp discount based on total calculation of a transaction.\u003c/li\u003e\n  \u003cli\u003e% discount on specific item. You will get % price cut of a item.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\n  \u003cb\u003eCustomer validation code\u003c/b\u003e\n  \u003cp\u003eValidate customer phone number by sending validation code\u003c/p\u003e\n\u003c/p\u003e\n"},{"name":"Advanced Orderings","description":"\u003cp\u003eAdvanced orderings is an API that forwards the data to our mobile application. Using this API, 3rd party app can create a checkout using Moka\u003c/p\u003e\n\u003cp\u003eThere are various 3rd party which can consume this API, for example food delivery app and e-commerce.\u003c/p\u003e\n\u003cimg src='https://i.gojekapi.com/darkroom/moka/v2/images/static/open-platform/api-docs/business-flow.png' height='500'/\u003e\n\u003cp\u003eThe diagram can be described as follows:\u003c/p\u003e\n\u003col\u003e\n  \u003cli\u003e3rd party app create order using Moka external API\u003c/li\u003e\n  \u003cli\u003eMoka system will forward the data into Moka mobile\u003c/li\u003e\n  \u003cli\u003eCashier will decide whether the order can be fulfilled or not. If the order can be fulfilled, the cashier will \u003cb\u003eaccept order\u003c/b\u003e. If it is not, the cashier will \u003cb\u003ecancel order\u003c/b\u003e.\u003c/li\u003e\n  \u003cli\u003eDepending on situation, Moka will give notification either `accept order` or `cancel order`\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003eIf you are food delivery\u003c/b\u003e, you can start searching for driver. Invoke Moka API for sending the driver data to Moka. The data will be forwarded to Moka app\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003eIf you are e-commerce\u003c/b\u003e, cashier will give data about the expedition number. Moka will send notification regarding expedition data to 3rd party app\u003c/li\u003e\n  \u003cli\u003eCashier will complete order. With this operation, the order data will be treated as Moka's checkout data (It will deduct inventory data of merchant and add transaction in Moka's dashboard). Also,\n          3rd party app will be notified.\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2\u003eCallbacks\u003c/h2\u003e\n\u003cp\u003eMoka will notify 3rd party app when there is some operation related to advanced ordering\u003c/p\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eEvent\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n    \u003cth style='min-width: 50%'\u003eExample Body\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eAccept Order\u003c/td\u003e\n    \u003ctd\u003eThe cashier accept the order, and decided to fulfill the order.\u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003e\n        POST /your-callback-url\u003cbr/\u003e\n        {\u003cbr/\u003e\n          \"outlet_id\": 123,\u003cbr/\u003e\n          \"application_order_id\": \"IOS-123456\",\u003cbr/\u003e\n          \"status\": \"accepted\"\u003cbr/\u003e\n        }\n      \u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eComplete Order\u003c/td\u003e\n    \u003ctd\u003eThe cashier complete the order\u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003e\n        POST /your-callback-url\u003cbr/\u003e\n        {\u003cbr/\u003e\n          \"outlet_id\": 123,\u003cbr/\u003e\n          \"application_order_id\": \"IOS-123456\",\u003cbr/\u003e\n          \"status\": \"completed\"\u003cbr/\u003e\n        }\n      \u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eCancel Order\u003c/td\u003e\n    \u003ctd\u003e\n      The cashier cancel the order. \n      \u003cbr\u003e\u003c/br\u003e\n      \u003cbr\u003eNote: Any order cancelled by cashier, its status will be changed into \"rejected\"\u003c/br\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003e\n        POST /your-callback-url\u003cbr/\u003e\n        {\u003cbr/\u003e\n          \"outlet_id\": 123,\u003cbr/\u003e\n          \"application_order_id\": \"IOS-123456\",\u003cbr/\u003e\n          \"status\": \"rejected\"\u003cbr/\u003e\n        }\n      \u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eUpdate Expedition Order\u003c/td\u003e\n    \u003ctd\u003eThe cashier input the expedition\u003c/td\u003e\n    \u003ctd\u003e\n      \u003ccode\u003e\n        POST /your-callback-url\u003cbr/\u003e\n        {\u003cbr/\u003e\n          \"outlet_id\": 123,\u003cbr/\u003e\n          \"application_order_id\": \"IOS-123456\",\u003cbr/\u003e\n          \"name\": \"MokaExpress\",\u003cbr/\u003e\n          \"airway_bill_number\": \"AMG-123456\"\u003cbr/\u003e\n        }\n      \u003c/code\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\u003ch3\u003eStep-by-Step Guide to Integrate Utilizing Advanced Orderings API\u003c/h3\u003e\n\u003cp\u003ePlease refer to Advanced Orderings \u003ca target=\"_blank\" href='https://i.gojekapi.com/darkroom/moka/v2/images/static/open-platform/api-docs/documents/Advanced+Ordering+-+Getting+Started.pdf'\u003eGetting Started\u003c/a\u003e doc to learn more about the requirements for the integration process.\u003c/p\u003e\n"},{"name":"Oauth","description":"\u003cimg src='https://i.gojekapi.com/darkroom/moka/v2/images/static/open-platform/api-docs/auth-flow.png' height='400'/\u003e\n\u003cp\u003eThe flows is described as follows:\u003c/p\u003e\n\u003col\u003e\n  \u003cli\u003eThe owner of business (which uses Moka) open the \u003cb\u003eApp Market\u003c/b\u003e\u003c/li\u003e\n  \u003cli\u003eThe owner see list of apps available in Moka\u003c/li\u003e\n  \u003cli\u003eThe user click \u003cb\u003eget started\u003c/b\u003e to authorize the application\u003c/li\u003e\n  \u003cli\u003eThe backoffice redirect the user to the \u003cb\u003eauthorization page\u003c/b\u003e\u003c/li\u003e\n  \u003cli\u003eThe \u003cb\u003eauthorization\u003c/b\u003e page shows modal to owner\u003c/li\u003e\n  \u003cli\u003eThe owner then click allow if they permit the requested permissions.\u003c/li\u003e\n  \u003cli\u003eThe owner will be redirected to the 3rd party application, with the temporary grant token named `code` as query parameter. At this point, owner will access page in 3rd party app.\u003c/li\u003e\n  \u003cli\u003e3rd party app need to exchange temporary token `code` into access token, using the `/oauth/token` API\u003c/li\u003e\n  \u003cli\u003eMoka server will return access token that can be used by 3rd party app to fetch data\u003c/li\u003e\n  \u003cli\u003e3rd party app can start to access the API\u003c/li\u003e\n\u003c/ol\u003e\n"},{"name":"Checkout API","description":"\u003cp\u003eCheckout API is an API that allows merchants to send the transaction data from external source to Moka’s Backoffice.\u003c/p\u003e \u003cimg src='https://i.gojekapi.com/darkroom/moka/v2/images/static/open-platform/api-docs/checkout_api_flow.png' height='100'/\u003e \u003cp\u003eIf the transaction includes discounted item, there are some restrictions to follow:\u003c/p\u003e \u003col\u003e \u003cli\u003eIf it is a \u003cb\u003ecash discount\u003c/b\u003e, the information should be passed in the discount block\u003c/li\u003e \u003cimg src='https://i.gojekapi.com/darkroom/moka/v2/images/static/open-platform/api-docs/discount_cash_white.png' height='200'/\u003e \u003c/li\u003e \u003cli\u003eIf it is a \u003cb\u003epercentage discount\u003c/b\u003e, the information should be passed in the item block based on the item that contains the discount\u003c/li\u003e \u003cimg src='https://i.gojekapi.com/darkroom/moka/v2/images/static/open-platform/api-docs/discount_percentage_white.png' height='200'/\u003e \u003c/ol\u003e"},{"name":"Modification","description":"\u003cp\u003eAPI for modification are API that allows merchants to supdate data to Moka’s Backoffice.\u003c/p\u003e"}],"x-tagGroups":[{"name":"Introduction","tags":["Getting Started","Types of Moka Apps","Authentication","Changelog"]},{"name":"Oauth","tags":["Oauth","Subscription"]},{"name":"Checkout","tags":["Advanced Orderings","Checkout API"]},{"name":"Modification","tags":["Item Adjustment"]},{"name":"Get Merchant Profile","tags":["Business","Customers","Loyalties","Outlet","Users","Quota"]},{"name":"Read Library","tags":["Categories","Discounts","Favorites","Gratuities","Items","Modifiers","Taxes","Purchase Order","Sales Type","Promos","Bundle Package"]},{"name":"Read Ingredient","tags":["Ingredient Categories","Ingredient Library"]},{"name":"Read Inventory","tags":["Item Summaries"]},{"name":"Read Transaction","tags":["Invoices","Latest Transaction","Transaction","Sync Bills"]},{"name":"Get Reports","tags":["Category Sales","Collector Sales","Modifier Sales","Discount Sales","Tax Sales","Gratuity Sales","Server Sales","Item Sales","Sales summary","Payment Methods"]}],"paths":{"/v4/outlets/{outlet_id}/reports/get_latest_transactions":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Latest transactions response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"next_url":{"type":"string"},"completed":{"type":"boolean"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"},"bill_id":{"type":"integer"},"tax_type":{"type":"string"},"grauity_type":{"type":"string"},"uuid":{"type":"string"},"parent_payment_uuid":{"type":"string"},"outlet_name":{"type":"string","description":"Name of the outlet"},"payment_taxes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"integer"},"total":{"type":"number"},"taxable_amount":{"type":"number"},"payment_id":{"type":"number"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"tax_id":{"type":"integer"}}}},"payment_gratuities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"number"},"total":{"type":"number"},"payment_id":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"gratuity_id":{"type":"string"}}}},"payment_discounts":{"type":"array","items":{"type":"object","description":"Discount applied to payment","properties":{"id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_id":{"type":"integer"},"discount_amount":{"type":"number"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"discount_cash":{"type":"number"}}}},"payment_refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"}}}},"checkouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"custom_amount":{"type":"number"},"item_variant_id":{"type":"integer"},"quantity":{"type":"integer"},"discount_amount":{"type":"number"},"tax_amount":{"type":"number"},"business_id":{"type":"integer"},"payment_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"item_id":{"type":"integer"},"item_discount":{"type":"integer"},"item_price_library":{"type":"number"},"item_price":{"type":"number"},"item_price_discount":{"type":"number"},"gratuity_amount":{"type":"number"},"item_price_discount_gratuity":{"type":"integer","format":"int64"},"total_price":{"type":"number"},"item_price_quantity":{"type":"number"},"category_name":{"type":"string"},"category_id":{"type":"integer"},"item_name":{"type":"string"},"item_variant_name":{"type":"string"},"sku":{"type":"string"},"note":{},"cogs":{"type":"number"},"gross_sales":{"type":"number"},"outlet_id":{"type":"integer"},"position":{"type":"integer"},"net_sales":{"type":"number"},"track_stock":{"type":"boolean"},"item_image":{"type":"string"},"parent_checkout_id":{},"is_recipe":{"type":"boolean"},"redeem_amount":{"type":"number"},"sales_type_id":{"type":"boolean"},"sales_type_name":{"type":"number"},"principal_id":{"type":"integer"},"principal_name":{"type":"string"},"checkout_modifiers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"checkout_id":{"type":"integer"},"modifier_id":{"type":"integer"},"modifier_option_id":{"type":"integer"},"modifier_name":{"type":"string"},"modifier_option_name":{"type":"string"},"price":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"cogs":{"type":"integer","format":"int64"},"outlet_id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_amount":{"type":"integer"},"gross_sales":{"type":"number"},"net_sales":{"type":"number"},"discount_hash":{"type":"string"},"redeem_amount":{"type":"number"}}}},"checkout_discounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"checkout_id":{"type":"integer"},"discount_amount":{"type":"integer"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"discount_percentage":{"type":"integer"},"payment_id":{"type":"integer"},"discount_hash":{"type":"object"}}}}}}},"promos":{"type":"array","description":"List of promo item","items":{"description":"Promo data","properties":{"business_id":{"type":"integer","example":1678},"outlet_id":{"type":"integer","example":2604},"payment_id":{"type":"integer","example":336797},"promo_type_id":{"type":"integer","example":1},"promo_id":{"type":"integer","example":930},"promo_name":{"type":"string","example":"Sirloin free MashedPotato"},"reward_discount_type":{"type":"string","example":"FREE"},"reward_amount":{"type":"integer","example":100},"count":{"type":"integer","example":1},"gross":{"type":"integer","example":0},"refunded_from":{"type":"integer","example":6125},"created_at":{"type":"string","example":"2018-12-17T10:47:08Z"},"items":{"type":"array","items":{"description":"Promo Items","properties":{"payment_promo_id":{"type":"integer","example":6128},"checkout_id":{"type":"integer","example":366987},"amount":{"type":"integer","example":1},"category_id":{"type":"integer","example":24549},"category_name":{"type":"integer","example":"Pizza"},"item_id":{"type":"integer","example":"Pizza"},"item_name":{"type":"integer","example":"Sirloin"},"item_variant_id":{"type":"integer","example":1085288},"item_variant_name":{"type":"string","example":"250"},"promo_item_status":{"type":"string","description":"Promo item status. Can be REQUIREMENT, or REWARD","example":"REQUIREMENT"},"promo_requirement_id":{"type":"string","example":1225},"promo_reward_id":{"type":"integer","example":123},"total_rewarded":{"type":"integer","example":0}}}}}}},"parent_promos":{"type":"array","description":"List of parent promo item based on the parent transaction. If the transaction is a refund, then this field refers to promo of the original payment (parent_payment_id field). If this transaction is not refund, then this value is ignored.","items":{"description":"Promo data","properties":{"business_id":{"type":"integer","example":1678},"outlet_id":{"type":"integer","example":2604},"payment_id":{"type":"integer","example":336797},"promo_type_id":{"type":"integer","example":1},"promo_id":{"type":"integer","example":930},"promo_name":{"type":"string","example":"Sirloin free MashedPotato"},"reward_discount_type":{"type":"string","example":"FREE"},"reward_amount":{"type":"integer","example":100},"count":{"type":"integer","example":1},"gross":{"type":"integer","example":0},"refunded_from":{"type":"integer","example":6125},"created_at":{"type":"string","example":"2018-12-17T10:47:08Z"},"items":{"type":"array","items":{"description":"Promo Items","properties":{"payment_promo_id":{"type":"integer","example":6128},"checkout_id":{"type":"integer","example":366987},"amount":{"type":"integer","example":1},"category_id":{"type":"integer","example":24549},"category_name":{"type":"integer","example":"Pizza"},"item_id":{"type":"integer","example":"Pizza"},"item_name":{"type":"integer","example":"Sirloin"},"item_variant_id":{"type":"integer","example":1085288},"item_variant_name":{"type":"string","example":"250"},"promo_item_status":{"type":"string","description":"Promo item status. Can be REQUIREMENT, or REWARD","example":"REQUIREMENT"},"promo_requirement_id":{"type":"string","example":1225},"promo_reward_id":{"type":"integer","example":123},"total_rewarded":{"type":"integer","example":0}}}}}}},"loyalty":{"type":"object","properties":{"payment_uuid":{"type":"string","description":"UUID of the payment transaction"},"parent_payment_uuid":{"type":"string","nullable":true,"description":"UUID of the parent payment transaction"},"type":{"type":"string","description":"Type of loyalty transaction (EARNING, REDEMPTION)"},"current_balance":{"type":"integer","description":"Current loyalty points balance before transaction"},"new_member_points":{"type":"integer","description":"New member bonus points"},"new_earned_points":{"type":"integer","description":"Points earned in this transaction"},"point_correction":{"type":"integer","description":"Point correction adjustment"},"closing_balance":{"type":"integer","description":"Loyalty points balance after transaction"},"member_id":{"type":"integer","description":"Member ID in loyalty program"},"earning_rule":{"type":"object","description":"Earning rule applied to the transaction","properties":{"id":{"type":"integer","description":"Earning rule ID"},"type":{"type":"string","description":"Type of earning rule (SPENDING, ITEM, SPENDING_PRINCIPAL, SKU_QUANTITY, SKU_AMOUNT)"},"point":{"type":"number","description":"Points earned per unit amount"},"amount":{"type":"number","description":"Amount used for points calculation"}}},"redemption":{"type":"array","description":"List of redemption transactions","items":{"type":"object","properties":{"redeem_id":{"type":"integer","description":"Redemption transaction ID"},"outlet_id":{"type":"integer","description":"Outlet ID where redemption occurred"},"outlet_name":{"type":"string","description":"Outlet name"},"payment_uuid":{"type":"string","description":"Payment UUID for redemption"},"parent_payment_uuid":{"type":"string","nullable":true,"description":"Parent payment UUID"},"discount":{"type":"number","description":"Discount amount or percentage"},"discount_type":{"type":"string","description":"Type of discount (PERCENTAGE, AMOUNT)"},"max_discount_amount":{"type":"number","nullable":true,"description":"Maximum discount amount allowed"},"min_purchase_amount":{"type":"number","nullable":true,"description":"Minimum purchase amount required"},"initial_points":{"type":"integer","description":"Points balance before redemption"},"redeem_points":{"type":"integer","description":"Points used for redemption"},"closing_point_balance":{"type":"integer","description":"Points balance after redemption"},"redeem_amount":{"type":"number","description":"Amount of redemption discount"},"reward":{"type":"string","description":"Reward description"},"reward_type":{"type":"string","description":"Type of reward (TOTAL_SALES, ITEM, CATEGORY, PRINCIPAL)"},"reward_id":{"type":"integer","description":"Reward ID"},"created_at":{"type":"string","format":"date_time","description":"Redemption creation timestamp"},"synchronized_at":{"type":"string","format":"date_time","description":"Synchronization timestamp"},"created_by":{"type":"string","description":"User who created the redemption"}}}}}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"next_url":"https://api.mokapos.com/v4/outlets/2239/reports/get_latest_transactions?per_page=50\u0026mobile_device=true\u0026since=0.0\u0026until=1486361995.147691\u0026access_token=c10f32248339697b2ebb0e2aaa1e4159d02501c69560218e52d010e4782867d6","completed":false,"payments":[{"id":"63428a08-86a8-4f64-915a-d2fd2c6e076a","payment_no":"6H7DDA1","created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:09:59.496155+07:00","parent_payment_created_at":"2022-10-20T15:09:59.496155+07:00","total_collected":92000,"total_item_price_amount":0,"name":"Ice Cappucino","parent_payment_id":"63428a08-86a8-4f64-915a-d2fd2c6e076a","payment_type":"cash","payment_type_label":"Cash","customer_id":null,"payment_note":null,"discounts":11400,"subtotal":52600,"gratuities":21040,"taxes":18410,"tendered":100000,"change":8000,"include_gratuity_tax":false,"enable_tax":true,"enable_gratuity":true,"card_type":null,"card_no":null,"transaction_date":"20 Oct 2022","transaction_time":"03 : 09 PM","collected_by":"Shintaaaa12 Shintaaaa","served_by":"Shintaaaa12 Shintaaaa","synchronized_at":"2022-10-20T15:10:04.625000+07:00","outlet_id":4522,"pg_mid":null,"mpos_device_id":null,"transaction_certificate":null,"transaction_status_info":null,"mpos_transaction_date":null,"merchant_id":null,"transaction_reference":null,"transaction_number":null,"order_info":null,"cc_name":null,"pii":null,"guid":"AE074E8E-2E7C-4AB2-9AF3-97C514168132","uniq_id":"141","invoice_due_date":null,"invoice_no":null,"invoice_deposit_amount":null,"invoice_payment_records":null,"payment_discounts":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:09:48.755429+07:00","uuid":"ab559058-784f-4e83-b27d-1e91bcac7a27","discount_percentage":0,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","discount_id":429550,"discount_name":"Rupiah Ini","discount_amount":5000.0,"discount_type":"cash","discount_cash":5000.0,"is_deleted":null}],"payment_taxes":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:10:04.645000+07:00","amount":10.0,"tax_id":40475,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","uuid":"b55d8842-5b07-4f5c-ab64-7ee8663d9546","taxable_amount":73640.0,"total":7364.0,"name":"Tax"}],"payment_gratuities":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:10:04.645000+07:00","uuid":"29adcaac-fe69-41a5-9ac1-d4a2f9b1c8a0","name":"Frea","amount":25.0,"total":13150.0,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","gratuity_id":592604}],"checkouts":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:10:04.625000+07:00","item_discount":0,"parent_checkout_uuid":null,"uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","gross_sales":64000.0,"item_name":"Ice Cappucino","refunded_quantity":1,"item_id":1181590,"sales_type_name":"Kaki lima","tax_amount":18410.0,"item_variant_name":"","is_deleted":false,"track_stock":false,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","is_program_item":false,"sales_type_id":807678,"item_variant_id":1784869,"item_price_library":64000.0,"category_name":"Beverage","position":0,"net_sales":52600.0,"cogs":0.0,"sku":"","is_recipe":false,"redeem_amount":0.0,"quantity":1,"price":64000.0,"item_price_discount":52600.0,"item_price_discount_gratuity":0,"custom_amount":0.0,"business_id":4011,"item_price":64000.0,"total_price":52600.0,"outlet_id":4522,"item_image":"","category_id":94185,"item_price_quantity":64000.0,"discount_amount":11400.0,"gratuity_amount":21040.0,"note":null,"principal_id":367,"principal_name":"Unilever","gratuities":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:10:04.625000+07:00","uuid":"5a29e11f-726a-4b5e-ba90-a7c9807fce33","gratuity_name":"Service ","amount":5.0,"total":2630.0,"checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","gratuity_id":172881,"sales_type_id":807678,"sales_type_name":"Kaki lima"}],"discounts":[{"discount_id":429550,"discount_type":"cash","discount_name":"Rupiah Ini","discount_percentage":0.0,"discount_cash":5000,"discount_amount":5000}],"modifiers":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:09:01.826069+07:00","uuid":"6ff0bd8f-77f2-491f-b6f5-303ac3defe10","gross_sales":2000.0,"net_sales":1643.75,"modifier_id":16682,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","discount_amount":356.25,"modifier_option_name":"Manis 2","price":2000,"modifier_name":"Topping Manis","modifier_option_id":94449,"cogs":null,"checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","outlet_id":4522,"redeem_amount":0.0,"discounts":[{"created_at":"2022-10-20T15:09:48.755913+07:00","updated_at":"2022-10-20T15:09:48.755913+07:00","discount_id":429550,"discount_amount":156.25,"discount_name":"Rupiah Ini","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}]}],"bundle_id":null,"item_type":null}],"payment_refunds":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.000000+07:00","transaction_reference":null,"amount_pay":0,"business_id":4011,"pii":null,"longitude":106.70048647,"include_gratuity_tax":false,"refunded_reason":"Cancelled Order","total_discount_amount":-11400,"collected_by":"Shintaaaa12 Shintaaaa","created_by":5658,"uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","auth_code":null,"creator_name":"Shintaaaa12 Shintaaaa","is_sales_type":true,"refund_amount":92000,"pg_setting":null,"server_name":"Shintaaaa12 Shintaaaa","refund_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","total_collected_amount":-92000,"server_title":"Owner","customer_name":"","invoice_due_date":null,"cashlezz_transaction_id":null,"latitude":-6.33664033,"mpos_transaction_date":null,"is_refunded":true,"collector_id":null,"transaction_status_info":null,"guid":"1a7b64af-52c0-4dbd-9b07-a897a36b5848","note":"","receipt_count":0,"bill_id":null,"customer_email":"","transaction_date":"20 Oct 2022","total_redeem_amount":0,"synchronized_at":"2022-10-20T15:10:53.356000+07:00","outlet_id":4522,"invoice_deposit_amount":null,"cvm_result":null,"refunded_by":"Shintaaaa12 Shintaaaa","uniq_id":"0","sms_id":null,"order_info":null,"subtotal":-52600,"table_name":"","total_custom_price_amount":0,"total_item_price_amount":0,"cc_name":null,"transaction_time":"03 : 10 PM","server_id":5658,"pg_mid":null,"payment_type":"cash","is_offline":null,"discount_id":null,"card_type":null,"payment_no":"6H7DDA1","merchant_id":null,"customer_phone":"","amount_change":0,"shift_id":null,"card_no":null,"total_gross_sales":-64000,"total_rounding_amount":50,"total_net_sales":-52600,"status":"Done","mpos_device_id":null,"transaction_certificate":null,"refunded_at":"2022-10-20T15:10:53.000000+07:00","total_tax_amount":-18410,"refunded_date":"2022-10-20T15:10:53.357000+07:00","total_gratuity_amount":-21040,"customer_id":null,"transaction_number":null,"is_deleted":false,"tvr":null,"invoice_no":null,"is_refund_breakdown":true,"aid":null,"server_created_at":"2022-10-20T15:10:53.359000+07:00","refund_type":"full","parent_payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","order_id":null,"total_checkouts_amount":-41150,"is_loyalty":false,"invoice_status":null,"checkouts":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.356000+07:00","item_discount":0,"parent_checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","gross_sales":-64000.0,"item_name":"Ice Cappucino","refunded_quantity":0,"item_id":1181590,"sales_type_name":"Kaki lima","tax_amount":-18410.0,"item_variant_name":"","is_deleted":false,"track_stock":false,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","is_program_item":false,"sales_type_id":807678,"item_variant_id":1784869,"item_price_library":64000.0,"category_name":"Beverage","position":0,"net_sales":-52600.0,"cogs":0.0,"sku":"","is_recipe":false,"redeem_amount":0.0,"quantity":-1,"price":-64000.0,"item_price_discount":-52600.0,"item_price_discount_gratuity":0,"custom_amount":0.0,"business_id":4011,"item_price":64000.0,"total_price":-52600.0,"outlet_id":4522,"outlet_name":"Outlet Bandung","item_image":"","category_id":94185,"item_price_quantity":-64000.0,"discount_amount":-11400.0,"gratuity_amount":-21040.0,"note":null,"principal_id":367,"principal_name":"Unilever","gratuities":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.356000+07:00","uuid":"c1e966db-a147-40d6-9dc0-cf77be090c24","gratuity_name":"Gratuity","amount":10.0,"total":-5260.0,"checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","gratuity_id":46185,"sales_type_id":807678,"sales_type_name":"Kaki lima"}],"discounts":[{"created_at":null,"updated_at":null,"discount_id":429549,"discount_amount":-6400,"discount_name":"Percent Lah Cok","discount_type":"percentage","discount_percentage":10.0,"discount_cash":0,"discount_guid":null},{"created_at":null,"updated_at":null,"discount_id":429550,"discount_amount":-5000,"discount_name":"Rupiah Ini Cok","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}],"modifiers":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.327000+07:00","id":0,"uuid":"17b77b97-6d81-4ad9-90da-6636a9b202a3","gross_sales":1000.0,"net_sales":821.875,"modifier_id":16682,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_amount":178.125,"modifier_option_name":"Manis 1","price":1000,"modifier_name":"Topping Manis","modifier_option_id":94448,"cogs":null,"checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","outlet_id":4522,"redeem_amount":0.0,"discounts":[{"created_at":"2022-10-20T15:09:48.755913+07:00","updated_at":"2022-10-20T15:09:48.755913+07:00","discount_id":429550,"discount_amount":78.125,"discount_name":"Rupiah Ini","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}]},{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.327000+07:00","id":0,"uuid":"40dbaed5-6cca-4c03-ae5b-c41d379a002d","gross_sales":2000.0,"net_sales":1643.75,"modifier_id":16682,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_amount":356.25,"modifier_option_name":"Manis 2","price":2000,"modifier_name":"Topping Manis","modifier_option_id":94449,"cogs":null,"checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","outlet_id":4522,"redeem_amount":0.0,"discounts":[{"created_at":"2022-10-20T15:09:48.755913+07:00","updated_at":"2022-10-20T15:09:48.755913+07:00","discount_id":429550,"discount_amount":156.25,"discount_name":"Rupiah Ini","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}]},{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.327000+07:00","id":0,"uuid":"5b841201-7bab-44da-af93-f1c8a70ee855","gross_sales":11000.0,"net_sales":9040.625,"modifier_id":17042,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_amount":1959.375,"modifier_option_name":"Kiwi","price":11000,"modifier_name":"Topping Buah","modifier_option_id":95340,"cogs":null,"checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","outlet_id":4522,"redeem_amount":0.0,"discounts":[{"created_at":"2022-10-20T15:09:48.755913+07:00","updated_at":"2022-10-20T15:09:48.755913+07:00","discount_id":429550,"discount_amount":859.375,"discount_name":"Rupiah Ini","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}]}],"bundle_id":null,"item_type":null}],"payment_gratuities":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.359000+07:00","uuid":"c12f9a6e-4f26-43c6-b4f7-06af63bde338","name":"Frea","amount":25.0,"total":-13150.0,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","gratuity_id":592604}],"payment_taxes":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.359000+07:00","amount":10.0,"tax_id":40475,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","id":0,"uuid":"120d4962-b30d-4a12-8b7f-6b9cab036be4","taxable_amount":-220920.0,"total":-18410.0,"name":"Tax"}],"payment_discounts":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":null,"id":0,"uuid":"d870677a-b983-459d-ab30-3837731cf26a","discount_percentage":0,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_id":429550,"discount_name":"Rupiah Ini","discount_amount":-5000.0,"discount_type":"cash","discount_cash":5000.0,"is_deleted":null}],"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT"}],"is_refund_breakdown":true,"total_refund":92000,"is_refunded":false,"refund_amount":0,"customer_name":null,"customer_phone":"","customer_email":"","table_name":"","total_rounding_amount":-50,"order_id":"141TH0006","loyalty":{"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","parent_payment_uuid":null,"type":"REDEMPTION","current_balance":11000,"new_member_points":0,"new_earned_points":0,"point_correction":0,"closing_balance":10000,"member_id":25,"earning_rule":{"id":0,"type":"SPENDING","point":10,"amount":1000.0},"redemption":[{"redeem_id":217,"outlet_id":27726,"outlet_name":"Outlet 1","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","parent_payment_uuid":null,"discount":35.0,"discount_type":"PERCENTAGE","max_discount_amount":null,"min_purchase_amount":null,"initial_points":11000,"redeem_points":1000,"closing_point_balance":10000,"redeem_amount":210000.0,"reward":"35 % Discount of Total Sale","reward_type":"TOTAL_SALES","reward_id":41,"created_at":"2017-10-17T09:36:00Z","synchronized_at":"2017-10-17T09:36:03.707Z","created_by":"Tutu Last"},{"redeem_id":218,"outlet_id":27726,"outlet_name":"Outlet 1","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","parent_payment_uuid":null,"discount":20.0,"discount_type":"PERCENTAGE","max_discount_amount":null,"min_purchase_amount":null,"initial_points":10000,"redeem_points":500,"closing_point_balance":9500,"redeem_amount":105000.0,"reward":"20 % Discount of Total Sale","reward_type":"TOTAL_SALES","reward_id":42,"created_at":"2017-10-18T14:22:15Z","synchronized_at":"2017-10-18T14:22:18.321Z","created_by":"Cashier User"}]}}]}}}}},"security":[{"access_token":["report"]}],"description":"Return all sales transactions of an outlet sorted by newest one first. Required permissions: `transaction`","operationId":"showLatestTransactionsV4","tags":["Latest Transaction"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"time_filter","in":"query","description":"Type of fitler to be used by start and end parameters {created_at, updated_at, synchronized_at}","required":false,"type":"string"},{"name":"include_promo","in":"query","description":"Boolean to indicate whether Promo details are included in the response","required":false,"type":"boolean"},{"name":"exclude_bundle","in":"query","description":"Boolean to indicate whether Transaction with bundle package items are included in the response","required":false,"type":"boolean"},{"name":"reorder_type","in":"query","description":"Sort results in ascending or descending order {ASC, DESC}","required":false,"type":"string"}]}},"/v3/outlets/{outlet_id}/reports/item_sales":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Item sales response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"item_sales":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"sku":{"type":"string"},"category_name":{"type":"string"},"item_sold":{"type":"number"},"item_refunded":{"type":"number"},"gross_sales":{"type":"number"},"discount":{"type":"number"},"refund":{"type":"number"},"net_sales":{"type":"number"},"cogs":{"type":"number"},"redemption":{"type":"number"},"gross_profit":{"type":"number"}}}},"total_item_sold":{"type":"number"},"total_gross_sales":{"type":"number"},"total_discounts":{"type":"number"},"total_net_sales":{"type":"number"},"total_refund":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"item_sales":[{"name":"Tenderloin Local - 500","sku":"M.TL","category_name":"Steak","item_sold":2,"item_refunded":0,"gross_sales":142534.506,"discount":null,"refund":null,"net_sales":142534.506,"cogs":0,"redemption":null,"gross_profit":142534.506}],"total_item_sold":2,"total_gross_sales":142534.506,"total_discounts":0,"total_net_sales":142534.506,"total_refund":0},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Show item sales for selected date range on the selected outlet. Required permissions: `report`","operationId":"showItemSalesV3","tags":["Item Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v3/outlets/{outlet_id}/reports/invoices":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Invoices response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"invoices":{"type":"array","items":{"properties":{"id":{"type":"string"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"},"bill_id":{"type":"integer"},"tax_type":{"type":"string"},"grauity_type":{"type":"string"},"uuid":{"type":"string"},"parent_payment_uuid":{"type":"string"}}}},"next_url":{"type":"string"},"completed":{"type":"string"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"invoices":[{"id":"112cc68d-321f-48e4-b55a-81af98718444","status":"Done","payment_no":"6H7DD9Y","payment_type":"invoice","amount_pay":0.0,"amount_change":0.0,"total_discount_amount":0.0,"total_gratuity_amount":0.0,"total_item_price_amount":0.0,"total_tax_amount":52.5,"total_checkouts_amount":-52.5,"is_refunded":false,"refunded_reason":null,"refunded_date":null,"business_id":4011,"customer_id":20023409,"discount_id":null,"is_deleted":null,"created_at":"2022-10-20T10:04:52.797+07:00","updated_at":"2022-10-20T10:04:52.797+07:00","total_custom_price_amount":0.0,"include_gratuity_tax":false,"refund_amount":null,"refund_type":null,"card_no":null,"created_by":5658,"note":"","total_collected_amount":0.0,"server_id":5658,"server_name":"Shintaaaa12 Shintaaaa","server_title":"Owner","auth_code":null,"cc_name":null,"card_type":null,"transaction_number":null,"transaction_reference":null,"outlet_id":4522,"guid":"73D163FB-A195-4BF7-9170-73BAB06E215C","synchronized_at":"2022-10-20T10:04:58.860+07:00","uniq_id":"141","transaction_certificate":null,"transaction_status_info":null,"merchant_id":null,"mpos_device_id":null,"pg_mid":null,"pg_setting":null,"order_info":null,"tvr":null,"cvm_result":null,"aid":null,"transaction_date":null,"pii":null,"collected_by":"Shintaaaa12 Shintaaaa","shift_id":null,"invoice_no":"INV6H7DD91","invoice_deposit_amount":0,"invoice_due_date":"2022-10-27","invoice_status":"unpaid","latitude":-6.3366333,"longitude":106.70048472,"refund_ids":[],"total_gross_sales":210.0,"total_net_sales":210.0,"is_refund_breakdown":true,"customer_name":"Jang Pro","customer_email":"paijo@gojek.com","customer_phone":"+6284185741127","subtotal":210.0,"creator_name":"Shintaaaa12 Shintaaaa","table_name":"","collector_id":5658,"cashlezz_transaction_id":null,"sms_id":null,"receipt_count":null,"order_id":"141TH0003","is_loyalty":false,"total_redeem_amount":0.0,"is_offline":false,"is_sales_type":true,"server_created_at":"2022-10-20T10:04:58.886+07:00","total_rounding_amount":-262.5,"bill_id":null,"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT","uuid":"112cc68d-321f-48e4-b55a-81af98718444","parent_payment_uuid":null,"source_type":null,"original_client_created_at":"2022-10-20T10:04:52.797+07:00"}],"next_url":"","completed":true},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["transaction"]}],"description":"Returns all the invoices of an outlet. Required permissions: `transaction`","operationId":"reportInvoicesV3","tags":["Invoices"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"time_filter","in":"query","description":"Type of fitler to be used by start and end parameters {created_at, updated_at, synchronized_at}","required":false,"type":"string"},{"name":"reorder_type","in":"query","description":"Sort results in ascending or descending order {ASC, DESC}","required":false,"type":"string"}]}},"/v3/outlets/{outlet_id}/reports/get_latest_transactions":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Latest transactions response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"next_url":{"type":"string"},"completed":{"type":"boolean"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"},"bill_id":{"type":"integer"},"tax_type":{"type":"string"},"grauity_type":{"type":"string"},"uuid":{"type":"string"},"parent_payment_uuid":{"type":"string"},"payment_taxes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"integer"},"total":{"type":"number"},"taxable_amount":{"type":"number"},"payment_id":{"type":"number"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"tax_id":{"type":"integer"}}}},"payment_gratuities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"number"},"total":{"type":"number"},"payment_id":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"gratuity_id":{"type":"string"}}}},"payment_discounts":{"type":"array","items":{"type":"object","description":"Discount applied to payment","properties":{"id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_id":{"type":"integer"},"discount_amount":{"type":"number"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"discount_cash":{"type":"number"}}}},"payment_refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"}}}},"checkouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"custom_amount":{"type":"number"},"item_variant_id":{"type":"integer"},"quantity":{"type":"integer"},"discount_amount":{"type":"number"},"tax_amount":{"type":"number"},"business_id":{"type":"integer"},"payment_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"item_id":{"type":"integer"},"item_discount":{"type":"integer"},"item_price_library":{"type":"number"},"item_price":{"type":"number"},"item_price_discount":{"type":"number"},"gratuity_amount":{"type":"number"},"item_price_discount_gratuity":{"type":"integer","format":"int64"},"total_price":{"type":"number"},"item_price_quantity":{"type":"number"},"category_name":{"type":"string"},"category_id":{"type":"integer"},"item_name":{"type":"string"},"item_variant_name":{"type":"string"},"sku":{"type":"string"},"note":{},"cogs":{"type":"number"},"gross_sales":{"type":"number"},"outlet_id":{"type":"integer"},"position":{"type":"integer"},"net_sales":{"type":"number"},"track_stock":{"type":"boolean"},"item_image":{"type":"string"},"parent_checkout_id":{},"is_recipe":{"type":"boolean"},"redeem_amount":{"type":"number"},"sales_type_id":{"type":"boolean"},"sales_type_name":{"type":"number"},"checkout_modifiers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"checkout_id":{"type":"integer"},"modifier_id":{"type":"integer"},"modifier_option_id":{"type":"integer"},"modifier_name":{"type":"string"},"modifier_option_name":{"type":"string"},"price":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"cogs":{"type":"integer","format":"int64"},"outlet_id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_amount":{"type":"integer"},"gross_sales":{"type":"number"},"net_sales":{"type":"number"},"discount_hash":{"type":"string"},"redeem_amount":{"type":"number"}}}},"checkout_discounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"checkout_id":{"type":"integer"},"discount_amount":{"type":"integer"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"discount_percentage":{"type":"integer"},"payment_id":{"type":"integer"},"discount_hash":{"type":"object"}}}}}}},"promos":{"type":"array","description":"List of promo item","items":{"description":"Promo data","properties":{"business_id":{"type":"integer","example":1678},"outlet_id":{"type":"integer","example":2604},"payment_id":{"type":"integer","example":336797},"promo_type_id":{"type":"integer","example":1},"promo_id":{"type":"integer","example":930},"promo_name":{"type":"string","example":"Sirloin free MashedPotato"},"reward_discount_type":{"type":"string","example":"FREE"},"reward_amount":{"type":"integer","example":100},"count":{"type":"integer","example":1},"gross":{"type":"integer","example":0},"refunded_from":{"type":"integer","example":6125},"created_at":{"type":"string","example":"2018-12-17T10:47:08Z"},"items":{"type":"array","items":{"description":"Promo Items","properties":{"payment_promo_id":{"type":"integer","example":6128},"checkout_id":{"type":"integer","example":366987},"amount":{"type":"integer","example":1},"category_id":{"type":"integer","example":24549},"category_name":{"type":"integer","example":"Pizza"},"item_id":{"type":"integer","example":"Pizza"},"item_name":{"type":"integer","example":"Sirloin"},"item_variant_id":{"type":"integer","example":1085288},"item_variant_name":{"type":"string","example":"250"},"promo_item_status":{"type":"string","description":"Promo item status. Can be REQUIREMENT, or REWARD","example":"REQUIREMENT"},"promo_requirement_id":{"type":"string","example":1225},"promo_reward_id":{"type":"integer","example":123},"total_rewarded":{"type":"integer","example":0}}}}}}},"parent_promos":{"type":"array","description":"List of parent promo item based on the parent transaction. If the transaction is a refund, then this field refers to promo of the original payment (parent_payment_id field). If this transaction is not refund, then this value is ignored.","items":{"description":"Promo data","properties":{"business_id":{"type":"integer","example":1678},"outlet_id":{"type":"integer","example":2604},"payment_id":{"type":"integer","example":336797},"promo_type_id":{"type":"integer","example":1},"promo_id":{"type":"integer","example":930},"promo_name":{"type":"string","example":"Sirloin free MashedPotato"},"reward_discount_type":{"type":"string","example":"FREE"},"reward_amount":{"type":"integer","example":100},"count":{"type":"integer","example":1},"gross":{"type":"integer","example":0},"refunded_from":{"type":"integer","example":6125},"created_at":{"type":"string","example":"2018-12-17T10:47:08Z"},"items":{"type":"array","items":{"description":"Promo Items","properties":{"payment_promo_id":{"type":"integer","example":6128},"checkout_id":{"type":"integer","example":366987},"amount":{"type":"integer","example":1},"category_id":{"type":"integer","example":24549},"category_name":{"type":"integer","example":"Pizza"},"item_id":{"type":"integer","example":"Pizza"},"item_name":{"type":"integer","example":"Sirloin"},"item_variant_id":{"type":"integer","example":1085288},"item_variant_name":{"type":"string","example":"250"},"promo_item_status":{"type":"string","description":"Promo item status. Can be REQUIREMENT, or REWARD","example":"REQUIREMENT"},"promo_requirement_id":{"type":"string","example":1225},"promo_reward_id":{"type":"integer","example":123},"total_rewarded":{"type":"integer","example":0}}}}}}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"next_url":"https://api.mokapos.com/v1/outlets/2239/reports/get_latest_transactions?per_page=50\u0026mobile_device=true\u0026since=0.0\u0026until=1486361995.147691\u0026access_token=c10f32248339697b2ebb0e2aaa1e4159d02501c69560218e52d010e4782867d6","completed":false,"payments":[{"id":"63428a08-86a8-4f64-915a-d2fd2c6e076a","payment_no":"6H7DDA1","created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:09:59.496155+07:00","parent_payment_created_at":"2022-10-20T15:09:59.496155+07:00","total_collected":92000,"total_item_price_amount":0,"name":"Ice Cappucino","parent_payment_id":"63428a08-86a8-4f64-915a-d2fd2c6e076a","payment_type":"cash","payment_type_label":"Cash","customer_id":null,"payment_note":null,"discounts":11400,"subtotal":52600,"gratuities":21040,"taxes":18410,"tendered":100000,"change":8000,"include_gratuity_tax":false,"enable_tax":true,"enable_gratuity":true,"card_type":null,"card_no":null,"transaction_date":"20 Oct 2022","transaction_time":"03 : 09 PM","collected_by":"Shintaaaa12 Shintaaaa","served_by":"Shintaaaa12 Shintaaaa","synchronized_at":"2022-10-20T15:10:04.625000+07:00","outlet_id":4522,"pg_mid":null,"mpos_device_id":null,"transaction_certificate":null,"transaction_status_info":null,"mpos_transaction_date":null,"merchant_id":null,"transaction_reference":null,"transaction_number":null,"order_info":null,"cc_name":null,"pii":null,"guid":"AE074E8E-2E7C-4AB2-9AF3-97C514168132","uniq_id":"141","invoice_due_date":null,"invoice_no":null,"invoice_deposit_amount":null,"invoice_payment_records":null,"payment_discounts":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:09:48.755429+07:00","uuid":"ab559058-784f-4e83-b27d-1e91bcac7a27","discount_percentage":0,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","discount_id":429550,"discount_name":"Rupiah Ini","discount_amount":5000.0,"discount_type":"cash","discount_cash":5000.0,"is_deleted":null}],"payment_taxes":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:10:04.645000+07:00","amount":10.0,"tax_id":40475,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","uuid":"b55d8842-5b07-4f5c-ab64-7ee8663d9546","taxable_amount":73640.0,"total":7364.0,"name":"Tax"}],"payment_gratuities":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:10:04.645000+07:00","uuid":"29adcaac-fe69-41a5-9ac1-d4a2f9b1c8a0","name":"Frea","amount":25.0,"total":13150.0,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","gratuity_id":592604}],"checkouts":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:10:04.625000+07:00","item_discount":0,"parent_checkout_uuid":null,"uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","gross_sales":64000.0,"item_name":"Ice Cappucino","refunded_quantity":1,"item_id":1181590,"sales_type_name":"Kaki lima","tax_amount":18410.0,"item_variant_name":"","is_deleted":false,"track_stock":false,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","is_program_item":false,"sales_type_id":807678,"item_variant_id":1784869,"item_price_library":64000.0,"category_name":"Beverage","position":0,"net_sales":52600.0,"cogs":0.0,"sku":"","is_recipe":false,"redeem_amount":0.0,"quantity":1,"price":64000.0,"item_price_discount":52600.0,"item_price_discount_gratuity":0,"custom_amount":0.0,"business_id":4011,"item_price":64000.0,"total_price":52600.0,"outlet_id":4522,"item_image":"","category_id":94185,"item_price_quantity":64000.0,"discount_amount":11400.0,"gratuity_amount":21040.0,"note":null,"gratuities":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:10:04.625000+07:00","uuid":"5a29e11f-726a-4b5e-ba90-a7c9807fce33","gratuity_name":"Service ","amount":5.0,"total":2630.0,"checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","gratuity_id":172881,"sales_type_id":807678,"sales_type_name":"Kaki lima"}],"discounts":[{"discount_id":429550,"discount_type":"cash","discount_name":"Rupiah Ini","discount_percentage":0.0,"discount_cash":5000,"discount_amount":5000}],"modifiers":[{"created_at":"2022-10-20T15:09:59.496155+07:00","updated_at":"2022-10-20T15:09:01.826069+07:00","uuid":"6ff0bd8f-77f2-491f-b6f5-303ac3defe10","gross_sales":2000.0,"net_sales":1643.75,"modifier_id":16682,"payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","discount_amount":356.25,"modifier_option_name":"Manis 2","price":2000,"modifier_name":"Topping Manis","modifier_option_id":94449,"cogs":null,"checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","outlet_id":4522,"redeem_amount":0.0,"discounts":[{"created_at":"2022-10-20T15:09:48.755913+07:00","updated_at":"2022-10-20T15:09:48.755913+07:00","discount_id":429550,"discount_amount":156.25,"discount_name":"Rupiah Ini","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}]}],"bundle_id":null,"item_type":null}],"payment_refunds":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.000000+07:00","transaction_reference":null,"amount_pay":0,"business_id":4011,"pii":null,"longitude":106.70048647,"include_gratuity_tax":false,"refunded_reason":"Cancelled Order","total_discount_amount":-11400,"collected_by":"Shintaaaa12 Shintaaaa","created_by":5658,"uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","auth_code":null,"creator_name":"Shintaaaa12 Shintaaaa","is_sales_type":true,"refund_amount":92000,"pg_setting":null,"server_name":"Shintaaaa12 Shintaaaa","refund_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","total_collected_amount":-92000,"server_title":"Owner","customer_name":"","invoice_due_date":null,"cashlezz_transaction_id":null,"latitude":-6.33664033,"mpos_transaction_date":null,"is_refunded":true,"collector_id":null,"transaction_status_info":null,"guid":"1a7b64af-52c0-4dbd-9b07-a897a36b5848","note":"","receipt_count":0,"bill_id":null,"customer_email":"","transaction_date":"20 Oct 2022","total_redeem_amount":0,"synchronized_at":"2022-10-20T15:10:53.356000+07:00","outlet_id":4522,"invoice_deposit_amount":null,"cvm_result":null,"refunded_by":"Shintaaaa12 Shintaaaa","uniq_id":"0","sms_id":null,"order_info":null,"subtotal":-52600,"table_name":"","total_custom_price_amount":0,"total_item_price_amount":0,"cc_name":null,"transaction_time":"03 : 10 PM","server_id":5658,"pg_mid":null,"payment_type":"cash","is_offline":null,"discount_id":null,"card_type":null,"payment_no":"6H7DDA1","merchant_id":null,"customer_phone":"","amount_change":0,"shift_id":null,"card_no":null,"total_gross_sales":-64000,"total_rounding_amount":50,"total_net_sales":-52600,"status":"Done","mpos_device_id":null,"transaction_certificate":null,"refunded_at":"2022-10-20T15:10:53.000000+07:00","total_tax_amount":-18410,"refunded_date":"2022-10-20T15:10:53.357000+07:00","total_gratuity_amount":-21040,"customer_id":null,"transaction_number":null,"is_deleted":false,"tvr":null,"invoice_no":null,"is_refund_breakdown":true,"aid":null,"server_created_at":"2022-10-20T15:10:53.359000+07:00","refund_type":"full","parent_payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","order_id":null,"total_checkouts_amount":-41150,"is_loyalty":false,"invoice_status":null,"checkouts":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.356000+07:00","item_discount":0,"parent_checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","gross_sales":-64000.0,"item_name":"Ice Cappucino","refunded_quantity":0,"item_id":1181590,"sales_type_name":"Kaki lima","tax_amount":-18410.0,"item_variant_name":"","is_deleted":false,"track_stock":false,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","is_program_item":false,"sales_type_id":807678,"item_variant_id":1784869,"item_price_library":64000.0,"category_name":"Beverage","position":0,"net_sales":-52600.0,"cogs":0.0,"sku":"","is_recipe":false,"redeem_amount":0.0,"quantity":-1,"price":-64000.0,"item_price_discount":-52600.0,"item_price_discount_gratuity":0,"custom_amount":0.0,"business_id":4011,"item_price":64000.0,"total_price":-52600.0,"outlet_id":4522,"item_image":"","category_id":94185,"item_price_quantity":-64000.0,"discount_amount":-11400.0,"gratuity_amount":-21040.0,"note":null,"gratuities":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.356000+07:00","uuid":"c1e966db-a147-40d6-9dc0-cf77be090c24","gratuity_name":"Gratuity","amount":10.0,"total":-5260.0,"checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","gratuity_id":46185,"sales_type_id":807678,"sales_type_name":"Kaki lima"}],"discounts":[{"created_at":null,"updated_at":null,"discount_id":429549,"discount_amount":-6400,"discount_name":"Percent Lah Cok","discount_type":"percentage","discount_percentage":10.0,"discount_cash":0,"discount_guid":null},{"created_at":null,"updated_at":null,"discount_id":429550,"discount_amount":-5000,"discount_name":"Rupiah Ini Cok","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}],"modifiers":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.327000+07:00","id":0,"uuid":"17b77b97-6d81-4ad9-90da-6636a9b202a3","gross_sales":1000.0,"net_sales":821.875,"modifier_id":16682,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_amount":178.125,"modifier_option_name":"Manis 1","price":1000,"modifier_name":"Topping Manis","modifier_option_id":94448,"cogs":null,"checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","outlet_id":4522,"redeem_amount":0.0,"discounts":[{"created_at":"2022-10-20T15:09:48.755913+07:00","updated_at":"2022-10-20T15:09:48.755913+07:00","discount_id":429550,"discount_amount":78.125,"discount_name":"Rupiah Ini","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}]},{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.327000+07:00","id":0,"uuid":"40dbaed5-6cca-4c03-ae5b-c41d379a002d","gross_sales":2000.0,"net_sales":1643.75,"modifier_id":16682,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_amount":356.25,"modifier_option_name":"Manis 2","price":2000,"modifier_name":"Topping Manis","modifier_option_id":94449,"cogs":null,"checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","outlet_id":4522,"redeem_amount":0.0,"discounts":[{"created_at":"2022-10-20T15:09:48.755913+07:00","updated_at":"2022-10-20T15:09:48.755913+07:00","discount_id":429550,"discount_amount":156.25,"discount_name":"Rupiah Ini","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}]},{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.327000+07:00","id":0,"uuid":"5b841201-7bab-44da-af93-f1c8a70ee855","gross_sales":11000.0,"net_sales":9040.625,"modifier_id":17042,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_amount":1959.375,"modifier_option_name":"Kiwi","price":11000,"modifier_name":"Topping Buah","modifier_option_id":95340,"cogs":null,"checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","outlet_id":4522,"redeem_amount":0.0,"discounts":[{"created_at":"2022-10-20T15:09:48.755913+07:00","updated_at":"2022-10-20T15:09:48.755913+07:00","discount_id":429550,"discount_amount":859.375,"discount_name":"Rupiah Ini","discount_type":"cash","discount_percentage":0.0,"discount_cash":5000,"discount_guid":null}]}],"bundle_id":null,"item_type":null}],"payment_gratuities":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.359000+07:00","uuid":"c12f9a6e-4f26-43c6-b4f7-06af63bde338","name":"Frea","amount":25.0,"total":-13150.0,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","gratuity_id":592604}],"payment_taxes":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":"2022-10-20T15:10:53.359000+07:00","amount":10.0,"tax_id":40475,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","id":0,"uuid":"120d4962-b30d-4a12-8b7f-6b9cab036be4","taxable_amount":-220920.0,"total":-18410.0,"name":"Tax"}],"payment_discounts":[{"created_at":"2022-10-20T15:10:53.000000+07:00","updated_at":null,"id":0,"uuid":"d870677a-b983-459d-ab30-3837731cf26a","discount_percentage":0,"payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_id":429550,"discount_name":"Rupiah Ini","discount_amount":-5000.0,"discount_type":"cash","discount_cash":5000.0,"is_deleted":null}],"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT"}],"is_refund_breakdown":true,"total_refund":92000,"is_refunded":false,"refund_amount":0,"customer_name":null,"customer_phone":"","customer_email":"","table_name":"","total_rounding_amount":-50,"order_id":"141TH0006"}]}}}}},"security":[{"access_token":["transaction"]}],"description":"Return all sales transactions of an outlet sorted by newest one first. Required permissions: `transaction`","operationId":"showLatestTransactionsV3","tags":["Latest Transaction"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"time_filter","in":"query","description":"Type of fitler to be used by start and end parameters {created_at, updated_at, synchronized_at}","required":false,"type":"string"},{"name":"include_promo","in":"query","description":"Boolean to indicate whether Promo details are included in the response","required":false,"type":"boolean"},{"name":"exclude_bundle","in":"query","description":"Boolean to indicate whether Transaction with bundle package items are included in the response","required":false,"type":"boolean"},{"name":"reorder_type","in":"query","description":"Sort results in ascending or descending order {ASC, DESC}","required":false,"type":"string"}]}},"/v2/outlets/{outlet_id}/invoices/{invoice_id}":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Invoices response","schema":{"type":"object","properties":{"data":{"properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"},"outlet":{"$ref":"#/definitions/Outlet"},"customer":{"type":"object (Customer)"},"payment_gratuities":{"type":"array","items":{"$ref":"#/definitions/PaymentGratuity"}},"payment_taxes":{"type":"array","items":{"$ref":"#/definitions/PaymentTax"}},"payment_records":{"type":"array","items":{"$ref":"#/definitions/PaymentRecord"}},"payment_discounts":{"type":"array","items":{"$ref":"#/definitions/PaymentDiscount"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"status":"Done","payment_no":"6H7DD9Y","payment_type":"invoice","amount_pay":0.0,"amount_change":0.0,"total_discount_amount":0.0,"total_gratuity_amount":0.0,"total_item_price_amount":0.0,"total_tax_amount":52.5,"total_checkouts_amount":-52.5,"is_refunded":false,"refunded_reason":null,"refunded_date":null,"business_id":4011,"customer_id":20023409,"discount_id":null,"is_deleted":null,"created_at":"2022-10-20T10:04:52.797+07:00","updated_at":"2022-10-20T10:04:52.797+07:00","total_custom_price_amount":0.0,"include_gratuity_tax":false,"refund_amount":null,"refund_type":null,"card_no":null,"created_by":5658,"note":"","total_collected_amount":0.0,"server_id":5658,"server_name":"Shintaaaa12 Shintaaaa","server_title":"Owner","auth_code":null,"cc_name":null,"card_type":null,"transaction_number":null,"transaction_reference":null,"outlet_id":4522,"guid":"73D163FB-A195-4BF7-9170-73BAB06E215C","synchronized_at":"2022-10-20T10:04:58.860+07:00","uniq_id":"141","transaction_certificate":null,"transaction_status_info":null,"merchant_id":null,"mpos_device_id":null,"pg_mid":null,"pg_setting":null,"order_info":null,"tvr":null,"cvm_result":null,"aid":null,"transaction_date":null,"pii":null,"collected_by":"Shintaaaa12 Shintaaaa","shift_id":null,"invoice_no":"INV6H7DD91","invoice_deposit_amount":0,"invoice_due_date":"2022-10-27","invoice_status":"unpaid","latitude":-6.3366333,"longitude":106.70048472,"refund_ids":[],"total_gross_sales":210.0,"total_net_sales":210.0,"is_refund_breakdown":true,"customer_name":"Jang Pro","customer_email":"paijo@gojek.com","customer_phone":"+6284185741127","subtotal":210.0,"creator_name":"Shintaaaa12 Shintaaaa","table_name":"","collector_id":5658,"cashlezz_transaction_id":null,"sms_id":null,"receipt_count":null,"order_id":"141TH0003","is_loyalty":false,"total_redeem_amount":0.0,"is_offline":false,"is_sales_type":true,"server_created_at":"2022-10-20T10:04:58.886+07:00","total_rounding_amount":-262.5,"bill_id":null,"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT","uuid":"112cc68d-321f-48e4-b55a-81af98718444","parent_payment_uuid":null,"source_type":null,"original_client_created_at":"2022-10-20T10:04:52.797+07:00","outlet":{"id":2239,"business_id":1678,"name":"A Pizza Hut","address":"Bandung 2333","phone_number":"+62-85-729-59","city":"Bandung","province":"Jawa Barat 2","postal_code":"40134","latitude":-6.9444871,"longitude":107.5654707,"is_deleted":false,"created_at":"2017-01-30T14:38:37.850+07:00","updated_at":"2017-12-18T15:59:56.846+07:00","synchronized_at":"2017-12-18T15:59:56.846+07:00","importing":false,"exporting":false,"notes":"12345123123123123koakmfjklqnwejkrnkqjwnerkjlqewnrkjnqwkernqwkjlernkljqwnerjkqnwerkjnqwkernqkjrenqkjnwernqjerlqreqjnerqjnreqwlkjnrjkqwnerklqnwerklqwrqrewqrqewreq","start_date":"2017-05-04T16:05:01.361+07:00","end_date":"2018-07-04T00:00:00.000+07:00","is_paying":true},"customer":{"id":48965,"email":"yafi@mokapos.com","name":"Muhammad Yafi","phone":null,"address":"","city":"","state":"","postal_code":"","business_id":1678,"is_deleted":false,"created_at":"2017-02-02T10:33:39.393+07:00","updated_at":"2017-02-17T17:12:47.729+07:00","birthday":"1994-01-01","synchronized_at":"2017-02-17T17:12:47.729+07:00","guid":"AA8A1301-4AE1-4032-8F55-244EA001AC0F","uniq_id":"2","sex":null},"payment_gratuities":[{"name":"Tip Koki","amount":2.5,"total":913.178,"created_at":"2017-03-27T13:22:40.297+07:00","updated_at":"2017-03-27T13:22:41.199+07:00","gratuity_id":1219,"uuid":"09855658-85d5-469d-9520-fe4bf3003821","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f"}],"payment_taxes":[{"name":"PPN","amount":10.0,"total":5944.056,"taxable_amount":59440.56,"created_at":"2017-03-27T13:22:40.297+07:00","updated_at":"2017-03-27T13:22:41.219+07:00","tax_id":7798,"uuid":"09855658-85d5-469d-9520-fe4bf3003821","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f"}],"payment_records":[],"payment_discounts":[],"payment_refunds":[],"checkouts":[{"custom_amount":0.0,"item_variant_id":1130274,"quantity":10,"discount_amount":0.0,"tax_amount":0.0,"business_id":1678,"uuid":"43e6b3c2-e7ad-4c91-be5a-56f2b2cd20c3","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f","parent_checkout_uuid":null,"is_deleted":false,"created_at":"2017-12-15T11:15:26.512+07:00","updated_at":"2017-12-15T11:15:37.758+07:00","item_id":788986,"item_discount":0,"item_price_library":5000.0,"item_price":5000.0,"item_price_discount":50000.0,"gratuity_amount":0.0,"item_price_discount_gratuity":0,"total_price":50000.0,"item_price_quantity":50000.0,"category_name":"Uncategorized","category_id":23237,"item_name":"Nasi","item_variant_name":"Biasa Banget","sku":"","note":null,"cogs":145.0,"gross_sales":50000.0,"outlet_id":2239,"position":0,"net_sales":50000.0,"track_stock":true,"item_image":"","is_recipe":false,"redeem_amount":0.0,"sales_type_id":null,"sales_type_name":null,"checkout_modifiers":[{"modifier_id":2764,"modifier_option_id":5227,"modifier_name":"Mushroom","modifier_option_name":"Jamur Tiram","price":10000,"created_at":"2017-02-06T13:24:48.000+07:00","updated_at":"2017-02-06T13:24:48.000+07:00","cogs":null,"outlet_id":2239,"discount_amount":0.0,"gross_sales":0.0,"net_sales":0.0,"discount_hash":"--- []\n","redeem_amount":null,"uuid":"ec3fb079-4094-4500-a52f-7fba4ae70afe","checkout_uuid":"43e6b3c2-e7ad-4c91-be5a-56f2b2cd20c3","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f"}],"checkout_discounts":[{"discount_id":2710,"is_deleted":false,"created_at":"2017-02-06T13:24:17.125+07:00","updated_at":"2017-02-06T13:24:17.132+07:00","uuid":"ec3fb079-4094-4500-a52f-7fba4ae70afe","checkout_uuid":"43e6b3c2-e7ad-4c91-be5a-56f2b2cd20c3","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f","discount_amount":5500,"discount_name":"Promo Lebaran","discount_type":"percentage","discount_percentage":10.0,"discount_hash":[]}]}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["transaction"]}],"description":"\u003cb style='color:red'\u003eDeprecated API. We will no longer provide support for reportInvoiceDetailV2. Please use reportInvoiceDetailV3.\u003c/b\u003e\u003cbr/\u003eReturns an invoice based on the invoice ID. Required permissions: `transaction`","operationId":"reportInvoiceDetailV2","tags":["Invoices"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"invoice_id","in":"query","description":"The Invoice ID","required":false,"type":"integer"},{"name":"invoice_id","in":"query","description":"The Invoice UUID","required":false,"type":"string"}]}},"/v3/outlets/{outlet_id}/invoices/{invoice_id}":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Invoices response","schema":{"type":"object","properties":{"data":{"properties":{"id":{"type":"string"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"},"bill_id":{"type":"integer"},"tax_type":{"type":"string"},"grauity_type":{"type":"string"},"uuid":{"type":"string"},"parent_payment_uuid":{"type":"string"},"outlet":{"$ref":"#/definitions/Outlet"},"customer":{"type":"object (Customer)"},"payment_gratuities":{"type":"array","items":{"$ref":"#/definitions/PaymentGratuity"}},"payment_taxes":{"type":"array","items":{"$ref":"#/definitions/PaymentTax"}},"payment_records":{"type":"array","items":{"$ref":"#/definitions/PaymentRecord"}},"payment_discounts":{"type":"array","items":{"$ref":"#/definitions/PaymentDiscount"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"id":"112cc68d-321f-48e4-b55a-81af98718444","status":"Done","payment_no":"6H7DD9Y","payment_type":"invoice","amount_pay":0.0,"amount_change":0.0,"total_discount_amount":0.0,"total_gratuity_amount":0.0,"total_item_price_amount":0.0,"total_tax_amount":52.5,"total_checkouts_amount":-52.5,"is_refunded":false,"refunded_reason":null,"refunded_date":null,"business_id":4011,"customer_id":20023409,"discount_id":null,"is_deleted":null,"created_at":"2022-10-20T10:04:52.797+07:00","updated_at":"2022-10-20T10:04:52.797+07:00","total_custom_price_amount":0.0,"include_gratuity_tax":false,"refund_amount":null,"refund_type":null,"card_no":null,"created_by":5658,"note":"","total_collected_amount":0.0,"server_id":5658,"server_name":"Shintaaaa12 Shintaaaa","server_title":"Owner","auth_code":null,"cc_name":null,"card_type":null,"transaction_number":null,"transaction_reference":null,"outlet_id":4522,"guid":"73D163FB-A195-4BF7-9170-73BAB06E215C","synchronized_at":"2022-10-20T10:04:58.860+07:00","uniq_id":"141","transaction_certificate":null,"transaction_status_info":null,"merchant_id":null,"mpos_device_id":null,"pg_mid":null,"pg_setting":null,"order_info":null,"tvr":null,"cvm_result":null,"aid":null,"transaction_date":null,"pii":null,"collected_by":"Shintaaaa12 Shintaaaa","shift_id":null,"invoice_no":"INV6H7DD91","invoice_deposit_amount":0,"invoice_due_date":"2022-10-27","invoice_status":"unpaid","latitude":-6.3366333,"longitude":106.70048472,"refund_ids":[],"total_gross_sales":210.0,"total_net_sales":210.0,"is_refund_breakdown":true,"customer_name":"Jang Pro","customer_email":"paijo@gojek.com","customer_phone":"+6284185741127","subtotal":210.0,"creator_name":"Shintaaaa12 Shintaaaa","table_name":"","collector_id":5658,"cashlezz_transaction_id":null,"sms_id":null,"receipt_count":null,"order_id":"141TH0003","is_loyalty":false,"total_redeem_amount":0.0,"is_offline":false,"is_sales_type":true,"server_created_at":"2022-10-20T10:04:58.886+07:00","total_rounding_amount":-262.5,"bill_id":null,"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT","uuid":"112cc68d-321f-48e4-b55a-81af98718444","parent_payment_uuid":null,"source_type":null,"original_client_created_at":"2022-10-20T10:04:52.797+07:00","outlet":{"id":2239,"business_id":1678,"name":"A Pizza Hut","address":"Bandung 2333","phone_number":"+62-85-729-59","city":"Bandung","province":"Jawa Barat 2","postal_code":"40134","latitude":-6.9444871,"longitude":107.5654707,"is_deleted":false,"created_at":"2017-01-30T14:38:37.850+07:00","updated_at":"2017-12-18T15:59:56.846+07:00","synchronized_at":"2017-12-18T15:59:56.846+07:00","importing":false,"exporting":false,"notes":"12345123123123123koakmfjklqnwejkrnkqjwnerkjlqewnrkjnqwkernqwkjlernkljqwnerjkqnwerkjnqwkernqkjrenqkjnwernqjerlqreqjnerqjnreqwlkjnrjkqwnerklqnwerklqwrqrewqrqewreq","start_date":"2017-05-04T16:05:01.361+07:00","end_date":"2018-07-04T00:00:00.000+07:00","is_paying":true},"customer":{"id":48965,"email":"yafi@mokapos.com","name":"Muhammad Yafi","phone":null,"address":"","city":"","state":"","postal_code":"","business_id":1678,"is_deleted":false,"created_at":"2017-02-02T10:33:39.393+07:00","updated_at":"2017-02-17T17:12:47.729+07:00","birthday":"1994-01-01","synchronized_at":"2017-02-17T17:12:47.729+07:00","guid":"AA8A1301-4AE1-4032-8F55-244EA001AC0F","uniq_id":"2","sex":null},"payment_gratuities":[{"name":"Tip Koki","amount":2.5,"total":913.178,"created_at":"2017-03-27T13:22:40.297+07:00","updated_at":"2017-03-27T13:22:41.199+07:00","gratuity_id":1219,"uuid":"09855658-85d5-469d-9520-fe4bf3003821","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f"}],"payment_taxes":[{"name":"PPN","amount":10.0,"total":5944.056,"taxable_amount":59440.56,"created_at":"2017-03-27T13:22:40.297+07:00","updated_at":"2017-03-27T13:22:41.219+07:00","tax_id":7798,"uuid":"09855658-85d5-469d-9520-fe4bf3003821","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f"}],"payment_records":[],"payment_discounts":[],"payment_refunds":[],"checkouts":[{"custom_amount":0.0,"item_variant_id":1130274,"quantity":10,"discount_amount":0.0,"tax_amount":0.0,"business_id":1678,"uuid":"43e6b3c2-e7ad-4c91-be5a-56f2b2cd20c3","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f","parent_checkout_uuid":null,"is_deleted":false,"created_at":"2017-12-15T11:15:26.512+07:00","updated_at":"2017-12-15T11:15:37.758+07:00","item_id":788986,"item_discount":0,"item_price_library":5000.0,"item_price":5000.0,"item_price_discount":50000.0,"gratuity_amount":0.0,"item_price_discount_gratuity":0,"total_price":50000.0,"item_price_quantity":50000.0,"category_name":"Uncategorized","category_id":23237,"item_name":"Nasi","item_variant_name":"Biasa Banget","sku":"","note":null,"cogs":145.0,"gross_sales":50000.0,"outlet_id":2239,"position":0,"net_sales":50000.0,"track_stock":true,"item_image":"","is_recipe":false,"redeem_amount":0.0,"sales_type_id":null,"sales_type_name":null,"checkout_modifiers":[{"modifier_id":2764,"modifier_option_id":5227,"modifier_name":"Mushroom","modifier_option_name":"Jamur Tiram","price":10000,"created_at":"2017-02-06T13:24:48.000+07:00","updated_at":"2017-02-06T13:24:48.000+07:00","cogs":null,"outlet_id":2239,"discount_amount":0.0,"gross_sales":0.0,"net_sales":0.0,"discount_hash":"--- []\n","redeem_amount":null,"uuid":"ec3fb079-4094-4500-a52f-7fba4ae70afe","checkout_uuid":"43e6b3c2-e7ad-4c91-be5a-56f2b2cd20c3","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f"}],"checkout_discounts":[{"discount_id":2710,"is_deleted":false,"created_at":"2017-02-06T13:24:17.125+07:00","updated_at":"2017-02-06T13:24:17.132+07:00","uuid":"ec3fb079-4094-4500-a52f-7fba4ae70afe","checkout_uuid":"43e6b3c2-e7ad-4c91-be5a-56f2b2cd20c3","payment_uuid":"ceea14e7-471a-4c8b-9a9c-667ec14f672f","discount_amount":5500,"discount_name":"Promo Lebaran","discount_type":"percentage","discount_percentage":10.0,"discount_hash":[]}]}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["transaction"]}],"description":"Returns an invoice based on the invoice ID. Required permissions: `transaction`","operationId":"reportInvoiceDetailV3","tags":["Invoices"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"invoice_id","in":"query","description":"The Invoice UUID","required":false,"type":"string"}]}},"/v2/outlets/{outlet_id}/reports/category_sales":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Category sales response","schema":{"type":"object","properties":{"data":{"properties":{"category_sales":{"type":"object","properties":{"name":{"type":"string"},"items_sold":{"type":"integer"},"gross_sales":{"type":"number"},"discount":{"type":"number"},"refund":{"type":"number"},"net_sales":{"type":"number"}}},"total_items_sold":{"type":"integer"},"total_gross_sales":{"type":"integer"},"total_discounts":{"type":"number"},"total_refunds":{"type":"number"},"total_net_sales":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"category_sales":[{"name":"Pizza","items_sold":860,"gross_sales":57142360.337,"discount":8061000.0,"refund":29683320.0,"net_sales":25340040.337}],"total_items_sold":861,"total_gross_sales":10057142360.337002,"total_discounts":8061000.0,"total_refunds":29683320.0,"total_net_sales":10025340040.337002},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Show category sales for selected date range on the selected outlet. Required permissions: `report`","operationId":"showCategorySalesV2","tags":["Category Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/collector_sales":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Collector sales response","schema":{"type":"object","properties":{"data":{"properties":{"total_transaction_count":{"type":"integer"},"total_transaction_amount":{"type":"number"},"staff_reports":{"type":"object","additionalProperties":{"type":"object","properties":{"name":{"type":"string"}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_number_of_transactions":0,"grand_total":0,"reports":[{"name":"Hello Yafi","title":"Owner","number_of_transactions":0,"total":0}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Return all sales sorted by collectors/collected_by/staffs for selected date range on the selected outlet. Required permissions: `report`","operationId":"showCollectorSalesV2","tags":["Collector Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/discount_sales":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Discount sales response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"discounts":{"type":"array","items":{"type":"object","properties":{"discount_id":{"type":"integer","description":"Deprecated. Please do not use this value."},"name":{"type":"string"},"amount":{"type":"integer"},"discount_applied":{"type":"number"},"count":{"type":"integer"},"discount_type":{"type":"string"},"refund":{"type":"number"},"net_discount":{"type":"number"}}}},"total_count":{"type":"integer"},"total_discounts_applied":{"type":"number"},"total_refunds":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"discounts":[{"discount_id":2710,"name":"Promo Lebaran","amount":10.0,"discount_applied":5654500.0,"count":72,"discount_type":"percentage","refund":2900500.0,"net_discount":2754000.0},{"discount_id":2711,"name":"Promo Weekend","amount":30000.0,"discount_applied":509999.99900000007,"count":26,"discount_type":"cash","refund":239999.99900000004,"net_discount":270000.0}],"total_count":175,"total_discounts_applied":1013566249.999,"total_refunds":4384749.999},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Return all sales sorted by discounts for selected date range on the selected outlet. Required permissions: `report`","operationId":"showDiscountSalesV2","tags":["Discount Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/gratuity_sales":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Gratuity sales response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"reports_gratuities":{"type":"array","items":{"properties":{"name":{"type":"string"},"amount":{"type":"string"},"gratuity_collected":{"type":"number"}}}},"total_gratuity_collected":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"reports_gratuities":[{"name":"Tip Koki","amount":2.0,"gratuity_collected":180381225.542}],"total_gratuity_collected":405879026.7040001},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Return all sales sorted by gratuity for selected date range on the selected outlet. Required permissions: `report`","operationId":"showGratuitySalesV2","tags":["Gratuity Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/item_sales":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Item sales response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"item_sales":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"item_name":{"type":"string"},"variant_name":{"type":"string"},"sku":{"type":"string"},"item_id":{"type":"integer","description":"Deprecated. Please do not use this value."},"item_variant_id":{"type":"integer","description":"Deprecated. Please do not use this value."},"category_name":{"type":"string"},"items_sold":{"type":"integer"},"gross_sales":{"type":"number"},"discount":{"type":"number"},"refund":{"type":"number"},"net_sales":{"type":"number"}}}},"total_item_sold":{"type":"integer"},"total_gross_sales":{"type":"number"},"total_discounts":{"type":"number"},"total_net_sales":{"type":"number"},"total_refund":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"item_sales":[{"name":"Super Supreme - Large","item_name":"Super Supreme","variant_name":"Large","sku":"SS.L","item_id":746069,"item_variant_id":1077369,"category_name":"Pizza","items_sold":95,"gross_sales":8518765.0,"discount":559250.0,"refund":5925000.0,"net_sales":2631515.0000000005}],"total_item_sold":861,"total_gross_sales":10057142360.337,"total_discounts":8061000.0,"total_net_sales":10025340040.337,"total_refund":29683320.0},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"\u003cb style='color:red'\u003eDeprecated API. We will no longer provide support for showItemSalesV2. Please use showItemSalesV3.\u003c/b\u003e\u003cbr/\u003eShow item sales for selected date range on the selected outlet. Required permissions: `report`","operationId":"showItemSalesV2","tags":["Item Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/modifier_sales":{"get":{"description":"Show modifier sales for selected date range on the selected outlet. Required permissions: `report`","operationId":"showModifierSalesV2","produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Modifier sales response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"modifier":{"type":"object","properties":{"modifier_id":{"type":"integer","description":"Deprecated. Please do not use this value."},"modifier_name":{"type":"string"},"quantity":{"type":"integer"},"gross_sales":{"type":"integer"},"discounts":{"type":"number"},"refund":{"type":"number"},"net_sales":{"type":"number"},"modifier_options":{"type":"array","items":{"type":"object","properties":{"modifier_option_id":{"type":"integer","description":"Deprecated. Please do not use this value."},"modifier_option_name":{"type":"string"},"price":{"type":"integer"},"quantity":{"type":"integer"},"gross_sales":{"type":"number"}}}}}},"total_quantity":{"type":"integer"},"total_gross_sales":{"type":"number"},"total_discounts":{"type":"number"},"total_refunds":{"type":"number"},"total_net_sales":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"modifiers":[{"modifier_id":2763,"modifier_name":"Cheese","quantity":1399,"gross_sales":6995000.0,"discount":1015999.9999999995,"refund":3355000.0,"net_sales":2624000.0000000005,"modifier_options":[{"option_id":5226,"option_name":"Keju Basi","quantity":603,"gross_sales":3015000.0,"discount":493666.66700000013,"refund":1315000.0,"net_sales":1206333.333}]}],"total_quantity":2842,"total_gross_sales":24595000,"total_discounts":3535750,"total_refunds":12020000,"total_net_sales":9039250},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"tags":["Modifier Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/sales_summary":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Sales summary response","schema":{"type":"object","properties":{"data":{"type":"object","description":"Sales summary data","properties":{"gross_sales":{"type":"number","description":"Gross sales summary"},"discounts":{"type":"number","description":"Discount summary"},"refunds":{"type":"number","description":"Refund summary"},"net_sales":{"type":"number","description":"Net sales summary"},"gratuity":{"type":"number","description":"Gratuity summary"},"tax":{"type":"number","description":"Tax summary"},"total_collected":{"type":"number","description":"Total collected summary"},"number_of_transactions":{"type":"integer","description":"Total number of transactions"},"rounding_amount":{"type":"number","description":"Rounding value summary"},"redemption":{"type":"number","description":"Redemption value summary"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"gross_sales":10057142360.337002,"discounts":1009272500.0,"refunds":28775107.0,"net_sales":9019094753.337002,"gratuities":405894447.314,"taxes":1507946884.0480006,"total_collected":10932936084.699003,"number_of_transactions":107,"rounding_amount":-56,"redemption":10},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Returns summary of the sales for selected date range on the selected outlet. Required permissions: `report`","operationId":"showSalesSummaryV2","tags":["Sales summary"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/server_sales":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Server sales response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"servers":{"type":"array","items":{"properties":{"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"number_transaction":{"type":"integer"},"collected":{"type":"number"}}}},"total_collected":{"type":"number"},"total_number_of_transactions":{"type":"integer"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"servers":[{"server_id":4509,"server_name":"Britanney Barker","server_title":"Administrator","number_transaction":1,"collected":250000.0},{"server_id":3828,"server_name":"Manager Yafi","server_title":"Administrator","number_transaction":1,"collected":50000.0}],"total_collected":300000.0,"total_number_of_transactions":2}}}}},"security":[{"access_token":["report"]}],"description":"Return all sales sorted by servers for selected date range on the selected outlet. Required permissions: `report`","operationId":"showServerSalesV2","tags":["Server Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/payment_methods":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Payment methods response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_number_of_transactions":{"type":"integer"},"total_collected":{"type":"number"},"reports":{"type":"object","properties":{"cash_or_card":{"type":"array","items":{"type":"object","properties":{"payment_type":{"type":"string"},"number_of_transactions":{"type":"integer"},"collected":{"type":"integer"}}}},"invoice":{"type":"array","items":{"type":"object","properties":{"payment_type":{"type":"string"},"number_of_transactions":{"type":"integer"},"collected":{"type":"integer"}}}},"other":{"type":"array","items":{"type":"object","properties":{"payment_type":{"type":"string"},"number_of_transactions":{"type":"integer"},"collected":{"type":"integer"}}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_number_of_transactions":44,"total_collected":10932936082.700005,"reports":{"cash_or_card":[{"payment_type":"Cash","number_of_transactions":15,"collected":10921983379.825005},{"payment_type":"Credit / Debit","number_of_transactions":0,"collected":0}],"invoice":[{"payment_type":"Invoice","number_of_transactions":24,"collected":5314158.875}],"other":[{"payment_type":"EDC","number_of_transactions":3,"collected":3985212.0},{"payment_type":"Gift Card","number_of_transactions":1,"collected":1533157.0},{"payment_type":"Other","number_of_transactions":1,"collected":120175.0}]}},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Return all sales sorted by payment methods for selected date range on the selected outlet. Required permissions: `report`","operationId":"showPaymentMethodsV2","tags":["Payment Methods"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/tax_sales":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Tax sales response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"reports_taxes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"amount":{"type":"number"},"taxable_amount":{"type":"number"},"tax_collected":{"type":"number"},"tax_id":{"type":"integer","description":"Deprecated. Please do not use this value."}}}},"total_tax_collected":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"reports_taxes":[{"name":"Pajak Daerah","amount":5.0,"taxable_amount":9424940303.81,"tax_collected":471247018.8405}],"total_tax_collected":1507932567.8910003},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Returns all sales sorted by taxes for selected date range on the selected outlet. Required permissions: `report`","operationId":"showTaxSalesV2","tags":["Tax Sales"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v2/outlets/{outlet_id}/reports/transactions":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Report transactions response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"discounts":{"type":"number"},"gratuity":{"type":"number"},"gross_sales":{"type":"number"},"net_sales":{"type":"number"},"number_of_transactions":{"type":"integer"},"payments":{"type":"array","items":{"$ref":"#/definitions/Payment"}},"refunds":{"type":"number"},"tax":{"type":"number"},"total_collected":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"discounts":1006814250,"gratuity":405676672.36,"gross_sales":10020634000,"net_sales":9013819750,"number_of_transactions":1,"payments":[{"status":"Done","payment_no":"6H7DD9Y","payment_type":"invoice","amount_pay":0.0,"amount_change":0.0,"total_discount_amount":0.0,"total_gratuity_amount":0.0,"total_item_price_amount":0.0,"total_tax_amount":52.5,"total_checkouts_amount":-52.5,"is_refunded":false,"refunded_reason":null,"refunded_date":null,"business_id":4011,"customer_id":20023409,"discount_id":null,"is_deleted":null,"created_at":"2022-10-20T10:04:52.797+07:00","updated_at":"2022-10-20T10:04:52.797+07:00","total_custom_price_amount":0.0,"include_gratuity_tax":false,"refund_amount":null,"refund_type":null,"card_no":null,"created_by":5658,"note":"","total_collected_amount":0.0,"server_id":5658,"server_name":"Shintaaaa12 Shintaaaa","server_title":"Owner","auth_code":null,"cc_name":null,"card_type":null,"transaction_number":null,"transaction_reference":null,"outlet_id":4522,"guid":"73D163FB-A195-4BF7-9170-73BAB06E215C","synchronized_at":"2022-10-20T10:04:58.860+07:00","uniq_id":"141","transaction_certificate":null,"transaction_status_info":null,"merchant_id":null,"mpos_device_id":null,"pg_mid":null,"pg_setting":null,"order_info":null,"tvr":null,"cvm_result":null,"aid":null,"transaction_date":null,"pii":null,"collected_by":"Shintaaaa12 Shintaaaa","shift_id":null,"invoice_no":"INV6H7DD91","invoice_deposit_amount":0,"invoice_due_date":"2022-10-27","invoice_status":"unpaid","latitude":-6.3366333,"longitude":106.70048472,"refund_ids":[],"total_gross_sales":210.0,"total_net_sales":210.0,"is_refund_breakdown":true,"customer_name":"Jang Pro","customer_email":"paijo@gojek.com","customer_phone":"+6284185741127","subtotal":210.0,"creator_name":"Shintaaaa12 Shintaaaa","table_name":"","collector_id":5658,"cashlezz_transaction_id":null,"sms_id":null,"receipt_count":null,"order_id":"141TH0003","is_loyalty":false,"total_redeem_amount":0.0,"is_offline":false,"is_sales_type":true,"server_created_at":"2022-10-20T10:04:58.886+07:00","total_rounding_amount":-262.5,"bill_id":null,"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT","uuid":"112cc68d-321f-48e4-b55a-81af98718444","parent_payment_uuid":null,"source_type":null,"original_client_created_at":"2022-10-20T10:04:52.797+07:00"}],"refunds":0,"tax":1507217288.2320006,"total_collected":10927623709.825005}}}}},"security":[{"access_token":["transaction"]}],"description":"\u003cb style='color:red'\u003eDeprecated API. We will no longer provide support for transactionsV2. Please use showLatestTransactionsV3.\u003c/b\u003e\u003cbr/\u003eReturn all transactions by outlet. Required permissions: `transaction`","operationId":"transactionsV2","tags":["Transaction"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"time_filter","in":"query","description":"Type of fitler to be used by start and end parameters {created_at, updated_at, synchronized_at}","required":false,"type":"string"},{"name":"reorder_type","in":"query","description":"Sort results in ascending or descending order {ASC, DESC}","required":false,"type":"string"}]}},"/v2/outlets/{outlet_id}/reports/invoices":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Invoices response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"invoices":{"type":"array","items":{"properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"}}}},"next_url":{"type":"string"},"completed":{"type":"string"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"invoices":[{"status":"Done","payment_no":"6H7DD9Y","payment_type":"invoice","amount_pay":0.0,"amount_change":0.0,"total_discount_amount":0.0,"total_gratuity_amount":0.0,"total_item_price_amount":0.0,"total_tax_amount":52.5,"total_checkouts_amount":-52.5,"is_refunded":false,"refunded_reason":null,"refunded_date":null,"business_id":4011,"customer_id":20023409,"discount_id":null,"is_deleted":null,"created_at":"2022-10-20T10:04:52.797+07:00","updated_at":"2022-10-20T10:04:52.797+07:00","total_custom_price_amount":0.0,"include_gratuity_tax":false,"refund_amount":null,"refund_type":null,"card_no":null,"created_by":5658,"note":"","total_collected_amount":0.0,"server_id":5658,"server_name":"Shintaaaa12 Shintaaaa","server_title":"Owner","auth_code":null,"cc_name":null,"card_type":null,"transaction_number":null,"transaction_reference":null,"outlet_id":4522,"guid":"73D163FB-A195-4BF7-9170-73BAB06E215C","synchronized_at":"2022-10-20T10:04:58.860+07:00","uniq_id":"141","transaction_certificate":null,"transaction_status_info":null,"merchant_id":null,"mpos_device_id":null,"pg_mid":null,"pg_setting":null,"order_info":null,"tvr":null,"cvm_result":null,"aid":null,"transaction_date":null,"pii":null,"collected_by":"Shintaaaa12 Shintaaaa","shift_id":null,"invoice_no":"INV6H7DD91","invoice_deposit_amount":0,"invoice_due_date":"2022-10-27","invoice_status":"unpaid","latitude":-6.3366333,"longitude":106.70048472,"refund_ids":[],"total_gross_sales":210.0,"total_net_sales":210.0,"is_refund_breakdown":true,"customer_name":"Jang Pro","customer_email":"paijo@gojek.com","customer_phone":"+6284185741127","subtotal":210.0,"creator_name":"Shintaaaa12 Shintaaaa","table_name":"","collector_id":5658,"cashlezz_transaction_id":null,"sms_id":null,"receipt_count":null,"order_id":"141TH0003","is_loyalty":false,"total_redeem_amount":0.0,"is_offline":false,"is_sales_type":true,"server_created_at":"2022-10-20T10:04:58.886+07:00","total_rounding_amount":-262.5,"bill_id":null,"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT","uuid":"112cc68d-321f-48e4-b55a-81af98718444","parent_payment_uuid":null,"source_type":null,"original_client_created_at":"2022-10-20T10:04:52.797+07:00"}],"next_url":"","completed":true},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["transaction"]}],"description":"\u003cb style='color:red'\u003eDeprecated API. We will no longer provide support for reportInvoicesV2. Please use reportInvoicesV3.\u003c/b\u003e\u003cbr/\u003eReturns all the invoices of an outlet. Required permissions: `transaction`","operationId":"reportInvoicesV2","tags":["Invoices"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"time_filter","in":"query","description":"Type of fitler to be used by start and end parameters {created_at, updated_at, synchronized_at}","required":false,"type":"string"},{"name":"reorder_type","in":"query","description":"Sort results in ascending or descending order {ASC, DESC}","required":false,"type":"string"}]}},"/v2/outlets/{outlet_id}/reports/get_latest_transactions":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Latest transactions response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"next_url":{"type":"string"},"completed":{"type":"boolean"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"},"payment_taxes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"integer"},"total":{"type":"number"},"taxable_amount":{"type":"number"},"payment_id":{"type":"number"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"tax_id":{"type":"integer"}}}},"payment_gratuities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"number"},"total":{"type":"number"},"payment_id":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"gratuity_id":{"type":"string"}}}},"payment_discounts":{"type":"array","items":{"type":"object","description":"Discount applied to payment","properties":{"id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_id":{"type":"integer"},"discount_amount":{"type":"number"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"discount_cash":{"type":"number"}}}},"payment_refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"}}}},"checkouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"custom_amount":{"type":"number"},"item_variant_id":{"type":"integer"},"quantity":{"type":"integer"},"discount_amount":{"type":"number"},"tax_amount":{"type":"number"},"business_id":{"type":"integer"},"payment_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"item_id":{"type":"integer"},"item_discount":{"type":"integer"},"item_price_library":{"type":"number"},"item_price":{"type":"number"},"item_price_discount":{"type":"number"},"gratuity_amount":{"type":"number"},"item_price_discount_gratuity":{"type":"integer","format":"int64"},"total_price":{"type":"number"},"item_price_quantity":{"type":"number"},"category_name":{"type":"string"},"category_id":{"type":"integer"},"item_name":{"type":"string"},"item_variant_name":{"type":"string"},"sku":{"type":"string"},"note":{},"cogs":{"type":"number"},"gross_sales":{"type":"number"},"outlet_id":{"type":"integer"},"position":{"type":"integer"},"net_sales":{"type":"number"},"track_stock":{"type":"boolean"},"item_image":{"type":"string"},"parent_checkout_id":{},"is_recipe":{"type":"boolean"},"redeem_amount":{"type":"number"},"sales_type_id":{"type":"boolean"},"sales_type_name":{"type":"number"},"checkout_modifiers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"checkout_id":{"type":"integer"},"modifier_id":{"type":"integer"},"modifier_option_id":{"type":"integer"},"modifier_name":{"type":"string"},"modifier_option_name":{"type":"string"},"price":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"cogs":{"type":"integer","format":"int64"},"outlet_id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_amount":{"type":"integer"},"gross_sales":{"type":"number"},"net_sales":{"type":"number"},"discount_hash":{"type":"string"},"redeem_amount":{"type":"number"}}}},"checkout_discounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"checkout_id":{"type":"integer"},"discount_amount":{"type":"integer"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"discount_percentage":{"type":"integer"},"payment_id":{"type":"integer"},"discount_hash":{"type":"object"}}}}}}},"promos":{"type":"array","description":"List of promo item","items":{"description":"Promo data","properties":{"business_id":{"type":"integer","example":1678},"outlet_id":{"type":"integer","example":2604},"payment_id":{"type":"integer","example":336797},"promo_type_id":{"type":"integer","example":1},"promo_id":{"type":"integer","example":930},"promo_name":{"type":"string","example":"Sirloin free MashedPotato"},"reward_discount_type":{"type":"string","example":"FREE"},"reward_amount":{"type":"integer","example":100},"count":{"type":"integer","example":1},"gross":{"type":"integer","example":0},"refunded_from":{"type":"integer","example":6125},"created_at":{"type":"string","example":"2018-12-17T10:47:08Z"},"items":{"type":"array","items":{"description":"Promo Items","properties":{"payment_promo_id":{"type":"integer","example":6128},"checkout_id":{"type":"integer","example":366987},"amount":{"type":"integer","example":1},"category_id":{"type":"integer","example":24549},"category_name":{"type":"integer","example":"Pizza"},"item_id":{"type":"integer","example":"Pizza"},"item_name":{"type":"integer","example":"Sirloin"},"item_variant_id":{"type":"integer","example":1085288},"item_variant_name":{"type":"string","example":"250"},"promo_item_status":{"type":"string","description":"Promo item status. Can be REQUIREMENT, or REWARD","example":"REQUIREMENT"},"promo_requirement_id":{"type":"string","example":1225},"promo_reward_id":{"type":"integer","example":123},"total_rewarded":{"type":"integer","example":0}}}}}}},"parent_promos":{"type":"array","description":"List of parent promo item based on the parent transaction. If the transaction is a refund, then this field refers to promo of the original payment (parent_payment_id field). If this transaction is not refund, then this value is ignored.","items":{"description":"Promo data","properties":{"business_id":{"type":"integer","example":1678},"outlet_id":{"type":"integer","example":2604},"payment_id":{"type":"integer","example":336797},"promo_type_id":{"type":"integer","example":1},"promo_id":{"type":"integer","example":930},"promo_name":{"type":"string","example":"Sirloin free MashedPotato"},"reward_discount_type":{"type":"string","example":"FREE"},"reward_amount":{"type":"integer","example":100},"count":{"type":"integer","example":1},"gross":{"type":"integer","example":0},"refunded_from":{"type":"integer","example":6125},"created_at":{"type":"string","example":"2018-12-17T10:47:08Z"},"items":{"type":"array","items":{"description":"Promo Items","properties":{"payment_promo_id":{"type":"integer","example":6128},"checkout_id":{"type":"integer","example":366987},"amount":{"type":"integer","example":1},"category_id":{"type":"integer","example":24549},"category_name":{"type":"integer","example":"Pizza"},"item_id":{"type":"integer","example":"Pizza"},"item_name":{"type":"integer","example":"Sirloin"},"item_variant_id":{"type":"integer","example":1085288},"item_variant_name":{"type":"string","example":"250"},"promo_item_status":{"type":"string","description":"Promo item status. Can be REQUIREMENT, or REWARD","example":"REQUIREMENT"},"promo_requirement_id":{"type":"string","example":1225},"promo_reward_id":{"type":"integer","example":123},"total_rewarded":{"type":"integer","example":0}}}}}}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"next_url":"https://api.mokapos.com/v1/outlets/2239/reports/get_latest_transactions?per_page=50\u0026mobile_device=true\u0026since=0.0\u0026until=1486361995.147691\u0026access_token=c10f32248339697b2ebb0e2aaa1e4159d02501c69560218e52d010e4782867d6","completed":false,"payments":[{"uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","payment_no":"6H7DDA1","created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:09:59.496+07:00","parent_payment_created_at":"2022-10-20T15:09:59.496+07:00","total_collected":92000.0,"total_item_price_amount":0.0,"name":"Ice Cappucino","parent_payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","payment_type":"cash","payment_type_label":"Cash","customer_id":null,"payment_note":"","discounts":11400.0,"subtotal":52600.0,"gratuities":21040.0,"taxes":18410.0,"tendered":100000.0,"change":8000.0,"include_gratuity_tax":false,"enable_tax":true,"enable_gratuity":true,"card_type":null,"card_no":null,"transaction_date":"20 Oct 2022","transaction_time":"03 : 09 PM","collected_by":"Shintaaaa12 Shintaaaa","served_by":"Shintaaaa12 Shintaaaa","synchronized_at":"2022-10-20T15:10:04.625+07:00","outlet_id":4522,"pg_mid":null,"mpos_device_id":null,"transaction_certificate":null,"transaction_status_info":null,"mpos_transaction_date":null,"merchant_id":null,"transaction_reference":null,"transaction_number":null,"order_info":null,"cc_name":null,"pii":null,"guid":"AE074E8E-2E7C-4AB2-9AF3-97C514168132","uniq_id":"141","invoice_due_date":null,"invoice_no":null,"invoice_deposit_amount":null,"invoice_payment_records":[],"payment_discounts":[{"discount_id":429550,"discount_amount":5000.0,"discount_name":"Rupiah Ini","discount_type":"cash","is_deleted":null,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:09:48.755+07:00","discount_cash":5000.0,"uuid":"ab559058-784f-4e83-b27d-1e91bcac7a27","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","discount_percentage":0.0}],"payment_taxes":[{"name":"Pajak","amount":5.0,"total":3682.0,"taxable_amount":73640.0,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:10:04.645+07:00","tax_id":206833,"uuid":"70dc1a50-383c-4f80-8a72-629918acee05","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a"}],"payment_gratuities":[{"name":"Frea","amount":25.0,"total":13150.0,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:10:04.645+07:00","gratuity_id":592604,"uuid":"29adcaac-fe69-41a5-9ac1-d4a2f9b1c8a0","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a"}],"checkouts":[{"custom_amount":0.0,"item_variant_id":1784869,"quantity":1,"discount_amount":11400.0,"tax_amount":18410.0,"business_id":4011,"is_deleted":false,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:10:04.625+07:00","item_id":1181590,"item_discount":0,"item_price_library":64000.0,"item_price":64000.0,"item_price_discount":52600.0,"gratuity_amount":21040.0,"item_price_discount_gratuity":0,"total_price":52600.0,"item_price_quantity":64000.0,"category_name":"Beverage","category_id":94185,"item_name":"Ice Cappucino","item_variant_name":"","sku":"","note":null,"cogs":0.0,"gross_sales":64000.0,"outlet_id":4522,"position":0,"net_sales":52600.0,"track_stock":false,"item_image":"","is_recipe":false,"redeem_amount":0.0,"sales_type_id":807678,"sales_type_name":"Kaki lima","is_program_item":false,"uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","parent_checkout_uuid":null,"bundle_id":null,"item_type":null,"checkout_bundle_id":null,"bundle_name":null,"brand_id":null,"brand_name":null,"price":64000.0,"refunded_quantity":1,"discounts":[{"discount_id":429549,"discount_type":"percentage","discount_name":"Percent Lah Cok","discount_percentage":10.0,"discount_cash":0,"discount_amount":6400,"discount_guid":null,"created_at":"2022-10-20T08:09:06.122+00:00","updated_at":"2022-10-20T08:09:06.122+00:00"},{"discount_id":429550,"discount_type":"cash","discount_name":"Rupiah Ini","discount_percentage":0.0,"discount_cash":5000,"discount_amount":5000,"discount_guid":null,"created_at":"2022-10-20T08:09:48.755+00:00","updated_at":"2022-10-20T08:09:48.755+00:00"}],"modifiers":[{"modifier_id":16682,"modifier_option_id":94449,"modifier_name":"Topping Manis","modifier_option_name":"Manis 2","price":2000,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:09:01.826+07:00","cogs":null,"outlet_id":4522,"discount_amount":356.25,"gross_sales":2000.0,"net_sales":1643.75,"redeem_amount":0.0,"uuid":"6ff0bd8f-77f2-491f-b6f5-303ac3defe10","checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","discounts":[{"discount_id":429549,"discount_type":"percentage","discount_name":"Percent Lah Cok","discount_percentage":10.0,"discount_cash":0,"discount_amount":200,"discount_guid":null,"created_at":"2022-10-20T08:09:06.122+00:00","updated_at":"2022-10-20T08:09:06.122+00:00"},{"discount_id":429550,"discount_type":"cash","discount_name":"Rupiah Ini","discount_percentage":0.0,"discount_cash":5000,"discount_amount":156.25,"discount_guid":null,"created_at":"2022-10-20T08:09:48.755+00:00","updated_at":"2022-10-20T08:09:48.755+00:00"}]},{"modifier_id":16682,"modifier_option_id":94448,"modifier_name":"Topping Manis","modifier_option_name":"Manis 1","price":1000,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:09:01.826+07:00","cogs":null,"outlet_id":4522,"discount_amount":178.125,"gross_sales":1000.0,"net_sales":821.875,"redeem_amount":0.0,"uuid":"b8ba3d49-91c7-46d0-951e-26bed9d561f4","checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","discounts":[{"discount_id":429549,"discount_type":"percentage","discount_name":"Percent Lah Cok","discount_percentage":10.0,"discount_cash":0,"discount_amount":100,"discount_guid":null,"created_at":"2022-10-20T08:09:06.122+00:00","updated_at":"2022-10-20T08:09:06.122+00:00"},{"discount_id":429550,"discount_type":"cash","discount_name":"Rupiah Ini","discount_percentage":0.0,"discount_cash":5000,"discount_amount":78.125,"discount_guid":null,"created_at":"2022-10-20T08:09:48.755+00:00","updated_at":"2022-10-20T08:09:48.755+00:00"}]},{"modifier_id":17042,"modifier_option_id":95340,"modifier_name":"Topping Buah","modifier_option_name":"Kiwi","price":11000,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:09:01.825+07:00","cogs":null,"outlet_id":4522,"discount_amount":1959.375,"gross_sales":11000.0,"net_sales":9040.625,"redeem_amount":0.0,"uuid":"ca8e7e9a-162e-4683-a2eb-a234deaf92d4","checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","discounts":[{"discount_id":429549,"discount_type":"percentage","discount_name":"Percent Lah Cok","discount_percentage":10.0,"discount_cash":0,"discount_amount":1100,"discount_guid":null,"created_at":"2022-10-20T08:09:06.122+00:00","updated_at":"2022-10-20T08:09:06.122+00:00"},{"discount_id":429550,"discount_type":"cash","discount_name":"Rupiah Ini","discount_percentage":0.0,"discount_cash":5000,"discount_amount":859.375,"discount_guid":null,"created_at":"2022-10-20T08:09:48.755+00:00","updated_at":"2022-10-20T08:09:48.755+00:00"}]}]}],"payment_refunds":[{"status":"Done","payment_no":"6H7DDA1","payment_type":"cash","amount_pay":0.0,"amount_change":0.0,"total_discount_amount":-11400.0,"total_gratuity_amount":-21040.0,"total_item_price_amount":0.0,"total_tax_amount":-18410.0,"total_checkouts_amount":-41150.0,"is_refunded":true,"refunded_reason":"Cancelled Order","refunded_date":"2022-10-20T15:10:53.357+07:00","business_id":4011,"customer_id":null,"discount_id":null,"is_deleted":false,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.000+07:00","total_custom_price_amount":0.0,"include_gratuity_tax":false,"refund_amount":92000.0,"refund_type":"full","card_no":null,"created_by":5658,"note":"","total_collected_amount":-92000.0,"server_id":5658,"server_name":"Shintaaaa12 Shintaaaa","server_title":"Owner","auth_code":null,"cc_name":null,"card_type":null,"transaction_number":null,"transaction_reference":null,"outlet_id":4522,"guid":"1a7b64af-52c0-4dbd-9b07-a897a36b5848","synchronized_at":"2022-10-20T15:10:53.356+07:00","uniq_id":null,"transaction_certificate":null,"transaction_status_info":null,"merchant_id":null,"mpos_device_id":null,"pg_mid":null,"pg_setting":null,"order_info":null,"tvr":null,"cvm_result":null,"aid":null,"transaction_date":"20 Oct 2022","pii":null,"collected_by":"Shintaaaa12 Shintaaaa","shift_id":null,"invoice_no":null,"invoice_deposit_amount":null,"invoice_due_date":null,"invoice_status":null,"latitude":-6.33664033,"longitude":106.70048647,"refund_ids":[],"total_gross_sales":-64000.0,"total_net_sales":-52600.0,"is_refund_breakdown":true,"customer_name":"","customer_email":"","customer_phone":"","subtotal":-52600.0,"creator_name":"Shintaaaa12 Shintaaaa","table_name":"","collector_id":null,"cashlezz_transaction_id":null,"sms_id":null,"receipt_count":0,"order_id":null,"is_loyalty":false,"total_redeem_amount":0.0,"is_offline":null,"is_sales_type":true,"server_created_at":"2022-10-20T15:10:53.359+07:00","total_rounding_amount":50.0,"bill_id":null,"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT","uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","parent_payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","source_type":null,"original_client_created_at":null,"refund_id":0,"refund_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","refunded_by":"Shintaaaa12 Shintaaaa","transaction_time":"03 : 10 PM","refunded_at":"2022-10-20T15:10:53.000+07:00","mpos_transaction_date":null,"payment_taxes":[{"name":"Tax","amount":10.0,"total":-18410.0,"taxable_amount":-220920.0,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.359+07:00","tax_id":40475,"uuid":"120d4962-b30d-4a12-8b7f-6b9cab036be4","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a"},{"name":"Pajak","amount":5.0,"total":-18410.0,"taxable_amount":-220920.0,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.359+07:00","tax_id":206833,"uuid":"12f0c371-7a60-496e-ae49-2b1fff2d3d7f","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a"},{"name":"Pajaks","amount":10.0,"total":-18410.0,"taxable_amount":-220920.0,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.359+07:00","tax_id":647537,"uuid":"5f76f7b5-e5b9-4869-9f64-07772b07e7ce","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a"}],"payment_gratuities":[{"name":"Gratuity","amount":10.0,"total":-5260.0,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.359+07:00","gratuity_id":46185,"uuid":"f4650acd-e8b7-43bb-8dc7-42ce22f2c55a","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a"},{"name":"Frea","amount":25.0,"total":-13150.0,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.359+07:00","gratuity_id":592604,"uuid":"c12f9a6e-4f26-43c6-b4f7-06af63bde338","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a"},{"name":"Service ","amount":5.0,"total":-2630.0,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.359+07:00","gratuity_id":172881,"uuid":"af43d4c6-5f24-4a32-bdca-89f1a70763f6","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a"}],"payment_discounts":[{"discount_id":429550,"discount_amount":-5000.0,"discount_name":"Rupiah Ini","discount_type":"cash","is_deleted":null,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":null,"discount_cash":5000.0,"uuid":"d870677a-b983-459d-ab30-3837731cf26a","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discount_percentage":0.0}],"checkouts":[{"custom_amount":0.0,"item_variant_id":1784869,"quantity":-1,"discount_amount":-11400.0,"tax_amount":-18410.0,"business_id":4011,"is_deleted":false,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.356+07:00","item_id":1181590,"item_discount":0,"item_price_library":64000.0,"item_price":64000.0,"item_price_discount":-52600.0,"gratuity_amount":-21040.0,"item_price_discount_gratuity":0,"total_price":-52600.0,"item_price_quantity":-64000.0,"category_name":"Beverage","category_id":94185,"item_name":"Ice Cappucino","item_variant_name":"","sku":"","note":null,"cogs":0.0,"gross_sales":-64000.0,"outlet_id":4522,"position":0,"net_sales":-52600.0,"track_stock":false,"item_image":"","is_recipe":false,"redeem_amount":0.0,"sales_type_id":807678,"sales_type_name":"Kaki lima","is_program_item":false,"uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","parent_checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","bundle_id":null,"item_type":null,"checkout_bundle_id":null,"bundle_name":null,"brand_id":null,"brand_name":null,"price":-64000.0,"refunded_quantity":0,"discounts":[{"discount_id":429549,"discount_type":"percentage","discount_name":"Percent Lah Cok","discount_percentage":10.0,"discount_cash":0,"discount_amount":-6400,"discount_guid":null,"created_at":null,"updated_at":null}],"modifiers":[{"modifier_id":16682,"modifier_option_id":94448,"modifier_name":"Topping Manis","modifier_option_name":"Manis 1","price":1000,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.327+07:00","cogs":null,"outlet_id":4522,"discount_amount":178.125,"gross_sales":1000.0,"net_sales":821.875,"redeem_amount":0.0,"uuid":"17b77b97-6d81-4ad9-90da-6636a9b202a3","checkout_uuid":"ec36ac68-c7d5-495c-91c5-4684a364cb69","payment_uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","discounts":[{"discount_id":429550,"discount_type":"cash","discount_name":"Rupiah Ini","discount_percentage":0.0,"discount_cash":5000,"discount_amount":78.125,"discount_guid":null,"created_at":"2022-10-20T08:09:48.755+00:00","updated_at":"2022-10-20T08:09:48.755+00:00"}]}]}]}],"is_refund_breakdown":true,"total_refund":92000.0,"is_refunded":false,"refund_amount":0.0,"customer_name":"","customer_phone":"","customer_email":"","table_name":"","total_rounding_amount":-50.0,"order_id":"141TH0006"}]}}}}},"security":[{"access_token":["transaction"]}],"description":"\u003cb style='color:red'\u003eDeprecated API. We will no longer provide support for showLatestTransactionsV2. Please use showLatestTransactionsV3.\u003c/b\u003e\u003cbr/\u003eReturn all sales transactions of an outlet sorted by newest one first. Required permissions: `transaction`","operationId":"showLatestTransactionsV2","tags":["Latest Transaction"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"time_filter","in":"query","description":"Type of fitler to be used by start and end parameters {created_at, updated_at, synchronized_at}","required":false,"type":"string"},{"name":"include_promo","in":"query","description":"Boolean to indicate whether Promo details are included in the response","required":false,"type":"boolean"},{"name":"reorder_type","in":"query","description":"Sort results in ascending or descending order {ASC, DESC}","required":false,"type":"string"}]}},"/v1/outlets/{outlet_id}/advanced_orderings/orders":{"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"item_variant_id cannot be blank (at position 0)","error_type":"ORDR-IIDB"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Advanced orderings response","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"id":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":[{"id":310}],"meta":{"code":200,"errors":{}}}}},"409":{"description":"Duplicated entities","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":null,"meta":{"code":409,"error_message":"Duplicate order id 1","error_type":"ORDR-DUPL"}}}}},"security":[{"access_token":["checkout"]}],"description":"Create orders to outlet. Required permissions: `checkout`","operationId":"createOrderV1","tags":["Advanced Orderings"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"order","in":"body","description":"Order JSON request","required":true,"schema":{"$ref":"#/definitions/Order"}}]}},"/v1/outlets/{outlet_id}/advanced_orderings/orders/{application_order_id}/cancel":{"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"only specific outlet may update order","error_type":"ORDR-IORU"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Advanced orderings response","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"id":{"type":"number"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":[{"id":310}],"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["checkout"]}],"description":"Cancel order to outlet. Required permissions: `checkout`","operationId":"cancelOrderV1","tags":["Advanced Orderings"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"application_order_id","in":"path","description":"Order ID given from the third party application. Different from Moka's internal Order ID","required":true,"type":"string"},{"name":"order","in":"body","description":"Order JSON request","required":true,"schema":{"$ref":"#/definitions/CancelOrder"}}]}},"/v1/outlets/{outlet_id}/advanced_orderings/orders/{application_order_id}/status":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"only specific outlet may access order","error_type":"ORDR-IORA"}}}},"200":{"description":"Order Status Code","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"status_code":{"type":"One of the order status codes"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":[{"status_code":"1"}],"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["checkout"]}],"description":" Retrieves an order's status. Required permissions: `checkout` \u003cdiv\u003e\n  \u003cbr\u003e\n  \u003cdiv\u003e\n  This will return the order’s status code, the status code is a predefined set of code strings described as follows:\n  \u003c/div\u003e\n  \u003cbr\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003cth\u003eOrder Status Code\u003c/th\u003e\n      \u003cth\u003eShort Description\u003c/th\u003e\n      \u003cth\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e \u003cb\u003e\"0\"\u003c/b\u003e \u003c/td\u003e\n      \u003ctd\u003e INCOMING \u003c/td\u003e\n      \u003ctd\u003e The order notification was sent to the merchant and is waiting for the merchant to either accept or decline the incoming order. \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e \u003cb\u003e\"1\"\u003c/b\u003e \u003c/td\u003e\n      \u003ctd\u003e ACCEPTED \u003c/td\u003e\n      \u003ctd\u003e The order was accepted but not yet processed by the merchant. \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e \u003cb\u003e\"2\"\u003cb\u003e \u003c/td\u003e\n      \u003ctd\u003e COMPLETED \u003c/td\u003e\n      \u003ctd\u003e The merchant has completely processed the order. \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e \u003cb\u003e\"3\"\u003cb\u003e \u003c/td\u003e\n      \u003ctd\u003e CANCELLED \u003c/td\u003e\n      \u003ctd\u003e The order was cancelled by the order issuer using the cancelOrderV1 API. \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e \u003cb\u003e\"4\"\u003cb\u003e \u003c/td\u003e\n      \u003ctd\u003e EXPIRED \u003c/td\u003e\n      \u003ctd\u003e The order notification was sent to the merchant but the merchant didn’t accept or decline it within the expiration time window. \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e \u003cb\u003e\"5\"\u003cb\u003e \u003c/td\u003e\n      \u003ctd\u003e REJECTED \u003c/td\u003e\n      \u003ctd\u003e The merchant declined the incoming order. \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e \u003cb\u003e\"6\"\u003cb\u003e \u003c/td\u003e\n      \u003ctd\u003e DELIVERED \u003c/td\u003e\n      \u003ctd\u003e The processed order has been delivered. \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/table\u003e\n\n  In rare cases, this API can return an \u003cb\u003e empty string \u003c/b\u003e which means that currently the order is in an invalid state, you can try again\n  at a later time to get the correct value of the order status.\n\u003c/div\u003e\n","operationId":"getOrderStatusV1","tags":["Advanced Orderings"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"application_order_id","in":"path","description":"Order ID given from the third party application. Different from Moka's internal Order ID","required":true,"type":"string"}]}},"/v1/outlets/{outlet_id}/advanced_orderings/generate_sales_type":{"post":{"description":"\u003cp\u003e Generate Advanced Orderings sales type for an outlet. \u003c/p\u003e \u003cp\u003e Required Permissions: `sales_type` `library` \u003c/p\u003e","operationId":"generateSalesTypeV1","tags":["Advanced Orderings"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"}],"responses":{"200":{"description":"Generate Sales Type response","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"id":{"type":"number"},"name":{"type":"string"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":[{"id":310,"name":"beesales"}],"meta":{"code":200,"errors":{}}}}},"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}}},"security":[{"access_token":["checkout"]}]}},"/v2/outlets/{outlet_id}/advanced_orderings/generate_sales_type":{"post":{"description":"\u003cp\u003e Generate Advanced Orderings sales type for an outlet. \u003c/p\u003e \u003cp\u003e Required Permissions: `sales_type` `library` \u003c/p\u003e","operationId":"generateSalesTypeV2","tags":["Advanced Orderings"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"}],"responses":{"200":{"description":"Generate Sales Type response","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"id":{"type":"number"},"name":{"type":"string"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":[{"id":310,"name":"beesales"}],"meta":{"code":200,"errors":{}}}}},"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}}},"security":[{"access_token":["checkout"]}]}},"/v1/outlets/{outlet_id}/advanced_orderings/auto_accept":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Auto Accept Status","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"auto_accept_status":{"type":"boolean"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"auto_accept_status":true},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["checkout"]}],"description":"Retrieve auto accept status of an outlet. Required permissions: `checkout`","operationId":"getAutoAcceptV1","tags":["Advanced Orderings"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"}]},"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Auto Accept Status","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"auto_accept_status":{"type":"boolean"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"auto_accept_status":true},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["checkout"]}],"description":"Set auto accept feature of an outlet. Required permissions: `checkout`\u003cdiv\u003e\n  \u003cdiv\u003e\n    Auto accept feature allows the merchant to receive incoming order without the needs of accepting it. The boolean is defined as follows:\n  \u003c/div\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003cth\u003eAuto Accept Status\u003c/th\u003e\n      \u003cth\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eON\u003c/td\u003e\n      \u003ctd\u003eIncoming orders will be automatically accepted. Merchant only need to complete an order.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eOFF\u003c/td\u003e\n      \u003ctd\u003eIncoming orders need to be manually accepted. Merchant needs to accept and complete an order.\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/table\u003e\n\u003c/div\u003e\n","operationId":"setAutoAcceptV1","tags":["Advanced Orderings"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"auto_accept","in":"body","description":"Auto Accept JSON request","required":true,"schema":{"type":"object","required":true,"properties":{"auto_accept_status":{"type":"boolean","example":true,"description":"Set the auto accept status for that outlet","required":true}}}}]}},"/v1/outlets/{outlet_id}/advanced_orderings/orders/{application_order_id}/drivers":{"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"driver id cannot be blank","error_type":"ORDR-IIDB"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Advanced orderings response","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"id":{"type":"number","description":"Internal order driver id. Ignore this value"},"name":{"type":"string","description":"The name of the driver"},"license_plate":{"type":"string","description":"license plate number"},"phone_number":{"type":"string"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}},"examples":{"application/json":{"data":{"id":1,"name":"Yayan","license_plate":"123456","phone_number":"085712345678","order_id":1},"meta":{"code":200,"error_message":null,"error_type":null}}}}}},"security":[{"access_token":["checkout"]}],"description":"Updates online order based on the online order ID. Required permissions: `checkout`","operationId":"updateOrderDriverV1","tags":["Advanced Orderings"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"application_order_id","in":"path","description":"Order ID given from the third party application. Different from Moka's internal Order ID","required":true,"type":"string"},{"name":"order","in":"body","description":"Order driver JSON request","required":true,"schema":{"$ref":"#/definitions/OrderDriver"}}]}},"/v1/outlets/{outlet_id}/bundle_package":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Bundle package response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"is_completed":{"type":"boolean"},"next_cursor":{"type":"string"},"bundle_packages":{"type":"array","items":{"properties":{"bundle_id":{"type":"string"},"bundle_name":{"type":"string"},"bundle_price":{"type":"integer"},"bundle_items":{"type":"array","items":{"properties":{"item_name":{"type":"string"},"item_variant_name":{"type":"string"}}}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"is_completed":false,"next_cursor":"eyJ1cGRhdGVkX2F0IjpudWxsLCJuYW1lIjoiU29tZSBCdW5kbGUgTmFtZSIsImxhdGVzdF9pZCI6Ijk0MTYwMzQ2LTYyNjgtNGJiYS1iMzgyLWUzNGIzN2U2MDgyNCJ9","bundle_packages":[{"bundle_id":"76a72693-8556-4809-8c14-3e970af32ca6","bundle_name":"Some Bundle Name","bundle_price":10000,"bundle_items":[{"item_name":"Item Name","item_variant_name":"Item Variant Name"}]}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all bundle packages on the outlet that the user has access to. Required permissions: `library`","operationId":"listBundlePackagesV1","tags":["Bundle Package"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"cursor","description":"The current cursor used for fetching data","in":"query","required":false,"type":"string"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"}]}},"/v1/businesses":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Businesses response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"business":{"$ref":"#/definitions/Business"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"business":{"id":9,"name":"MOKAPOS TEST CAFE 2","address":"PIK","suite":"","city":"Jakarta Barat","province":"Jakarta","postal_code":"12904","description":"Just for test","email":"","phone":"082145466567","logo":null,"notify_per_deposit":null,"notify_per_trans":null,"user_id":15,"is_deleted":false,"created_at":"2014-11-11T17:29:30.681+07:00","updated_at":"2018-01-02T10:49:39.371+07:00","business_type_id":null,"business_category_id":3,"website":"https://backoffice.mokapos.com/settings/public_pro","twitter":"ss","facebook":"ss","instagram":"ss","notes":null,"latitude":-6.1797729,"longitude":106.7931214,"synchronized_at":"2018-01-02T10:49:39.364+07:00","outlet_slot":11,"is_trial":false,"current_plan":12,"expired_at":"2019-01-01T07:00:00.000+07:00","last_payment_date":null,"trial_end_at":"2014-12-11T00:00:00.000+07:00"}},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["profile"]}],"description":"Returns the merchant's business information. Required permissions: `profile`","operationId":"showBusinessInformationV1","tags":["Business"]}},"/v1/businesses/{business_id}/checkout_settings":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Business Checkout Settings response","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"enable_tax":{"type":"boolean"},"enable_gratuity":{"type":"boolean"},"include_gratuity_tax":{"type":"boolean"},"enable_rounding":{"type":"boolean"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"enable_tax":true,"enable_gratuity":false,"include_gratuity_tax":true,"enable_rounding":false},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["profile"]}],"description":"Retrieve the checkout settings of a business. Required permissions: `profile`","operationId":"getBusinessCheckoutSettingsV1","tags":["Business"],"parameters":[{"name":"business_id","description":"The merchant's business ID","in":"path","required":true,"type":"integer"}]}},"/v1/businesses/{business_id}/customers":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Customers response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"customers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"email":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"},"business_id":{"type":"integer"},"outlet_id":{"type":"integer"},"birthday":{"type":"string"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"synchronized_at":{"type":"string"},"loyalty":{"type":"object","description":"Loyalty info. Can be null if this customer is not a loyalty member","properties":{"point_balance":{"type":"number"},"join_date":{"type":"string"}}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"customers":[{"id":1950404,"email":"sdf@mail.com","name":"San","phone":"6281288","address":null,"city":null,"state":null,"postal_code":null,"business_id":9,"outlet_id":321,"birthday":null,"is_deleted":false,"created_at":"2017-04-10T13:57:17.789+07:00","updated_at":"2017-04-10T13:57:17.789+07:00","synchronized_at":"2017-04-10T13:57:17.789+07:00","loyalty":{"point_balance":38,"join_date":"2018-09-05T14:55:56.398+07:00"}}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["customer"]}],"description":"Returns all customers on the outlet that the user has access to. Required permissions: `customer`","operationId":"listCustomersV1","tags":["Customers"],"parameters":[{"name":"business_id","description":"The merchant's business ID","in":"path","required":true,"type":"integer"},{"name":"mobile_device","in":"query","description":"Set the request to be mobile_device to paginate using timestamp","required":false,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"},{"name":"include_loyalty","in":"query","description":"Boolean to include loyalty information","required":false,"type":"boolean"}]}},"/v1/outlets/{outlet_id}/categories":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Categories response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"category":{"type":"array","items":{"$ref":"#/definitions/Category"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":1,"category":[{"id":303585,"name":"Uncategorized","description":null,"business_id":9,"is_deleted":false,"created_at":"2018-01-11T15:33:23.628+07:00","updated_at":"2018-01-11T15:33:23.628+07:00","outlet_id":54964,"guid":"4b0a3d95-c169-4938-b490-e11629b462d7","uniq_id":null,"synchronized_at":"2018-01-11T15:33:23.628+07:00"}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all categories on the outlet that the user has access to. Required permissions: `library`","operationId":"listCategoriesV1","tags":["Categories"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]}},"/v1/outlets/{outlet_id}/discounts":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Discounts response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"discount":{"type":"array","items":{"$ref":"#/definitions/Discount"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":2,"discount":[{"id":75319,"name":"rpi","amount":5000.0,"type":"cash","business_id":9,"is_deleted":false,"created_at":"2017-12-19T15:03:40.960+07:00","updated_at":"2017-12-19T15:03:40.963+07:00","outlet_id":7,"guid":"EFFEF46E-99AF-4CAC-96C2-BDF9727374FB","uniq_id":"61","synchronized_at":"2017-12-19T15:03:44.930+07:00","amount_format":"Rp. 5.000"},{"id":75306,"name":"dis1","amount":100.0,"type":"percentage","business_id":9,"is_deleted":false,"created_at":"2017-12-19T14:10:30.402+07:00","updated_at":"2017-12-19T14:10:30.405+07:00","outlet_id":7,"guid":"C8B48FA3-9D8A-45D4-82D1-F6199E375B87","uniq_id":"61","synchronized_at":"2017-12-19T14:10:35.566+07:00","amount_format":"100%"}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all discounts on the outlet that the user has access to. Required permissions: `library`","operationId":"listDiscountsV1","tags":["Discounts"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]}},"/v1/outlets/{outlet_id}/favorites":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Favorites response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"favorite":{"type":"array","items":{"$ref":"#/definitions/Favorite"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":1,"favorite":[{"id":5766610,"business_id":1678,"item_id":23238,"location_x":0,"location_y":15,"favorite_type":"category","is_deleted":false,"created_at":"2018-01-23T15:22:29.975+07:00","updated_at":"2018-01-23T15:22:29.986+07:00","outlet_id":2239,"guid":"50550975-C6F3-41D4-A43C-6874D8704C7B","uniq_id":"14","synchronized_at":"2018-01-23T15:22:37.085+07:00"}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"\u003cb style='color:red'\u003eDeprecated API.\u003c/b\u003e","operationId":"listFavoritesV1","tags":["Favorites"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"mobile_device","in":"query","description":"Set the request to be mobile_device to paginate using timestamp","required":false,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]}},"/v1/outlets/{outlet_id}/gratuities":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Gratuities response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"gratuity":{"type":"array","items":{"$ref":"#/definitions/Gratuity"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":1,"gratuity":[{"id":951,"name":"Service Charge","amount":10.0,"business_id":9,"is_deleted":false,"created_at":"2016-07-14T10:14:19.555+07:00","updated_at":"2016-07-14T10:14:19.555+07:00","outlet_id":7,"guid":"8d631d33-4762-47d6-a1b4-d12f60154e86","uniq_id":null,"synchronized_at":"2016-07-14T10:14:26.031+07:00","deleted_at":null}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all gratuities on the outlet that the user has access to. Required permissions: `library`","operationId":"listGratuitiesV1","tags":["Gratuities"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]}},"/v1/businesses/{business_id}/loyalties/programs":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Program response","schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"id":{"type":"number"},"business_id":{"type":"number","description":"Related business id"},"new_member_point":{"type":"integer","description":"How many points customer will get when they register as a loyalty member for the first time"},"program_revision":{"type":"integer","description":"Counter about how many this program has been altered"},"status":{"type":"integer","description":"`ACTIVE` or `INACTIVE`"},"inactive_since":{"type":"integer","description":"when the program has been deactivated"},"reset_since":{"type":"integer","description":"when the program has been reset"},"created_at":{"type":"string"},"created_by":{"type":"string","description":"The name of creator. If you asked about ID, yes we only provide name."},"updated_at":{"type":"string"},"updated_by":{"type":"string","description":"The name of updater. If you asked about ID, yes we only provide name."},"deleted_at":{"type":"string","description":"Currently we do not support delete loyalty, so please just ignore this"},"deleted_by":{"type":"string","description":"Currently we do not support delete loyalty, so please just ignore this"},"synchronized_at":{"type":"string"},"is_sent_validation_code":{"type":"boolean","description":"`true` if customer need to input their verification code when registering as loyalty member"},"earning_rule":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"type":{"type":"string","description":"Type of earning method. Currently it only support `SPENDING`, but it can be changed further during Moka features development"},"point":{"type":"number","description":"Number of points gained"},"amount":{"type":"number","description":"Amount of spending needed to gain points. If the `type` is `SPENDING`, then this field represents amount rupiah"}}}},"rewards":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"reward_type":{"type":"string","description":"Type of reward. It can be `TOTAL_SALES` or `ITEM`"},"discount":{"type":"number","description":"Amount of discount based on `discount_type`.\u003cbr/\u003e If `discount_type` equals `AMOUNT` then this represent value in rupiah. Otherwise, this represents percentage "},"discount_type":{"type":"string","description":"`PERCENTAGE` or `AMOUNT`"},"max_discount_amount":{"type":"string","description":"Amount of discount can be applied to a transactions, in rupiah (after calculation)"},"min_purchase_amount":{"type":"string","description":"Amount of purchase needed so this reward can be applied to a transactions, in rupiah"},"created_at":{"type":"string"},"created_by":{"type":"string","description":"The name of creator. If you asked about ID, yes we only provide name."},"updated_at":{"type":"string"},"updated_by":{"type":"string","description":"The name of updater. If you asked about ID, yes we only provide name."},"deleted_at":{"type":"string"},"deleted_by":{"type":"string"},"synchronized_at":{"type":"string"},"reward_items":{"type":"array","description":"Only applies if reward_type=\u003ccode\u003eITEM\u003c/code\u003e.\u003cbr/\u003e\u003cb\u003eNOTE:\u003c/b\u003e we use name instead of id in variant, item, or category, since some items or category have different ids but same name.","items":{"properties":{"id":{"type":"integer"},"type":{"type":"string","description":"Currently it supports only `ITEM`, `CATEGORY`, `ITEM_VARIANT`"},"category_name":{"type":"string","description":"Applies only if `type` equals `CATEGORY`\\nGet reward from any items belong to category name"},"item_name":{"type":"string","description":"Applies only if `type` equals `ITEM`\\nGet reward from any items belong to item name"},"item_variant_names":{"type":"array","items":{"type":"string","description":"Applies only if `type` equals `ITEM` or `ITEM_VARIANT`.\\nGet reward from any items belong to variants name. If the variants is not limited, then it would return `*`"}}}}},"redeem_point":{"type":"string","description":"How much points required to redeem this reward"},"is_deleted":{"type":"string","description":"`true` if the reward has been deleted"}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":[{"id":310,"business_id":1678,"new_member_point":100,"program_revision":2,"status":"ACTIVE","inactive_since":null,"reset_since":null,"created_at":"2018-09-13T14:20:14.757+07:00","created_by":"Hello  Yafi","updated_at":"2018-09-13T14:22:22.290+07:00","updated_by":"Hello  Yafi","deleted_at":null,"deleted_by":null,"synchronized_at":"2018-09-13T14:22:22.290+07:00","is_sent_validation_code":true,"earning_rules":[{"id":308,"type":"SPENDING","point":10,"amount":11000}],"rewards":[{"id":1461,"reward_type":"TOTAL_SALES","discount":1,"discount_type":"PERCENTAGE","max_discount_amount":100000,"min_purchase_amount":null,"created_at":"2018-09-13T14:20:14.757+07:00","created_by":"Hello  Yafi","updated_at":"2018-09-13T14:22:22.290+07:00","updated_by":"Hello  Yafi","deleted_at":null,"deleted_by":null,"synchronized_at":"2018-09-13T14:22:22.290+07:00","reward_items":null,"redeem_point":1000,"is_deleted":false},{"id":1462,"reward_type":"TOTAL_SALES","discount":10000,"discount_type":"AMOUNT","max_discount_amount":null,"min_purchase_amount":10000,"created_at":"2018-09-13T14:20:14.757+07:00","created_by":"Hello  Yafi","updated_at":"2018-09-13T14:22:22.290+07:00","updated_by":"Hello  Yafi","deleted_at":null,"deleted_by":null,"synchronized_at":"2018-09-13T14:22:22.290+07:00","reward_items":null,"redeem_point":12000,"is_deleted":false},{"id":1463,"reward_type":"ITEM","discount":10,"discount_type":"PERCENTAGE","max_discount_amount":null,"min_purchase_amount":null,"created_at":"2018-09-13T14:20:14.757+07:00","created_by":"Hello  Yafi","updated_at":"2018-09-13T14:22:22.290+07:00","updated_by":"Hello  Yafi","deleted_at":null,"deleted_by":null,"synchronized_at":"2018-09-13T14:22:22.290+07:00","reward_items":[{"id":614,"type":"ITEM","category_name":null,"item_name":"Chicken","item_variant_names":["*"]}],"redeem_point":10000,"is_deleted":false},{"id":1464,"reward_type":"ITEM","discount":12,"discount_type":"PERCENTAGE","max_discount_amount":null,"min_purchase_amount":null,"created_at":"2018-09-13T14:20:14.757+07:00","created_by":"Hello  Yafi","updated_at":"2018-09-13T14:22:22.290+07:00","updated_by":"Hello  Yafi","deleted_at":null,"deleted_by":null,"synchronized_at":"2018-09-13T14:22:22.290+07:00","reward_items":[{"id":615,"type":"ITEM_VARIANT","category_name":null,"item_name":"American Favourite 2123","item_variant_names":["Large"]}],"redeem_point":100,"is_deleted":false}],"is_deleted":false}],"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["customer"]}],"description":"Returns all the loyalties programs of a merchant. Required permissions: `customer`","operationId":"showLoyaltyProgramV1","tags":["Loyalties"],"parameters":[{"name":"business_id","description":"The merchant's business ID","in":"path","required":true,"type":"integer"}]}},"/v1/loyalties/point-activities":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Point activities response","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"original_id":{"type":"integer","description":"Unique identifier for the point activity"},"program_id":{"type":"integer","description":"Associated loyalty program ID"},"outlet_name":{"type":"string","description":"Name of the outlet where the activity occurred"},"customer_id":{"type":"integer","description":"Customer ID"},"member_id":{"type":"integer","description":"Loyalty member ID"},"payment_uuid":{"type":"string","format":"uuid","description":"UUID of the payment transaction"},"parent_payment_uuid":{"type":"string","format":"uuid","description":"UUID of the parent payment if this is a refund or related transaction"},"type":{"type":"string","description":"Activity type","enum":["EARNING","REDEMPTION","ADJUSTMENT","CANCELLATION","EXPIRATION"]},"payment_type":{"type":"string","description":"Type of payment (CASH, CARD, etc.)"},"initial_points":{"type":"integer","description":"Initial points before this activity"},"new_member_points":{"type":"integer","description":"Points given for new member joining"},"points":{"type":"integer","description":"Points earned or redeemed in this activity"},"redeem_reward":{"type":"string","description":"Reward redeemed (if applicable)"},"total_checkouts_amount":{"type":"number","format":"double","description":"Total checkouts amount in IDR"},"total_collected_amount":{"type":"number","format":"double","description":"Total amount collected in IDR"},"earning_rule":{"type":"object","description":"Earning rule details","properties":{"id":{"type":"integer","description":"Earning rule ID"},"type":{"type":"string","description":"Type of earning rule (SPENDING, ITEM_PURCHASE, etc.)"},"point":{"type":"integer","description":"Points granted by this rule"},"amount":{"type":"number","format":"double","description":"Amount threshold for earning in IDR"}}},"created_at":{"type":"string","format":"date-time","description":"When the activity was created (ISO 8601 format with timezone)"},"updated_at":{"type":"string","format":"date-time","description":"When the activity was last updated (ISO 8601 format with timezone)"},"synchronized_at":{"type":"string","format":"date-time","description":"When the activity was synchronized with loyalty service (ISO 8601 format with timezone)"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":[{"original_id":43868,"program_id":5683,"outlet_name":"Outlet 1","customer_id":25061525,"member_id":29862,"payment_uuid":"5b399561-f892-4084-b8f2-e91fc4d7cb4d","parent_payment_uuid":"5b399561-f892-4084-b8f2-e91fc4d7cb4d","type":"EARNING","payment_type":"CASH","initial_points":0,"new_member_points":10,"points":100,"redeem_reward":"","total_checkouts_amount":100000.0,"total_collected_amount":100000.0,"earning_rule":{"id":0,"type":"SPENDING","point":10,"amount":10000.0},"created_at":"2025-06-25T17:53:20.014+07:00","updated_at":"2025-06-25T17:53:20.014+07:00","synchronized_at":"2025-06-25T18:06:58.023+07:00"}],"meta":{"code":200,"errors":{}}}}},"422":{"description":"Unprocessable entity - missing required parameter","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}},"meta":{"type":"object","properties":{"code":{"type":"integer"},"errors":{"type":"array","items":{"type":"string"}}}}}},"examples":{"application/json":{"data":[],"meta":{"code":422,"errors":["customer_id is required"]}}}}},"security":[{"access_token":["customer"]}],"description":"Returns loyalty point activities for a customer. Required permissions: `customer`","operationId":"showLoyaltyPointActivitiesV1","tags":["Loyalties"],"parameters":[{"name":"customer_id","in":"query","description":"Customer ID","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"reorder_type","in":"query","description":"Sort results in ascending or descending order {ASC, DESC}","required":false,"type":"string"},{"name":"outlet_id","in":"query","description":"Outlet ID (optional)","required":false,"type":"integer"}]}},"/v1/outlets/{outlet_id}/ingredients/categories":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Ingredient Category Response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"ingredient_categories":{"type":"array","items":{"$ref":"#/definitions/IngredientCategory"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":1,"ingredient_categories":[{"id":17291,"name":"Bahan Pokok","business_id":9893,"outlet_id":15175,"created_at":"2019-12-03T15:12:57.827+07:00","updated_at":"2019-12-03T15:12:57.827+07:00","synchronized_at":"2019-12-03T15:12:57.827+07:00"}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all ingredient categories on the outlet that the user has access to. Required permissions: `library`","operationId":"listIngredientCategoriesV1","tags":["Ingredient Categories"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format \u003cbr\u003e (This parameter can be used without until)","required":false,"type":"float"},{"name":"since","in":"query","description":"The initial range of time in Epoch format \u003cbr\u003e (This parameter can be used without since)","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]}},"/v1/outlets/{outlet_id}/ingredients/library":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Ingredient Library Response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"ingredients":{"type":"array","items":{"$ref":"#/definitions/Ingredient"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":1,"ingredients":[{"id":83615,"name":"Ayam Potong","image":{"url":null},"business_id":9893,"outlet_id":15175,"ingredient_category_id":17291,"category_name":"Bahan Pokok","unit_name":"gram (g)","in_stock":-2962.0,"alert":true,"ingredient_status":"Out","stock_alert":0.0,"track_cogs":false,"cogs":null,"created_at":"2019-12-03T15:12:57.827+07:00","updated_at":"2019-12-03T15:12:57.827+07:00","synchronized_at":"2019-12-03T15:12:57.827+07:00"}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns the ingredient library on the outlet that the user has access to. Required permissions: `library`","operationId":"listIngredientLibraryV1","tags":["Ingredient Library"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format \u003cbr\u003e (This parameter can be used without until)","required":false,"type":"float"},{"name":"since","in":"query","description":"The initial range of time in Epoch format \u003cbr\u003e (This parameter can be used without since)","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]}},"/v1/outlets/{outlet_id}/items":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Items response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"item":{"type":"array","items":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"image":{"type":"object","properties":{"url":{"type":"string"},"id":{"type":"integer"},"height":{"type":"integer"},"width":{"type":"integer"}}},"business_id":{"type":"integer"},"category_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"background_color":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"uniq_id":{"type":"string"},"synchronized_at":{"type":"string"},"is_recipe":{"type":"boolean"},"active_modifiers":{"type":"array","items":{"$ref":"#/definitions/Modifier"}},"item_variants":{"type":"array","items":{"$ref":"#/definitions/ItemVariant"}},"is_ecommerce":{"type":"boolean"},"brand_id":{"type":"integer"},"condition":{"type":"string"},"weight":{"type":"integer"},"height":{"type":"integer"},"width":{"type":"integer"},"length":{"type":"integer"},"pre_order_days":{"type":"integer"},"images":{"type":"array","items":{"$ref":"#/definitions/ItemImage"}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":1,"items":[{"id":788987,"name":"Americano","description":"Long black coffee","image":{"url":"https://some-server.com/uploads/item/image/americano.jpeg","id":12345,"height":480,"width":720},"business_id":1678,"category_id":23700,"is_deleted":false,"is_recipe":false,"is_sales_type_price":true,"created_at":"2017-08-11T09:43:15.795+07:00","updated_at":"2017-08-11T09:42:08.639+07:00","background_color":"","alert":false,"outlet_id":2624,"guid":"06e0ed27-25ed-4a39-a718-ab2ab7e21a51","uniq_id":null,"synchronized_at":"2017-08-11T09:42:08.629+07:00","category":{"id":23700,"name":"Coffee","description":null,"business_id":1678,"is_deleted":false,"created_at":"2017-02-23T16:22:18.105+07:00","updated_at":"2017-08-14T16:36:56.241+07:00","outlet_id":2624,"guid":"8b7d57cf-ade8-4dc5-a14d-f8c30c87c621","uniq_id":null,"synchronized_at":"2017-08-14T16:36:56.241+07:00"},"item_variants":[{"id":1130275,"name":"","sku":"","price":5000,"in_stock":1000,"stock_alert":0,"position":0,"item_id":788987,"is_deleted":false,"created_at":"2017-08-11T09:43:15.795+07:00","updated_at":"2017-08-11T09:43:15.795+07:00","add_inventory":0,"track_stock":true,"alert":true,"cogs":2000,"synchronized_at":"2017-08-11T09:42:08.638+07:00","last_modified":null,"outlet_id":2624,"guid":null,"uniq_id":null,"track_cogs":true,"is_saved":true,"sales_type_items":[{"is_default":true,"sales_type_id":116772,"sales_type_name":"Dine In","sales_type_price":4000},{"sales_type_id":130449,"sales_type_name":"GoFood","sales_type_price":6000},{"sales_type_id":245588,"sales_type_name":"GrabFood","sales_type_price":6000}]}],"active_modifiers":[{"id":186321,"business_id":1678,"name":"Cheese Topping","created_at":"2021-07-26T17:11:40.720+07:00","updated_at":"2021-07-26T17:15:41.950+07:00","outlet_id":2624,"guid":"877aaec1-3813-4e0b-9fec-0b6f942c8135","synchronized_at":"2021-07-26T17:15:41.960+07:00","modifier_options":[{"id":2473420,"modifier_id":186321,"name":"Mozzarella","price":1500,"created_at":"2021-07-26T17:11:40.720+07:00","updated_at":"2021-07-26T17:11:40.720+07:00","outlet_id":2624,"synchronized_at":"2021-07-26T17:11:40.720+07:00","cogs":null,"guid":null,"is_deleted":false,"uniq_id":null}],"is_deleted":false,"uniq_id":null}],"is_ecommerce":true,"brand_id":23456,"condition":"New","weight":100,"height":20,"width":25,"length":10,"pre_order_days":7,"images":[{"raw_image_id":123456,"raw_image_url":"https://some-server.com/uploads/item/image/americano.jpeg"}]}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all items on the outlet that the user has access to. Required permissions: `library`","operationId":"listItemsV1","tags":["Items"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"mobile_device","in":"query","description":"Set the request to be mobile_device to paginate using timestamp","required":false,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]},"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Items response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"item":{"type":"array","items":{"properties":{"active_modifiers":{"type":"array","items":{"$ref":"#/definitions/Modifier"}},"item_variants":{"type":"array","items":{"$ref":"#/definitions/ItemVariant"}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"id":13588300,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.635000+07:00","is_deleted":false,"name":"Mobil VIA API Test create image to see response","description":"","image":{"url":"https://i.gojekapi.com/darkroom/moka-staging/v2/images/inventory/32459/611194/sample-image-5bbbe3e7.jpeg?w=480\u0026h=480\u0026fit=crop","is_new_image":false,"id":2172495,"width":853,"height":480},"business_id":32459,"category_id":15948453,"background_color":null,"outlet_id":611194,"guid":"91b93859-bad7-4dc6-aaaa-eadf14ab8123","uniq_id":null,"is_recipe":null,"brand_id":1590893,"brand_name":"Brand Default","is_ecommerce":true,"ecommerce_category_id":4,"condition":"New","weight":1000.0,"height":10.0,"width":10.0,"length":10.0,"item_variants":[{"id":22629075,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.642000+07:00","is_deleted":false,"name":"Merah","sku":"1202","price":null,"in_stock":100,"stock_alert":0,"position":0,"item_id":13588300,"add_inventory":0,"track_stock":false,"alert":false,"cogs":null,"outlet_id":611194,"guid":null,"uniq_id":null,"track_cogs":false,"is_saved":null,"is_recipe":false,"is_ingredient_in_stock":null,"is_generated":false,"sales_type_item_variants":[{"id":4923161,"created_at":"2022-12-05T13:01:34.649000+07:00","updated_at":"2022-12-05T13:01:34.650000+07:00","synchronized_at":"2022-12-05T13:01:34.650000+07:00","is_deleted":false,"sales_type_id":1388816,"item_variant_id":22629075,"business_id":32459,"outlet_id":611194,"price":105000,"sales_type":{"id":1388816,"created_at":"2022-12-02T10:27:14.696000Z","updated_at":"2022-12-02T10:27:14.696000Z","synchronized_at":"2022-12-02T10:27:14.713000Z","is_deleted":false,"business_id":32459,"outlet_id":611194,"name":"Sales Type Ginee","default_state":true,"active_state":true,"gratuity_applied_count":0,"has_business_level_entity":false,"gratuities":[]},"is_default":true}],"sales_type_items":[{"sales_type_id":1388816,"sales_type_name":"Sales Type Ginee","sales_type_price":105000,"is_variable_price":false}],"validation_errors":null,"item_variant_ecommerce_attributes":null,"has_cogs":false},{"id":22629076,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.674000+07:00","is_deleted":false,"name":"Hitam","sku":"1203","price":null,"in_stock":1000,"stock_alert":0,"position":1,"item_id":13588300,"add_inventory":0,"track_stock":false,"alert":false,"cogs":null,"outlet_id":611194,"guid":null,"uniq_id":null,"track_cogs":false,"is_saved":null,"is_recipe":false,"is_ingredient_in_stock":null,"is_generated":false,"sales_type_item_variants":[{"id":4923162,"created_at":"2022-12-05T13:01:34.678000+07:00","updated_at":"2022-12-05T13:01:34.678000+07:00","synchronized_at":"2022-12-05T13:01:34.678000+07:00","is_deleted":false,"sales_type_id":1388816,"item_variant_id":22629076,"business_id":32459,"outlet_id":611194,"price":110000,"sales_type":{"id":1388816,"created_at":"2022-12-02T10:27:14.696000Z","updated_at":"2022-12-02T10:27:14.696000Z","synchronized_at":"2022-12-02T10:27:14.713000Z","is_deleted":false,"business_id":32459,"outlet_id":611194,"name":"Sales Type Ginee","default_state":true,"active_state":true,"gratuity_applied_count":0,"has_business_level_entity":false,"gratuities":[]},"is_default":true}],"sales_type_items":[{"sales_type_id":1388816,"sales_type_name":"Sales Type Ginee","sales_type_price":110000,"is_variable_price":false}],"validation_errors":null,"item_variant_ecommerce_attributes":null,"has_cogs":false}],"category":{"id":15948453,"created_at":"2022-12-02T17:14:12.791000+07:00","updated_at":"2022-12-02T17:14:12.786000+07:00","synchronized_at":"2022-12-02T17:14:12.791000+07:00","is_deleted":false,"name":"Category 1","description":null,"business_id":32459,"outlet_id":611194,"guid":"4c407d26-0366-4ac2-87f9-e34b2b1fdcf3","uniq_id":null,"items":[],"has_business_level_entity":false},"active_modifiers":null,"is_sales_type_price":true,"modifier_ids":null,"has_business_level_entity":false,"images":[{"raw_image_url":"https://file-public-staging.mokapos.com/inventory/32459/-original-7c4af47d.png","raw_image_id":2154649}],"pre_order_days":0,"gofood_sync_status":null,"remove_image":null}}}}},"security":[{"access_token":["library"]}],"description":"Create items library. Required permissions: `library`","operationId":"createItemV1","tags":["Items"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"checkout_api","in":"body","description":"Checkout JSON request","required":true,"schema":{"$ref":"#/definitions/CreateItem"}}]}},"/v1/outlets/{outlet_id}/items/{item_id}":{"put":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Items response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"item":{"type":"array","items":{"properties":{"active_modifiers":{"type":"array","items":{"$ref":"#/definitions/Modifier"}},"item_variants":{"type":"array","items":{"$ref":"#/definitions/ItemVariant"}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"id":13588300,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.635000+07:00","is_deleted":false,"name":"Mobil VIA API Test create image to see response","description":"","image":{"url":"https://i.gojekapi.com/darkroom/moka-staging/v2/images/inventory/32459/611194/sample-image-5bbbe3e7.jpeg?w=480\u0026h=480\u0026fit=crop","is_new_image":false,"id":2172495,"width":853,"height":480},"business_id":32459,"category_id":15948453,"background_color":null,"outlet_id":611194,"guid":"91b93859-bad7-4dc6-aaaa-eadf14ab8123","uniq_id":null,"is_recipe":null,"brand_id":1590893,"brand_name":"Brand Default","is_ecommerce":true,"ecommerce_category_id":4,"condition":"New","weight":1000.0,"height":10.0,"width":10.0,"length":10.0,"item_variants":[{"id":22629075,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.642000+07:00","is_deleted":false,"name":"Merah","sku":"1202","price":null,"in_stock":100,"stock_alert":0,"position":0,"item_id":13588300,"add_inventory":0,"track_stock":false,"alert":false,"cogs":null,"outlet_id":611194,"guid":null,"uniq_id":null,"track_cogs":false,"is_saved":null,"is_recipe":false,"is_ingredient_in_stock":null,"is_generated":false,"sales_type_item_variants":[{"id":4923161,"created_at":"2022-12-05T13:01:34.649000+07:00","updated_at":"2022-12-05T13:01:34.650000+07:00","synchronized_at":"2022-12-05T13:01:34.650000+07:00","is_deleted":false,"sales_type_id":1388816,"item_variant_id":22629075,"business_id":32459,"outlet_id":611194,"price":105000,"sales_type":{"id":1388816,"created_at":"2022-12-02T10:27:14.696000Z","updated_at":"2022-12-02T10:27:14.696000Z","synchronized_at":"2022-12-02T10:27:14.713000Z","is_deleted":false,"business_id":32459,"outlet_id":611194,"name":"Sales Type Ginee","default_state":true,"active_state":true,"gratuity_applied_count":0,"has_business_level_entity":false,"gratuities":[]},"is_default":true}],"sales_type_items":[{"sales_type_id":1388816,"sales_type_name":"Sales Type Ginee","sales_type_price":105000,"is_variable_price":false}],"validation_errors":null,"item_variant_ecommerce_attributes":null,"has_cogs":false},{"id":22629076,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.674000+07:00","is_deleted":false,"name":"Hitam","sku":"1203","price":null,"in_stock":1000,"stock_alert":0,"position":1,"item_id":13588300,"add_inventory":0,"track_stock":false,"alert":false,"cogs":null,"outlet_id":611194,"guid":null,"uniq_id":null,"track_cogs":false,"is_saved":null,"is_recipe":false,"is_ingredient_in_stock":null,"is_generated":false,"sales_type_item_variants":[{"id":4923162,"created_at":"2022-12-05T13:01:34.678000+07:00","updated_at":"2022-12-05T13:01:34.678000+07:00","synchronized_at":"2022-12-05T13:01:34.678000+07:00","is_deleted":false,"sales_type_id":1388816,"item_variant_id":22629076,"business_id":32459,"outlet_id":611194,"price":110000,"sales_type":{"id":1388816,"created_at":"2022-12-02T10:27:14.696000Z","updated_at":"2022-12-02T10:27:14.696000Z","synchronized_at":"2022-12-02T10:27:14.713000Z","is_deleted":false,"business_id":32459,"outlet_id":611194,"name":"Sales Type Ginee","default_state":true,"active_state":true,"gratuity_applied_count":0,"has_business_level_entity":false,"gratuities":[]},"is_default":true}],"sales_type_items":[{"sales_type_id":1388816,"sales_type_name":"Sales Type Ginee","sales_type_price":110000,"is_variable_price":false}],"validation_errors":null,"item_variant_ecommerce_attributes":null,"has_cogs":false}],"category":{"id":15948453,"created_at":"2022-12-02T17:14:12.791000+07:00","updated_at":"2022-12-02T17:14:12.786000+07:00","synchronized_at":"2022-12-02T17:14:12.791000+07:00","is_deleted":false,"name":"Category 1","description":null,"business_id":32459,"outlet_id":611194,"guid":"4c407d26-0366-4ac2-87f9-e34b2b1fdcf3","uniq_id":null,"items":[],"has_business_level_entity":false},"active_modifiers":null,"is_sales_type_price":true,"modifier_ids":null,"has_business_level_entity":false,"images":[{"raw_image_url":"https://file-public-staging.mokapos.com/inventory/32459/-original-7c4af47d.png","raw_image_id":2154649}],"pre_order_days":0,"gofood_sync_status":null,"remove_image":null}}}}},"security":[{"access_token":["library"]}],"description":"Update items library. Required permissions: `library`","operationId":"updateItemV1","tags":["Items"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"item_id","description":"Item's id","in":"path","required":true,"type":"integer"},{"name":"checkout_api","in":"body","description":"Update JSON request","required":true,"schema":{"$ref":"#/definitions/UpdateItem"}}]},"delete":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Items response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"item":{"type":"array","items":{"properties":{"active_modifiers":{"type":"array","items":{"$ref":"#/definitions/Modifier"}},"item_variants":{"type":"array","items":{"$ref":"#/definitions/ItemVariant"}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"id":13588300,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.635000+07:00","is_deleted":false,"name":"Mobil VIA API Test create image to see response","description":"","image":{"url":"https://i.gojekapi.com/darkroom/moka-staging/v2/images/inventory/32459/611194/sample-image-5bbbe3e7.jpeg?w=480\u0026h=480\u0026fit=crop","is_new_image":false,"id":2172495,"width":853,"height":480},"business_id":32459,"category_id":15948453,"background_color":null,"outlet_id":611194,"guid":"91b93859-bad7-4dc6-aaaa-eadf14ab8123","uniq_id":null,"is_recipe":null,"brand_id":1590893,"brand_name":"Brand Default","is_ecommerce":true,"ecommerce_category_id":4,"condition":"New","weight":1000.0,"height":10.0,"width":10.0,"length":10.0,"item_variants":[{"id":22629075,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.642000+07:00","is_deleted":false,"name":"Merah","sku":"1202","price":null,"in_stock":100,"stock_alert":0,"position":0,"item_id":13588300,"add_inventory":0,"track_stock":false,"alert":false,"cogs":null,"outlet_id":611194,"guid":null,"uniq_id":null,"track_cogs":false,"is_saved":null,"is_recipe":false,"is_ingredient_in_stock":null,"is_generated":false,"sales_type_item_variants":[{"id":4923161,"created_at":"2022-12-05T13:01:34.649000+07:00","updated_at":"2022-12-05T13:01:34.650000+07:00","synchronized_at":"2022-12-05T13:01:34.650000+07:00","is_deleted":false,"sales_type_id":1388816,"item_variant_id":22629075,"business_id":32459,"outlet_id":611194,"price":105000,"sales_type":{"id":1388816,"created_at":"2022-12-02T10:27:14.696000Z","updated_at":"2022-12-02T10:27:14.696000Z","synchronized_at":"2022-12-02T10:27:14.713000Z","is_deleted":false,"business_id":32459,"outlet_id":611194,"name":"Sales Type Ginee","default_state":true,"active_state":true,"gratuity_applied_count":0,"has_business_level_entity":false,"gratuities":[]},"is_default":true}],"sales_type_items":[{"sales_type_id":1388816,"sales_type_name":"Sales Type Ginee","sales_type_price":105000,"is_variable_price":false}],"validation_errors":null,"item_variant_ecommerce_attributes":null,"has_cogs":false},{"id":22629076,"created_at":"2022-12-05T13:01:34.635000+07:00","updated_at":"2022-12-05T13:01:34.635000+07:00","synchronized_at":"2022-12-05T13:01:34.674000+07:00","is_deleted":false,"name":"Hitam","sku":"1203","price":null,"in_stock":1000,"stock_alert":0,"position":1,"item_id":13588300,"add_inventory":0,"track_stock":false,"alert":false,"cogs":null,"outlet_id":611194,"guid":null,"uniq_id":null,"track_cogs":false,"is_saved":null,"is_recipe":false,"is_ingredient_in_stock":null,"is_generated":false,"sales_type_item_variants":[{"id":4923162,"created_at":"2022-12-05T13:01:34.678000+07:00","updated_at":"2022-12-05T13:01:34.678000+07:00","synchronized_at":"2022-12-05T13:01:34.678000+07:00","is_deleted":false,"sales_type_id":1388816,"item_variant_id":22629076,"business_id":32459,"outlet_id":611194,"price":110000,"sales_type":{"id":1388816,"created_at":"2022-12-02T10:27:14.696000Z","updated_at":"2022-12-02T10:27:14.696000Z","synchronized_at":"2022-12-02T10:27:14.713000Z","is_deleted":false,"business_id":32459,"outlet_id":611194,"name":"Sales Type Ginee","default_state":true,"active_state":true,"gratuity_applied_count":0,"has_business_level_entity":false,"gratuities":[]},"is_default":true}],"sales_type_items":[{"sales_type_id":1388816,"sales_type_name":"Sales Type Ginee","sales_type_price":110000,"is_variable_price":false}],"validation_errors":null,"item_variant_ecommerce_attributes":null,"has_cogs":false}],"category":{"id":15948453,"created_at":"2022-12-02T17:14:12.791000+07:00","updated_at":"2022-12-02T17:14:12.786000+07:00","synchronized_at":"2022-12-02T17:14:12.791000+07:00","is_deleted":false,"name":"Category 1","description":null,"business_id":32459,"outlet_id":611194,"guid":"4c407d26-0366-4ac2-87f9-e34b2b1fdcf3","uniq_id":null,"items":[],"has_business_level_entity":false},"active_modifiers":null,"is_sales_type_price":true,"modifier_ids":null,"has_business_level_entity":false,"images":[{"raw_image_url":"https://file-public-staging.mokapos.com/inventory/32459/-original-7c4af47d.png","raw_image_id":2154649}],"pre_order_days":0,"gofood_sync_status":null,"remove_image":null}}}},"422":{"description":"Item not found or already deleted","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":422,"error_message":"Item does not found or already removed.","error_type":"Exception"}}}}},"security":[{"access_token":["library"]}],"description":"Delete items library. Required permissions: `library`","operationId":"deleteItemV1","tags":["Items"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"item_id","description":"Item's id","in":"path","required":true,"type":"integer"}]}},"/v1/outlets/{outlet_id}/items/image":{"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Image POS response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string"},"id":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"url":"https://i.gojekapi.com/darkroom/moka-staging/v2/images/inventory/32459/611194/image-created-with-a-mobile-phone-b27f8f30.png?w=480\u0026h=480\u0026fit=crop","id":2171856,"width":640,"height":480},"meta":{"code":200,"errors":{}}}}},"422":{"description":"Invalid image size","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":422,"error_message":"Item Validation error.Maximum POS Image size is 8MB","error_type":"Exception"}}}}},"security":[{"access_token":["library"]}],"description":"Upload item POS image. Required permissions: `library`","operationId":"uploadPOSImageV1","tags":["Items"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"checkout_api","in":"body","description":"Upload POS Image Request","required":true,"schema":{"$ref":"#/definitions/UploadItemImage"}}]}},"/v1/outlets/{outlet_id}/items/ecommerce-image":{"post":{"produces":["application/json"],"responses":{"200":{"description":"Image E-commerce Upload response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Data","properties":{"url":{"type":"string","description":"Image url"},"id":{"type":"string","description":"Image id"}}}}},"examples":{"success_upload":{"value":{"url":"https://i.gojekapi.com/darkroom/moka-staging/v2/images/inventory/32459/611194/image-created-with-a-mobile-phone-b27f8f30.png?w=480\u0026h=480\u0026fit=crop","id":2171856},"summary":"Success upload image"}}}}},"401":{"description":"The access token is invalid","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Data"},"meta":{"type":"object","description":"Metadata"}}},"examples":{"internal_server_error":{"value":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}},"summary":"The access token is invalid"}}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Data"},"meta":{"type":"object","description":"Metadata"}}},"examples":{"invalid_image_size":{"value":{"data":{},"meta":{"code":422,"error_message":"Maximum Image size is 8MB","error_type":"Exception"}},"summary":"Invalid Image size"},"invalid_dimension_size":{"value":{"data":{},"meta":{"code":422,"error_message":"Maximum Image dimension is 500x500px","error_type":"Exception"}},"summary":"Invalid Dimension size"}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Data"},"meta":{"type":"object","description":"Metadata"}}},"examples":{"internal_server_error":{"value":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}},"summary":"Internal Server Error"}}}}}},"security":[{"access_token":["library"]}],"description":"Upload item E-commerce image. Required permissions: `library`","operationId":"uploadEcommerceImageV1","tags":["Items"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"checkout_api","in":"body","description":"Upload Ecommerce Image Request","required":true,"schema":{"$ref":"#/definitions/UploadItemImage"}}]}},"/v1/outlets/{outlet_id}/modifiers":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Modifiers response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"modifier":{"type":"array","items":{"properties":{"active_options":{"$ref":"#/definitions/ModifierOption"},"active_item_modifiers":{"$ref":"#/definitions/ItemModifier"}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":9,"modifier":[{"id":2960,"business_id":1678,"name":"Modifer 2","is_deleted":false,"created_at":"2017-03-22T10:49:06.214+07:00","updated_at":"2017-12-14T17:31:46.493+07:00","outlet_id":2239,"guid":"fe98dfb4-ac4d-4c36-b2df-722e293b4467","uniq_id":null,"synchronized_at":"2017-12-14T17:31:46.493+07:00","min_no_of_options":1,"max_no_of_options":1,"active_options":[{"id":6483,"modifier_id":2960,"name":"WOI","price":1000,"is_deleted":false,"created_at":"2017-03-31T16:02:46.223+07:00","updated_at":"2017-04-05T14:38:26.345+07:00","position":1,"cogs":null,"outlet_id":null,"synchronized_at":"2017-04-05T14:37:59.879+07:00","guid":null,"uniq_id":null}],"active_item_modifiers":[{"id":30415,"item_id":755502,"modifier_id":2960,"is_deleted":false,"created_at":"2017-12-14T17:31:46.285+07:00","updated_at":"2017-12-14T17:31:46.285+07:00","synchronized_at":"2017-12-14T17:31:46.285+07:00"}]}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all modifiers on the outlet that the user has access to. Required permissions: `library`","operationId":"listModifiersV1","tags":["Modifiers"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]}},"/v1/businesses/{business_id}/outlets":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Outlets response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"outlets":{"type":"array","items":{"$ref":"#/definitions/Outlet"}},"total_count":{"type":"integer"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"outlets":[{"id":54964,"business_id":9,"name":"A","address":"sdgsdhsfh","phone_number":"0863793747","city":"fzzgxdhx","province":"zxvvzxfn","postal_code":"12234","latitude":null,"longitude":null,"is_deleted":false,"created_at":"2018-01-11T15:33:23.617+07:00","updated_at":"2018-01-11T15:33:23.617+07:00","synchronized_at":"2018-01-11T15:33:23.616+07:00","importing":false,"exporting":false,"notes":null,"start_date":"2018-01-02T10:45:53.629+07:00","end_date":"2019-01-01T00:00:00.000+07:00","is_paying":true}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["profile"]}],"description":"Returns current user outlets information. Required permissions: `profile`","operationId":"listOutletsInformationV1","tags":["Outlet"],"parameters":[{"name":"business_id","description":"The merchant's business ID","in":"path","required":true,"type":"integer"}]}},"/v1/outlets/{outlet_id}/reports/get_latest_transactions":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Latest transactions response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"next_url":{"type":"string"},"completed":{"type":"boolean"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"},"payment_taxes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"integer"},"total":{"type":"number"},"taxable_amount":{"type":"number"},"payment_id":{"type":"number"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"tax_id":{"type":"integer"}}}},"payment_gratuities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"number"},"total":{"type":"number"},"payment_id":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"gratuity_id":{"type":"string"}}}},"payment_discounts":{"type":"array","items":{"type":"object","description":"Discount applied to payment","properties":{"id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_id":{"type":"integer"},"discount_amount":{"type":"number"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"discount_cash":{"type":"number"}}}},"payment_refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"}}}},"checkouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"custom_amount":{"type":"number"},"item_variant_id":{"type":"integer"},"quantity":{"type":"integer"},"discount_amount":{"type":"number"},"tax_amount":{"type":"number"},"business_id":{"type":"integer"},"payment_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"item_id":{"type":"integer"},"item_discount":{"type":"integer"},"item_price_library":{"type":"number"},"item_price":{"type":"number"},"item_price_discount":{"type":"number"},"gratuity_amount":{"type":"number"},"item_price_discount_gratuity":{"type":"integer","format":"int64"},"total_price":{"type":"number"},"item_price_quantity":{"type":"number"},"category_name":{"type":"string"},"category_id":{"type":"integer"},"item_name":{"type":"string"},"item_variant_name":{"type":"string"},"sku":{"type":"string"},"note":{},"cogs":{"type":"number"},"gross_sales":{"type":"number"},"outlet_id":{"type":"integer"},"position":{"type":"integer"},"net_sales":{"type":"number"},"track_stock":{"type":"boolean"},"item_image":{"type":"string"},"parent_checkout_id":{},"is_recipe":{"type":"boolean"},"redeem_amount":{"type":"number"},"sales_type_id":{"type":"boolean"},"sales_type_name":{"type":"number"},"checkout_modifiers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"checkout_id":{"type":"integer"},"modifier_id":{"type":"integer"},"modifier_option_id":{"type":"integer"},"modifier_name":{"type":"string"},"modifier_option_name":{"type":"string"},"price":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"cogs":{"type":"integer","format":"int64"},"outlet_id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_amount":{"type":"integer"},"gross_sales":{"type":"number"},"net_sales":{"type":"number"},"discount_hash":{"type":"string"},"redeem_amount":{"type":"number"}}}},"checkout_discounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"checkout_id":{"type":"integer"},"discount_amount":{"type":"integer"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"discount_percentage":{"type":"integer"},"payment_id":{"type":"integer"},"discount_hash":{"type":"object"}}}}}}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"next_url":"https://api.mokapos.com/v1/outlets/2239/reports/get_latest_transactions?per_page=50\u0026mobile_device=true\u0026since=0.0\u0026until=1486361995.147691\u0026access_token=c10f32248339697b2ebb0e2aaa1e4159d02501c69560218e52d010e4782867d6","completed":false,"payments":[{"status":"Done","payment_no":"6H7DDA1","payment_type":"cash","amount_pay":100000.0,"amount_change":8000.0,"total_discount_amount":11400.0,"total_gratuity_amount":21040.0,"total_item_price_amount":0.0,"total_tax_amount":18410.0,"total_checkouts_amount":41150.0,"is_refunded":false,"refunded_reason":null,"refunded_date":null,"business_id":4011,"customer_id":null,"discount_id":null,"is_deleted":null,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:09:59.496+07:00","total_custom_price_amount":0.0,"include_gratuity_tax":false,"refund_amount":null,"refund_type":null,"card_no":null,"created_by":5658,"note":"","total_collected_amount":92000.0,"server_id":5658,"server_name":"Shintaaaa12 Shintaaaa","server_title":"Owner","auth_code":null,"cc_name":null,"card_type":null,"transaction_number":null,"transaction_reference":null,"outlet_id":4522,"guid":"AE074E8E-2E7C-4AB2-9AF3-97C514168132","synchronized_at":"2022-10-20T15:10:04.625+07:00","uniq_id":"141","transaction_certificate":null,"transaction_status_info":null,"merchant_id":null,"mpos_device_id":null,"pg_mid":null,"pg_setting":null,"order_info":null,"tvr":null,"cvm_result":null,"aid":null,"transaction_date":null,"pii":null,"collected_by":"Shintaaaa12 Shintaaaa","shift_id":null,"invoice_no":null,"invoice_deposit_amount":null,"invoice_due_date":null,"invoice_status":null,"latitude":-6.33664033,"longitude":106.70048647,"refund_ids":[],"total_gross_sales":64000.0,"total_net_sales":52600.0,"is_refund_breakdown":true,"customer_name":"","customer_email":"","customer_phone":"","subtotal":52600.0,"creator_name":"Shintaaaa12 Shintaaaa","table_name":"","collector_id":5658,"cashlezz_transaction_id":null,"sms_id":null,"receipt_count":null,"order_id":"141TH0006","is_loyalty":false,"total_redeem_amount":0.0,"is_offline":false,"is_sales_type":true,"server_created_at":"2022-10-20T15:10:04.645+07:00","total_rounding_amount":-50.0,"bill_id":null,"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT","uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","parent_payment_uuid":null,"source_type":null,"original_client_created_at":"2022-10-20T15:09:59.496+07:00","payment_taxes":[{"name":"Pajak","amount":5.0,"total":3682.0,"taxable_amount":73640.0,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:10:04.645+07:00","tax_id":206833,"uuid":"70dc1a50-383c-4f80-8a72-629918acee05","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a"}],"payment_gratuities":[{"name":"Frea","amount":25.0,"total":13150.0,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:10:04.645+07:00","gratuity_id":592604,"uuid":"29adcaac-fe69-41a5-9ac1-d4a2f9b1c8a0","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a"}],"payment_discounts":[{"discount_id":429550,"discount_amount":5000.0,"discount_name":"Rupiah Ini","discount_type":"cash","is_deleted":null,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:09:48.755+07:00","discount_cash":5000.0,"uuid":"ab559058-784f-4e83-b27d-1e91bcac7a27","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a"}],"payment_refunds":[{"status":"Done","payment_no":"6H7DDA1","payment_type":"cash","amount_pay":0.0,"amount_change":0.0,"total_discount_amount":-11400.0,"total_gratuity_amount":-21040.0,"total_item_price_amount":0.0,"total_tax_amount":-18410.0,"total_checkouts_amount":-41150.0,"is_refunded":true,"refunded_reason":"Cancelled Order","refunded_date":"2022-10-20T15:10:53.357+07:00","business_id":4011,"customer_id":null,"discount_id":null,"is_deleted":false,"created_at":"2022-10-20T15:10:53.000+07:00","updated_at":"2022-10-20T15:10:53.000+07:00","total_custom_price_amount":0.0,"include_gratuity_tax":false,"refund_amount":52600.0,"refund_type":"full","card_no":null,"created_by":5658,"note":"","total_collected_amount":-92000.0,"server_id":5658,"server_name":"Shintaaaa12 Shintaaaa","server_title":"Owner","auth_code":null,"cc_name":null,"card_type":null,"transaction_number":null,"transaction_reference":null,"outlet_id":4522,"guid":"1a7b64af-52c0-4dbd-9b07-a897a36b5848","synchronized_at":"2022-10-20T15:10:53.356+07:00","uniq_id":null,"transaction_certificate":null,"transaction_status_info":null,"merchant_id":null,"mpos_device_id":null,"pg_mid":null,"pg_setting":null,"order_info":null,"tvr":null,"cvm_result":null,"aid":null,"transaction_date":null,"pii":null,"collected_by":"Shintaaaa12 Shintaaaa","shift_id":null,"invoice_no":null,"invoice_deposit_amount":null,"invoice_due_date":null,"invoice_status":null,"latitude":-6.33664033,"longitude":106.70048647,"refund_ids":[],"total_gross_sales":-64000.0,"total_net_sales":-52600.0,"is_refund_breakdown":true,"customer_name":"","customer_email":"","customer_phone":"","subtotal":-52600.0,"creator_name":"Shintaaaa12 Shintaaaa","table_name":"","collector_id":null,"cashlezz_transaction_id":null,"sms_id":null,"receipt_count":0,"order_id":null,"is_loyalty":false,"total_redeem_amount":0.0,"is_offline":null,"is_sales_type":true,"server_created_at":"2022-10-20T15:10:53.359+07:00","total_rounding_amount":50.0,"bill_id":null,"tax_type":"AFTER_DISCOUNT","gratuity_type":"AFTER_DISCOUNT","uuid":"4856035c-a7d7-402c-8512-43f6dcbcf90a","parent_payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","source_type":null,"original_client_created_at":null}],"checkouts":[{"custom_amount":0.0,"item_variant_id":1784869,"quantity":1,"discount_amount":11400.0,"tax_amount":18410.0,"business_id":4011,"is_deleted":false,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:10:04.625+07:00","item_id":1181590,"item_discount":0,"item_price_library":64000.0,"item_price":64000.0,"item_price_discount":52600.0,"gratuity_amount":21040.0,"item_price_discount_gratuity":0,"total_price":52600.0,"item_price_quantity":64000.0,"category_name":"Beverage","category_id":94185,"item_name":"Ice Cappucino","item_variant_name":"","sku":"","note":null,"cogs":0.0,"gross_sales":64000.0,"outlet_id":4522,"position":0,"net_sales":52600.0,"track_stock":false,"item_image":"","is_recipe":false,"redeem_amount":0.0,"sales_type_id":807678,"sales_type_name":"Kaki lima","is_program_item":false,"uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a","parent_checkout_uuid":null,"bundle_id":null,"item_type":null,"checkout_bundle_id":null,"bundle_name":null,"brand_id":null,"brand_name":null,"checkout_modifiers":[{"modifier_id":16682,"modifier_option_id":94449,"modifier_name":"Topping Manis","modifier_option_name":"Manis 2","price":2000,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":"2022-10-20T15:09:01.826+07:00","cogs":null,"outlet_id":4522,"discount_amount":356.25,"gross_sales":2000.0,"net_sales":1643.75,"discount_hash":[{"discount_id":429549,"discount_type":"percentage","discount_name":"Percent Lah Cok","discount_percentage":10.0,"discount_cash":0,"discount_amount":200,"discount_guid":null,"created_at":"2022-10-20T08:09:06.122+00:00","updated_at":"2022-10-20T08:09:06.122+00:00"}],"redeem_amount":0.0,"uuid":"6ff0bd8f-77f2-491f-b6f5-303ac3defe10","checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a"}],"checkout_discounts":[{"discount_id":0,"is_deleted":false,"created_at":"2022-10-20T15:09:59.496+07:00","updated_at":null,"discount_amount":11400,"discount_name":"All Discount","discount_type":"Rupiah and Percentage","discount_percentage":0.0,"discount_hash":[{"discount_id":429549,"discount_type":"percentage","discount_name":"Percent Lah Cok","discount_percentage":10.0,"discount_cash":0,"discount_amount":6400,"discount_guid":null,"created_at":"2022-10-20T08:09:06.122+00:00","updated_at":"2022-10-20T08:09:06.122+00:00"}],"uuid":"48dbed43-dafe-4a7b-8572-a4f6f9dff719","checkout_uuid":"c1d8102b-7612-4ac6-a041-6e7a8b029820","payment_uuid":"63428a08-86a8-4f64-915a-d2fd2c6e076a"}]}]}]}}}}},"security":[{"access_token":["transaction"]}],"description":"\u003cb style='color:red'\u003eDeprecated API. We will no longer provide support for showLatestTransactionsV1. Please use showLatestTransactionsV2.\u003c/b\u003e\u003cbr/\u003e:Returns all sales transactions of an outlet sorted by the newest one first. Required permissions: `transaction`","operationId":"showLatestTransactionsV1","tags":["Latest Transaction"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"time_filter","in":"query","description":"Type of fitler to be used by start and end parameters {created_at, updated_at, synchronized_at}","required":false,"type":"string"}]}},"/v1/outlets/{outlet_id}/reports/transactions":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Report transactions response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"payments":{"type":"array","items":{"properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"}}}},"gross_sales":{"type":"number"},"discounts":{"type":"number"},"refunds":{"type":"number"},"net_sales":{"type":"number"},"gratuity":{"type":"number"},"tax":{"type":"number"},"total_collected":{"type":"number"},"number_of_transactions":{"type":"integer"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"payments":[{}],"gross_sales":10020634000,"discounts":1006814250.0,"refunds":0,"net_sales":9013819750.0,"gratuity":405676672.36,"tax":1507217288.2320006,"total_collected":10927623709.825005,"number_of_transactions":66},"meta":{"code":200,"errors":{}}}}},"default":{"description":"Server Error","schema":{"$ref":"#/definitions/ErrorModel"}}},"security":[{"access_token":["transaction"]}],"description":"\u003cb style='color:red'\u003eDeprecated API. We will no longer provide support for showTransactionsV1. Please use showLatestTransactionsV2.\u003c/b\u003e\u003cbr/\u003eReturn all sales transactions for selected date range on the selected outlet. Required permissions: `transaction`","operationId":"showTransactionsV1","tags":["Transaction"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"reorder_type","in":"query","description":"Sort results in ascending or descending order {ASC, DESC}","required":false,"type":"string"}]}},"/v1/outlets/{outlet_id}/reports/sales_types":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Sales type response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"sales_types":{"type":"array","items":{"type":"object","properties":{"sales_type":{"type":"string","description":"Sales type name"},"count":{"type":"integer","description":"Number of payments which uses respective sales type"},"total_collected":{"type":"integer","description":"Total collected of payments which uses respective sales type"}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"sales_types":[{"sales_type":"Dine In","count":2,"total_collected":90015.2},{"sales_type":"Take Away","count":1,"total_collected":66000}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["report"]}],"description":"Returns sales report for each sales type on an outlet. Required permissions: `report`","operationId":"salesTypeReport","tags":["Sales Type"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"}]}},"/v1/outlets/{outlet_id}/taxes":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Taxes response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"tax":{"type":"array","items":{"$ref":"#/definitions/Tax"}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_count":6,"tax":[{"id":8077,"name":"ASD","amount":12.0,"business_id":1678,"is_deleted":false,"created_at":"2017-07-07T14:52:02.504+07:00","updated_at":"2017-07-07T14:52:02.504+07:00","outlet_id":2239,"guid":"dc4209b1-6aa6-4563-bbed-463fce516886","uniq_id":null,"synchronized_at":"2017-07-07T14:46:28.157+07:00"}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all taxes on the outlet that the user has access to. Required permissions: `library`","operationId":"listTaxesV1","tags":["Taxes"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"},{"name":"include_deleted","in":"query","description":"Boolean to include deleted elements","required":false,"type":"boolean"}]}},"/v1/profile/self":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"User response","schema":{"properties":{"id":{"type":"integer"},"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"full_name":{"type":"string"},"business_id":{"type":"integer"},"business_name":{"type":"string"},"outlet_ids":{"type":"array","items":{"type":"integer"}},"outlet_names":{"type":"array","items":{"type":"string"}}}},"examples":{"application/json":{"id":3033,"email":"test@mokapos.com","first_name":"Michael","last_name":"Bay","full_name":"Michael","business_id":1678,"business_name":"Pizza Hit","outlet_ids":[3571],"outlet_names":["Chadwick Stanton"]}}}},"security":[{"access_token":["profile"]}],"description":"Returns current user information that logged in. Required permissions: `profile`","operationId":"showUserInformation","tags":["Users"]}},"/v1/outlets/{outlet_id}/sales_type":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Sales type response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"results":{"type":"array"}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":6,"results":[{"id":3291,"created_at":"2018-11-19T16:38:21.038+07:00","updated_at":"2018-11-19T16:38:21.038+07:00","synchronized_at":"2018-11-19T16:38:21.090+07:00","is_deleted":false,"business_id":76,"outlet_id":1044,"name":"alloutletSalesType","default_state":true,"active_state":true,"gratuity_applied_count":1,"gratuities":[{"id":4554,"created_at":"2017-10-06T13:43:54.357+07:00","updated_at":"2018-04-09T19:13:08.312+07:00","deleted_at":null,"synchronized_at":"2018-04-09T19:13:08.312+07:00","is_deleted":false,"name":"Dine In","amount":"8","outlet_id":1044,"business_id":76,"guid":"5ab2d8bd-ed68-49aa-818e-f65a6a868acd","uniq_id":null}],"deleted_at":null}],"total_count":6},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["profile"]}],"description":"Return all sales type on a merchant's outlet. Required permissions: `library`","operationId":"listSalesType","tags":["Sales Type"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"since","in":"query","description":"The initial range of time in Epoch format","required":false,"type":"float"},{"name":"until","in":"query","description":"The ending range of time in Epoch format","required":false,"type":"float"}]},"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Sales type response","schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"id":3291,"created_at":"2018-11-19T16:38:21.038+07:00","updated_at":"2018-11-19T16:38:21.038+07:00","synchronized_at":"2018-11-19T16:38:21.090+07:00","is_deleted":false,"business_id":76,"outlet_id":1044,"name":"alloutletSalesType","default_state":true,"active_state":true,"gratuity_applied_count":1,"gratuities":[{"id":4554,"created_at":"2017-10-06T13:43:54.357+07:00","updated_at":"2018-04-09T19:13:08.312+07:00","deleted_at":null,"synchronized_at":"2018-04-09T19:13:08.312+07:00","is_deleted":false,"name":"Dine In","amount":"8","outlet_id":1044,"business_id":76,"guid":"5ab2d8bd-ed68-49aa-818e-f65a6a868acd","uniq_id":null}],"deleted_at":null},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["profile"]}],"description":"Create sales type on a specified merchant's outlet. Required permissions: `library`","operationId":"createSalesType","tags":["Sales Type"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"sales_type_api","in":"body","description":"Sales type JSON request","required":true,"schema":{"$ref":"#/definitions/SalesType"}}]}},"/v1/outlets/{outlet_id}/sales_type/{id}":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Sales type response","schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"id":3291,"created_at":"2018-11-19T16:38:21.038+07:00","updated_at":"2018-11-19T16:38:21.038+07:00","synchronized_at":"2018-11-19T16:38:21.090+07:00","is_deleted":false,"business_id":76,"outlet_id":1044,"name":"alloutletSalesType","default_state":true,"active_state":true,"gratuity_applied_count":1,"gratuities":[{"id":4554,"created_at":"2017-10-06T13:43:54.357+07:00","updated_at":"2018-04-09T19:13:08.312+07:00","deleted_at":null,"synchronized_at":"2018-04-09T19:13:08.312+07:00","is_deleted":false,"name":"Dine In","amount":"8","outlet_id":1044,"business_id":76,"guid":"5ab2d8bd-ed68-49aa-818e-f65a6a868acd","uniq_id":null}],"deleted_at":null},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["profile"]}],"description":"Return the detail of a sales type in a merchant's outlet. Required permissions: `library`","operationId":"salesTypeDetail","tags":["Sales Type"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"sales_type_id","in":"path","description":"The sales type ID","required":true,"type":"integer"}]}},"/v1/outlets/{outlet_id}/sync_bills/":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"429":{"description":"Too many request","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":429,"error_message":"Quota limit exceeded","error_type":"Too Many Request"}}}},"200":{"description":"Sync bill response","schema":{"properties":{"data":{"type":"object","description":"Sync Bill data","properties":{"id":{"type":"integer","description":"Bill ID"},"guid":{"type":"string","description":"GUID of the device that created the bill"},"name":{"type":"string","description":"Bill Name"},"createdAt":{"type":"string","description":"Timestamp at which the bill was created"},"updatedAt":{"type":"string","description":"Timestamp at which the bill was last updated"},"synchronizedAt":{"type":"string","description":"Timestamp at which the Bill did the last sync or the latest timestamp when the device fetched data from Moka for the given bill"},"status":{"type":"string","description":"Bill status. Possible status values are: PENDING, COMPLETE or CANCELLED"},"outletId":{"type":"integer","description":"Moka merchant outlet ID"},"tableId":{"type":"integer","description":"Table ID for the bill. TableID is 0 if it is not a dine in order"},"cancelledBy":{"type":"string","description":"Name of server that cancelled the bill"},"cancelledAt":{"type":"string","description":"Timestamp at which the given Bill was cancelled"},"cancelledReason":{"type":"string","description":"Notes on why the bill was cancelled"},"serveBy":{"type":"integer","description":"Server ID of the server that managed the bill"},"pax":{"type":"integer","description":"Server ID of the server that managed the bill"},"receiptNo":{"type":"string","description":"Receipt number of the bill after checkout"},"bill_detail":{"type":"object","description":"Displays detailed information about the bills including item and table details. Enable the deep parameter to get this information","properties":{"id":{"type":"integer","description":"Bill ID"},"name":{"type":"string","description":"Bill Name"},"server_name":{"type":"string","description":"Name of the server that managed the bill"},"updatedAt":{"type":"string","description":"Timestamp at which the bill was last updated"},"bill_sub_total_amount":{"type":"float","description":"Subtotal amount of the bill before taxes"},"bill_total_amount":{"type":"float","description":"Grand total amount of the bill"},"items":{"type":"array","description":"List of all the items purchased in the bill","items":{"type":"object","properties":{"id":{"type":"integer","description":"Item variant ID"},"name":{"type":"string","description":"Item variant name"},"category_id":{"type":"integer","description":"Item Category ID"},"quantity":{"type":"integer","description":"The quantity purchased for the given item"},"sales_type":{"type":"string","description":"Sales type for the given item"},"synchronizedAt":{"type":"string","description":"Timestamp at which the Bill did the last sync or the latest timestamp when the device fetched data from Moka for the given bill"},"modifier_id":{"type":"integer","description":"Item modifier ID"},"modifier_name":{"type":"string","description":"Item modifier name"},"modifier_option_id":{"type":"integer","description":"Item modifier option ID"},"modifier_option_name":{"type":"string","description":"Item modifier option name"},"modifier_options":{"type":"array","description":"List of all modifier options used","items":{}},"active_modifiers":{"type":"array","description":"Item modifiers that were used for the given item for the bill","items":{}},"price":{"type":"float","description":"Item price given the variant"},"track_stock":{"type":"boolean","description":"Flag to indicate whether this item variant is being tracked for stock"},"item_variants":{"type":"array","description":"Item variants that were used for the given item for the bill","items":{}}}}},"createdByDevice":{"type":"string","description":"GUID of the device that created the bill"},"updatedByDevice":{"type":"string","description":"GUID of the device that last updated the bill"},"cancelledByName":{"type":"string","description":"Name of the server that cancelled the bill"},"tableGroupId":{"type":"integer","description":"Table Group ID"},"tableName":{"type":"string","description":"Table name"},"tableGroupName":{"type":"string","description":"Table group name"},"serveByName":{"type":"string","description":"Name of the server that managed the bill"},"tableId":{"type":"integer","description":"Table ID"},"tables":{"type":"array","description":"Table information","items":{}}}}}}}},"examples":{"application/json":{"data":[{"id":12582,"guid":"8333985C-1206-4C64-A608-AD4C394B15B5","name":"1F","createdAt":"2019-06-25T13:43:03.385+07:00","updatedAt":"2019-06-25T14:22:11.761+07:00","synchronizedAt":"2019-06-25T14:22:17.290+07:00","status":"COMPLETE","outletId":4522,"tableId":2120,"cancelledBy":"null","cancelledAt":"null","cancelledReason":"null","serveBy":5658,"pax":72,"receiptNo":"2MA87RB","billDetail":{"id":12582,"bill_name":"1F","server_name":"Shintaaaa12 Shintaaaa","updated_at":"2019-06-25T14:22:11.000+07:00","bill_sub_total_amount":203999.998,"bill_total_amount":"258059.998","items":[{"id":3235816,"name":"Bakpao Babii","category_id":102929,"quantity":"1","sales_type":"Dine In","synchronized_at":"2019-06-25T14:22:17.000+07:00","active_modifiers":[],"item_variants":[{"id":1973538,"name":"Bakpao Babii","price":15000.0,"track_stock":false}]},{"id":3235817,"name":"Bakpao Tausa","category_id":102929,"quantity":"1","sales_type":"Dine In","synchronized_at":"2019-06-25T14:22:17.000+07:00","active_modifiers":[],"item_variants":[{"id":1973539,"name":"Bakpao Tausa","price":10000.0,"track_stock":false}]},{"id":1181590,"name":"Ice Cappucino","category_id":94185,"quantity":"5","sales_type":"Dine In","synchronized_at":"2019-06-25T14:22:17.000+07:00","active_modifiers":[{"modifier_id":17042,"modifier_name":"Topping Buah","modifier_options":[{"modifier_option_id":95338,"modifier_option_name":"Mangga"},{"modifier_option_id":95339,"modifier_option_name":"Strawberry"},{"modifier_option_id":95340,"modifier_option_name":"Kiwi"}]},{"modifier_id":16682,"modifier_name":"Topping Manis","modifier_options":[{"modifier_option_id":94448,"modifier_option_name":"Manis 1"},{"modifier_option_id":94449,"modifier_option_name":"Manis 2"}]}],"item_variants":[{"id":1784869,"name":"Ice Cappucino","price":20000.0,"track_stock":false}]}]},"createdByDevice":"5ED6B33D-86BD-4457-91C1-377040849577","updatedByDevice":"5ED6B33D-86BD-4457-91C1-377040849577","cancelledByName":"null","tableGroupId":601,"tableName":"1F","tableGroupName":"Lantai 1A","serveByName":"Shintaaaa12 Shintaaaa","tables":[{"tableId":2120,"tableGroupId":601,"tableName":"1F","tableGroupName":"Lantai 1A"}]},{"id":12587,"guid":"C624C8E5-220B-4A30-87DA-01FB8FBCFC7D","name":"1A","createdAt":"2019-06-25T13:48:48.657+07:00","updatedAt":"2019-06-25T14:21:40.035+07:00","synchronizedAt":"2019-06-25T14:21:46.436+07:00","status":"COMPLETE","outletId":4522,"tableId":2115,"cancelledBy":"null","cancelledAt":"null","cancelledReason":"null","serveBy":5658,"pax":838,"receiptNo":"2MA87R7","billDetail":{"id":12587,"bill_name":"1A","server_name":"Shintaaaa12 Shintaaaa","updated_at":"2019-06-25T14:21:40.000+07:00","bill_sub_total_amount":51086.062,"bill_total_amount":"64623.868","items":[{"id":3235816,"name":"Bakpao Babii","category_id":102929,"quantity":"3","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":1973538,"name":"Bakpao Babii","price":15000.0,"track_stock":false}]},{"id":3235817,"name":"Bakpao Tausa","category_id":102929,"quantity":"5","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":1973539,"name":"Bakpao Tausa","price":10000.0,"track_stock":false}]},{"id":4729026,"name":"bubble tea for life","category_id":94065,"quantity":"4","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":9439027,"name":"lyfeee12","price":7000.0,"track_stock":false}]},{"id":4697366,"name":"Fanta","category_id":99941,"quantity":"4","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":9402342,"name":"Fanta Ijo","price":3000.0,"track_stock":false}]},{"id":4697366,"name":"Fanta","category_id":99941,"quantity":"3","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":9402341,"name":"Fanta Merah","price":2500.0,"track_stock":false}]},{"id":1200633,"name":"Coklat Panas","category_id":94191,"quantity":"2","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[{"modifier_id":17042,"modifier_name":"Topping Buah","modifier_options":[{"modifier_option_id":95338,"modifier_option_name":"Mangga"},{"modifier_option_id":95340,"modifier_option_name":"Kiwi"}]},{"modifier_id":16682,"modifier_name":"Topping Manis","modifier_options":[{"modifier_option_id":94448,"modifier_option_name":"Manis 1"}]}],"item_variants":[{"id":1810145,"name":"Coklat Panas","price":1.0,"track_stock":false}]},{"id":670447,"name":"Custom Amount","category_id":20996,"quantity":"1","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":1158634,"name":"Custom Amount","price":20000.0,"track_stock":false}]}]},"createdByDevice":"5ED6B33D-86BD-4457-91C1-377040849577","updatedByDevice":"5ED6B33D-86BD-4457-91C1-377040849577","cancelledByName":"null","tableGroupId":601,"tableName":"1A","tableGroupName":"Lantai 1A","serveByName":"Shintaaaa12 Shintaaaa","tables":[{"tableId":2115,"tableGroupId":601,"tableName":"1A","tableGroupName":"Lantai 1A"}]}],"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["transaction"]}],"description":"Returns all open bill list of an outlet.","operationId":"listBillsV1","tags":["Sync Bills"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"sort","in":"query","description":"Sorts the result in ascending or descending order based on a given request parameter. Format of parameter: param_to_sort_by, ASC/DESC. Example: updated_at,DESC","required":false,"type":"string"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"last_pull","in":"query","description":"Returns only the bills that were synced at given timestamp","required":false,"type":"string"},{"name":"statuses","in":"query","description":"Returns only the bills that have bill status according to the given status value. Valid status values are: PENDING, COMPLETE, CANCELLED","required":false,"type":"array_string"},{"name":"dine_in_only","in":"query","description":"Returns only bills that are assigned with a table. By default, dine_in_only is false and will return all bills (assigned with and without a table)","required":false,"type":"boolean"},{"name":"deep","in":"query","description":"Returns item details that include informatio of item_variants and item_modifiers nof the bill.","required":false,"type":"boolean"}]}},"/v1/outlets/{outlet_id}/sync_bills/{bill_id}":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"429":{"description":"Too many request","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":429,"error_message":"Quota limit exceeded","error_type":"Too Many Request"}}}},"200":{"description":"Sync bill response","schema":{"properties":{"data":{"type":"object","description":"Sync Bill data","properties":{"id":{"type":"integer","description":"Bill ID"},"guid":{"type":"string","description":"GUID of the device that created the bill"},"name":{"type":"string","description":"Bill Name"},"createdAt":{"type":"string","description":"Timestamp at which the bill was created"},"updatedAt":{"type":"string","description":"Timestamp at which the bill was last updated"},"synchronizedAt":{"type":"string","description":"Timestamp at which the Bill did the last sync or the latest timestamp when the device fetched data from Moka for the given bill"},"status":{"type":"string","description":"Bill status. Possible status values are: PENDING, COMPLETE or CANCELLED"},"outletId":{"type":"integer","description":"Moka merchant outlet ID"},"tableId":{"type":"integer","description":"Table ID for the bill. TableID is 0 if it is not a dine in order"},"cancelledBy":{"type":"string","description":"Name of server that cancelled the bill"},"cancelledAt":{"type":"string","description":"Timestamp at which the given Bill was cancelled"},"cancelledReason":{"type":"string","description":"Notes on why the bill was cancelled"},"serveBy":{"type":"integer","description":"Server ID of the server that managed the bill"},"pax":{"type":"integer","description":"Server ID of the server that managed the bill"},"receiptNo":{"type":"string","description":"Receipt number of the bill after checkout"},"bill_detail":{"type":"object","description":"Displays detailed information about the bills including item and table details. Enable the deep parameter to get this information","properties":{"id":{"type":"integer","description":"Bill ID"},"name":{"type":"string","description":"Bill Name"},"server_name":{"type":"string","description":"Name of the server that managed the bill"},"updatedAt":{"type":"string","description":"Timestamp at which the bill was last updated"},"bill_sub_total_amount":{"type":"float","description":"Subtotal amount of the bill before taxes"},"bill_total_amount":{"type":"float","description":"Grand total amount of the bill"},"items":{"type":"array","description":"List of all the items purchased in the bill","items":{"type":"object","properties":{"id":{"type":"integer","description":"Item variant ID"},"name":{"type":"string","description":"Item variant name"},"category_id":{"type":"integer","description":"Item Category ID"},"quantity":{"type":"integer","description":"The quantity purchased for the given item"},"sales_type":{"type":"string","description":"Sales type for the given item"},"synchronizedAt":{"type":"string","description":"Timestamp at which the Bill did the last sync or the latest timestamp when the device fetched data from Moka for the given bill"},"modifier_id":{"type":"integer","description":"Item modifier ID"},"modifier_name":{"type":"string","description":"Item modifier name"},"modifier_option_id":{"type":"integer","description":"Item modifier option ID"},"modifier_option_name":{"type":"string","description":"Item modifier option name"},"modifier_options":{"type":"array","description":"List of all modifier options used","items":{}},"active_modifiers":{"type":"array","description":"Item modifiers that were used for the given item for the bill","items":{}},"price":{"type":"float","description":"Item price given the variant"},"track_stock":{"type":"boolean","description":"Flag to indicate whether this item variant is being tracked for stock"},"item_variants":{"type":"array","description":"Item variants that were used for the given item for the bill","items":{}}}}},"createdByDevice":{"type":"string","description":"GUID of the device that created the bill"},"updatedByDevice":{"type":"string","description":"GUID of the device that last updated the bill"},"cancelledByName":{"type":"string","description":"Name of the server that cancelled the bill"},"tableGroupId":{"type":"integer","description":"Table Group ID"},"tableName":{"type":"string","description":"Table name"},"tableGroupName":{"type":"string","description":"Table group name"},"serveByName":{"type":"string","description":"Name of the server that managed the bill"},"tableId":{"type":"integer","description":"Table ID"},"tables":{"type":"array","description":"Table information","items":{}}}}}}}},"examples":{"application/json":{"data":{"id":12587,"guid":"C624C8E5-220B-4A30-87DA-01FB8FBCFC7D","name":"1A","createdAt":"2019-06-25T13:48:48.657+07:00","updatedAt":"2019-06-25T14:21:40.035+07:00","synchronizedAt":"2019-06-25T14:21:46.436+07:00","status":"COMPLETE","outletId":4522,"tableId":2115,"cancelledBy":"null","cancelledAt":"null","cancelledReason":"null","serveBy":5658,"pax":838,"receiptNo":"2MA87R7","billDetail":{"id":12587,"bill_name":"1A","server_name":"Shintaaaa12 Shintaaaa","updated_at":"2019-06-25T14:21:40.000+07:00","bill_sub_total_amount":51086.062,"bill_total_amount":"64623.868","items":[{"id":3235816,"name":"Bakpao Babii","category_id":102929,"quantity":"3","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":1973538,"name":"Bakpao Babii","price":15000.0,"track_stock":false}]},{"id":3235817,"name":"Bakpao Tausa","category_id":102929,"quantity":"5","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":1973539,"name":"Bakpao Tausa","price":10000.0,"track_stock":false}]},{"id":4729026,"name":"bubble tea for life","category_id":94065,"quantity":"4","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":9439027,"name":"lyfeee12","price":7000.0,"track_stock":false}]},{"id":4697366,"name":"Fanta","category_id":99941,"quantity":"4","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":9402342,"name":"Fanta Ijo","price":3000.0,"track_stock":false}]},{"id":4697366,"name":"Fanta","category_id":99941,"quantity":"3","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":9402341,"name":"Fanta Merah","price":2500.0,"track_stock":false}]},{"id":1200633,"name":"Coklat Panas","category_id":94191,"quantity":"2","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[{"modifier_id":17042,"modifier_name":"Topping Buah","modifier_options":[{"modifier_option_id":95338,"modifier_option_name":"Mangga"},{"modifier_option_id":95340,"modifier_option_name":"Kiwi"}]},{"modifier_id":16682,"modifier_name":"Topping Manis","modifier_options":[{"modifier_option_id":94448,"modifier_option_name":"Manis 1"}]}],"item_variants":[{"id":1810145,"name":"Coklat Panas","price":1.0,"track_stock":false}]},{"id":670447,"name":"Custom Amount","category_id":20996,"quantity":"1","sales_type":"Dine In","synchronized_at":"2019-06-25T14:21:46.000+07:00","active_modifiers":[],"item_variants":[{"id":1158634,"name":"Custom Amount","price":20000.0,"track_stock":false}]}]},"createdByDevice":"5ED6B33D-86BD-4457-91C1-377040849577","updatedByDevice":"5ED6B33D-86BD-4457-91C1-377040849577","cancelledByName":"null","tableGroupId":601,"tableName":"1A","tableGroupName":"Lantai 1A","serveByName":"Shintaaaa12 Shintaaaa","tables":[{"tableId":2115,"tableGroupId":601,"tableName":"1A","tableGroupName":"Lantai 1A"}]},"meta":{"code":200,"errors":{}}}}},"404":{"description":"Bill ID not found","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":404,"error_message":"Bill 31415 is not found","error_type":"ApiErrors::ResourceNotFoundError"}}}}},"security":[{"access_token":["transaction"]}],"description":"Returns the detail of a bill given a bill ID.","operationId":"listBillByIDV1","tags":["Sync Bills"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"bill_id","in":"path","description":"Bill ID","required":true,"type":"integer"}]}},"/v1/quotas":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Quota response","schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"application_id":"126","resource":"sync_bill","quota":3,"refresh_at":{}},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["profile"]}],"description":"Returns remaining quota of an outlet when calling certain API.","operationId":"showQuotaInformationV1","tags":["Quota"],"parameters":[{"name":"resource","in":"path","description":"The API resource. Example: sync_bill","required":true,"type":"string"}]}},"/v1/outlets/{outlet_id}/promos":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Promos response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"promos":{"type":"array","items":{"type":"object","description":"Promo API Response Data","properties":{"business_id":{"type":"integer","example":1678},"outlet_id":{"type":"integer","example":2604},"outlet_name":{"type":"string","example":"Outlet 1"},"promo_id":{"type":"integer","example":930},"promo_name":{"type":"string","example":"Monday Madness"},"promo_type":{"type":"string","example":"Buy X Get Y"},"promo_description":{"type":"string","example":"Customers get a discount or a free item when they meet the set requirements."},"promo_start_date":{"type":"string","example":"06/08/2019"},"promo_end_date":{"type":"string","example":"31/08/2019"},"promo_status":{"type":"string","example":"False"},"promo_requirement":{"type":"array","items":{"type":"object","properties":{"requirement_quantity":{"type":"float","example":4.0},"requirement_type":{"type":"string","example":"ITEM_VARIANT"},"requirement_item_name":{"type":"string","example":"Air"},"requirement_item_variant":{"type":"string","example":"Putih"}}}},"promo_reward":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"float","example":4.0},"reward_type":{"type":"string","example":"ITEM_VARIANT"},"reward_item_name":{"type":"string","example":"Fanta"},"reward_item_variant":{"type":"string","example":"Merah"}}}},"promo_configuration":{"type":"array","items":{"type":"object","properties":{"promo_multiplication":{"type":"string","example":"True"},"promo_days":{"type":"array","items":{"type":"string"},"example":"[Monday, Tuesday, Saturday, Sunday]"}}}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"promos":[{"business_id":3322,"outlet_id":5093,"outlet_name":"Outlet 1","promo_id":2047,"promo_name":"2 Ayam Free Fanta","promo_type":"Buy X Get Y","promo_description":"Customers get a discount or a free item when they meet the set requirements.","promo_start_date":"24/07/2019","promo_end_date":"31/08/2019","promo_status":"Inactive","promo_requirement":[{"requirement_quantity":2.0,"requirement_type":"ITEM","requirement_item_name":"Ayam"}],"promo_reward":[{"amount":1,"reward_type":"ITEM","reward_item_name":"Fanta"}],"promo_configuration":{"promo_multiplication":true,"promo_days":"Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday"}},{"business_id":3322,"outlet_id":5093,"outlet_name":"Outlet 1","promo_id":2048,"promo_name":"Jus Jeruk + Apel 10%","promo_type":"Buy X Get Y","promo_description":"Customers get a discount or a free item when they meet the set requirements.","promo_start_date":"24/07/2019","promo_end_date":"31/08/2019","promo_status":"Inactive","promo_requirement":[{"requirement_quantity":1.0,"requirement_type":"ITEM_VARIANT","requirement_item_name":"Jus","requirement_item_variant":"Apel"},{"requirement_quantity":1.0,"requirement_type":"ITEM_VARIANT","requirement_item_name":"Jus","requirement_item_variant":"Jeruk"}],"promo_reward":[{"discount":10.0,"discount_type":"PERCENTAGE"}],"promo_configuration":{"promo_multiplication":true,"promo_days":"Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday"}}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Returns all promos on the outlets that the user has access to. Required permissions: `library`\u003cbr/\u003e\u003cbr/\u003e\u003cb\u003eNOTE:\u003c/b\u003e `promo_status` may be displayed as active even though the current date and time is not between `promo_start_date` and `promo_end_date`.\u003cbr/\u003e\u003cbr/\u003e\nIf a promo is not deactivated in Backoffice and current date is not in range between `start_date` and `end_date`, then `promo_status` will be Active. However, we treat this type of promo as Inactive in Backoffice. Therefore, please beware as these promos are already expired.","operationId":"listPromosV1","tags":["Promos"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"active","in":"query","description":"Flag whether to list only active or inactive promos. If empty, list both active and inactive.","required":false,"type":"boolean"},{"name":"since","in":"query","description":"The initial range of time in Epoch format \u003cbr\u003e (This parameter can be used without until)","required":false,"type":"float"},{"name":"since","in":"query","description":"The initial range of time in Epoch format \u003cbr\u003e (This parameter can be used without since)","required":false,"type":"float"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"}]}},"/v1/outlets/{outlet_id}/inventory/purchase_orders/{id}":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Purchase order response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"id":{"type":"integer","description":"ID purchase order"},"note":{"type":"string","description":"PO note"},"created_at":{"type":"string","description":"created at"},"order_no":{"type":"string","description":"PO order ID. Note this is not ensure uniqueness"},"total":{"type":"integer","description":"Total cost"},"status":{"type":"string","description":"Status of the PO. Either `Created`, `Updated`, `Cancelled`, `Fulfilled`"},"supplier_id":{"type":"integer","description":"Moka supplier id. If no supplier specified, it will be 0"},"supplier_phone":{"type":"string","description":"Owner supplier phone"},"supplier_email":{"type":"string","description":"Owner supplier email"},"supplier_address":{"type":"string","description":"Owner supplier address"},"supplier_city":{"type":"string","description":"Owner supplier city"},"supplier_state":{"type":"string","description":"Owner supplier state"},"supplier_postal_code":{"type":"string","description":"Owner supplier postal code"},"creator":{"type":"object","description":"Creator of PO"},"updater":{"type":"object","description":"Updater of PO"},"activities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Identifier per activities that is guaranteed to be unique"},"status":{"type":"string","description":"Status of the activity"},"created_at":{"type":"string","description":"timestamp"}}}},"history_details":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"integer","description":"Number of items purchased"},"item_id":{"type":"integer","description":"Target item id"},"item_variant_id":{"type":"integer","description":"Target item variant id"},"price":{"type":"integer","description":"Price per item"},"item_name":{"type":"string","description":"Name of item"},"item_variant_name":{"type":"string","description":"Variant name"}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"po":{"value":{"data":{"id":261660,"note":"test","created_at":"2019-01-21T11:44:03.337+07:00","order_no":"000002299","total":150000,"status":"Updated","supplier_name":"Hedy Levine 2","supplier_phone":"871231231231","supplier_email":"lidatuvo@hotmail.com","supplier_address":"Quia illo culpa et ipsam qui expedita id incidunt iure","supplier_city":"In quia et velit voluptas corporis sunt ex quia mollitia perspiciatis","supplier_state":"Voluptate quibusdam numquam consectetur odio rem ad sunt quis cillum duis illo","supplier_postal_code":"12345","creator":{"id":3033,"email":"yafi@mokapos.com","first_name":"Hello","last_name":"Yafi"},"updater":{"id":3033,"email":"yafi@mokapos.com","first_name":"Hello","last_name":"Yafi"},"activities":[{"trackable_id":261660,"status":"updated","created_at":"2019-01-21T11:51:19.363+07:00"},{"trackable_id":261660,"status":"created","created_at":"2019-01-21T11:44:03.401+07:00"}],"history_details":[{"quantity":10,"item_id":756511,"item_variant_id":1085305,"price":5000,"item_name":"Air Mineral","item_variant_name":""},{"quantity":10,"item_id":756500,"item_variant_id":1085290,"price":10000,"item_name":"aa item 10","item_variant_name":""}]},"meta":{"code":200,"errors":{}}},"summary":"refresh token"}}}}}},"security":[{"access_token":["profile"]}],"description":"Returns a Purchase Order by ID.  Required permissions: `library`\u003cbr/\u003e\u003cbr/\u003e\u003cb\u003eNOTE:\u003c/b\u003e Results are sorted by created_at and in descending order.","operationId":"listPurchaseOrderByIDV1","tags":["Purchase Order"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"id","in":"path","description":"The Purchase Order ID","type":"string"}]}},"/v1/outlets/{outlet_id}/inventory/purchase_orders":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Purchase order response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"results":{"type":"array","description":"Open to see the detailed response","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID purchase order"},"created_at":{"type":"string","description":"created at"},"updated_at":{"type":"string","description":"updated at"},"supplier_id":{"type":"integer","description":"Moka supplier id. If no supplier specified, it will be 0"},"order_no":{"type":"string","description":"PO order ID. Note this is not ensure uniqueness"},"total":{"type":"integer","description":"Total cost"},"supplier_name":{"type":"string","description":"Owner supplier name. If no supplier specified, it will be `No Supplier`"}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"po":{"value":{"data":{"total_pages":1,"total_count":1,"results":[{"id":113112,"created_at":"2018-07-09T17:27:06.469+07:00","updated_at":"2019-01-21T10:59:41.320+07:00","supplier_id":0,"order_no":"000001586","total":0,"supplier_name":"No Supplier"}]},"meta":{"code":200,"errors":{}}},"summary":"refresh token"}}}}}},"security":[{"access_token":["profile"]}],"description":"Returns a list of purchase orders on a time interval.  Required permissions: `library`","operationId":"purchaseOrdersV1","tags":["Purchase Order"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"}]}},"/v1/outlets/{outlet_id}/inventory/ingredient_purchase_orders/{id}":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Purchase order response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Open to see the detailed response","properties":{"id":{"type":"integer","description":"ID purchase order"},"status":{"type":"string","description":"Status of the PO. Either `Created`, `Updated`, `Cancelled`, `Fulfilled`"},"note":{"type":"string","description":"PO note"},"order_no":{"type":"string","description":"PO order ID. Note this is not ensure uniqueness"},"total":{"type":"integer","description":"Total cost"},"created_at":{"type":"string","description":"created at"},"supplier_id":{"type":"integer","description":"Moka supplier id. If no supplier specified, it will be 0"},"supplier_name":{"type":"integer","description":"Moka supplier name. If no supplier specified, it will `No supplier`"},"supplier_phone":{"type":"string","description":"Owner supplier phone"},"supplier_email":{"type":"string","description":"Owner supplier email"},"supplier_address":{"type":"string","description":"Owner supplier address"},"supplier_city":{"type":"string","description":"Owner supplier city"},"supplier_state":{"type":"string","description":"Owner supplier state"},"supplier_postal_code":{"type":"string","description":"Owner supplier postal code"},"creator":{"type":"object","description":"Creator of PO"},"updater":{"type":"object","description":"Updater of PO"},"activities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Identifier per activities that is guaranteed to be unique"},"status":{"type":"string","description":"Status of the activity"},"created_at":{"type":"string","description":"timestamp"}}}},"ingredient_history_details":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"integer","description":"Number of items purchased"},"ingredient_id":{"type":"integer","description":"Target ingredient id"},"ingredient_name":{"type":"integer","description":"Target ingredient name"},"unit_id":{"type":"integer","description":"unit id"},"unit_name":{"type":"string","description":"unit name"},"unit_price":{"type":"string","description":"unit price"},"total_price":{"type":"string","description":"total price"}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"po":{"value":{"data":{"id":7206,"status":"Fulfilled","note":"","order_no":"000000588","total":1000,"supplier_id":223,"supplier_name":"Hedy Levine 2","supplier_phone":"871231231231","supplier_email":"lidatuvo@hotmail.com","supplier_address":"Quia illo culpa et ipsam qui expedita id incidunt iure","supplier_city":"In quia et velit voluptas corporis sunt ex quia mollitia perspiciatis","supplier_state":"Voluptate quibusdam numquam consectetur odio rem ad sunt quis cillum duis illo","supplier_postal_code":"12345","created_at":"2019-01-22T10:39:46.526+07:00","creator":{"id":3033,"email":"yafi@mokapos.com","first_name":"Hello","last_name":"Yafi"},"updater":{"id":3033,"email":"yafi@mokapos.com","first_name":"Hello","last_name":"Yafi"},"activities":[{"id":4752,"status":"fulfilled","created_at":"2019-01-22T10:39:46.554+07:00"},{"id":4751,"status":"created","created_at":"2019-01-22T10:39:46.549+07:00"}],"ingredient_history_details":[{"quantity":10,"ingredient_id":2150,"ingredient_name":"Basil","unit_id":4,"unit_name":"gram (g)","unit_price":100,"total_price":1000}]},"meta":{"code":200,"errors":{}}},"summary":"po detail"}}}}}},"security":[{"access_token":["profile"]}],"description":"Returns an ingredients Purchase Order by ID. Required permissions: `library`","operationId":"listIngredientPurchaseOrderByIDV1","tags":["Purchase Order"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"id","in":"path","description":"The Purchase Order ID","type":"string"}]}},"/v1/outlets/{outlet_id}/inventory/ingredient_purchase_orders":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Purchase order response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"results":{"type":"array","description":"Open to see the detailed response","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID purchase order"},"status":{"type":"string","description":"Latest PO status. Can be `Created`, `Updated`, `Cancelled`, `Fulfilled`"},"order_no":{"type":"string","description":"PO order ID. Note this is not ensure uniqueness"},"total":{"type":"integer","description":"Total cost"},"supplier_id":{"type":"integer","description":"Moka supplier id. If no supplier specified, it will be 0"},"supplier_name":{"type":"string","description":"Owner supplier name. If no supplier specified, it will be `No Supplier`"},"created_at":{"type":"string","description":"created at"},"updated_at":{"type":"string","description":"updated at"}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"po":{"value":{"data":{"total_pages":1,"total_count":1,"results":[{"id":7203,"status":"Updated","order_no":"000000585","total":16000,"supplier_id":223,"supplier_name":"Hedy Levine 2","created_at":"2019-01-22T10:35:10.581+07:00","updated_at":"2019-01-22T10:35:44.493+07:00"}]},"meta":{"code":200,"errors":{}}},"summary":"refresh token"}}}}}},"security":[{"access_token":["profile"]}],"description":"Returns a list of ingredient purchase orders on a time interval.  Required permissions: `library`","operationId":"ingredientPurchaseOrdersV1","tags":["Purchase Order"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"}]}},"/v1/outlets/{outlet_id}/checkouts":{"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"item_variant_id cannot be blank (at position 0)","error_type":"ORDR-IIDB"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Checkout response","schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"uuid":"e0ecfce4-2dd7-4782-95ba-6aa4dfc33f07","already_exists":false,"payment_no":null,"created_at":"2019-07-25T11:30:00.000000+07:00","updated_at":"2019-07-25T11:30:00.000000+07:00","parent_payment_created_at":"2019-07-25T11:30:00.000000+07:00","business_id":19242,"total_collected":18000,"total_item_price_amount":0,"name":"Pepperoni (Small) x 2, Salmon Salad","parent_payment_id":213522,"parent_payment_uuid":"a1618197-1393-4f37-83f7-74ee117569a2","payment_type":"other","payment_type_label":"Other","customer_id":null,"payment_note":"cash","discounts":7000,"subtotal":18000,"gratuities":200,"taxes":300,"tax_type":"AFTER_DISCOUNT","tendered":20000,"change":2000,"include_gratuity_tax":true,"enable_tax":true,"enable_gratuity":true,"card_type":null,"card_no":null,"transaction_date":"25 Jul 2019","transaction_time":"11 : 30 AM","collected_by":"Toko Baju Murah Meriah Berkah Selalu Jaya Sentosa Maju Terus Pantang Mundur","served_by":null,"synchronized_at":"2019-07-25T17:20:16.997167+07:00","server_created_at":"2019-07-25T17:20:16.928646+07:00","outlet_id":29708,"pg_mid":null,"mpos_device_id":null,"transaction_certificate":null,"transaction_status_info":null,"mpos_transaction_date":null,"merchant_id":null,"transaction_reference":null,"transaction_number":null,"order_info":null,"cc_name":null,"pii":null,"guid":"e0ecfce4-2dd7-4782-95ba-6aa4dfc33f07","uniq_id":null,"invoice_due_date":null,"invoice_no":null,"invoice_deposit_amount":null,"invoice_payment_records":[],"payment_discounts":[],"payment_taxes":[{"id":194103,"uuid":"2ff0bb1e-4038-46b1-9d52-a77ada61d02f","name":"ppn","amount":10,"total":300,"taxable_amount":2,"payment_uuid":"a1618197-1393-4f37-83f7-74ee117569a2","created_at":"2019-07-25T11:30:00.000000+07:00","updated_at":"2019-07-25T17:20:16.994501+07:00","tax_id":14857}],"payment_gratuities":[{"id":206527,"uuid":"79f84df8-0609-4081-bed9-bdfda11153a2","name":"Service Charge","amount":5,"total":200,"payment_uuid":"a1618197-1393-4f37-83f7-74ee117569a2","created_at":"2019-07-25T11:30:00.000000+07:00","updated_at":"2019-07-25T17:20:16.991643+07:00","gratuity_id":13170}],"checkouts":[{"uuid":"1da32c58-ffb6-450c-8af0-e202b02d9ef1","custom_amount":0,"item_variant_id":9371107,"quantity":1,"discount_amount":2000,"tax_amount":200,"business_id":19242,"payment_uuid":"a1618197-1393-4f37-83f7-74ee117569a2","is_deleted":false,"created_at":"2019-07-25T11:30:00.000000+07:00","updated_at":"2019-07-25T17:20:16.979203+07:00","item_id":4686262,"item_discount":0,"item_price_library":3000,"item_price":20000,"item_price_discount":18000,"gratuity_amount":300,"gratuity_type":"AFTER_DISCOUNT","item_price_discount_gratuity":0,"total_price":18000,"item_price_quantity":20000,"category_name":"Pizza","category_id":110384,"item_name":"Pepperoni","item_variant_name":"Small","sku":"","note":null,"cogs":7000,"gross_sales":3000,"outlet_id":29708,"position":0,"net_sales":20000,"track_stock":false,"item_image":null,"parent_checkout_uuid":null,"is_recipe":false,"redeem_amount":0,"sales_type_id":130449,"sales_type_name":"GoFood","is_program_item":false,"price":20000,"refunded_quantity":0,"discounts":[{"discount_id":51340,"discount_type":"percentage","discount_name":"Disc %","discount_percentage":5,"discount_cash":0,"discount_amount":500}],"modifiers":[],"gratuities":[]}],"payment_refunds":[],"is_refund_breakdown":true,"total_refund":0,"is_refunded":false,"refund_amount":0,"customer_name":null,"customer_phone":null,"customer_email":null,"table_name":null,"cashlezz_transaction_id":null,"receipt_count":null,"is_loyalty":false,"loyalty":{},"total_redeem_amount":0,"total_rounding_amount":0,"is_offline":null,"total_gross_sales":21000,"total_net_sales":19000,"order_id":null,"is_sales_type":false,"version":"V2"},"meta":{"code":200,"errors":{}}}}},"409":{"description":"Duplicated entities","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":null,"meta":{"code":409,"error_message":"Duplicate order id 1","error_type":"ORDR-DUPL"}}}}},"security":[{"access_token":["checkout_api"]}],"description":"Create checkout to outlet. Required permissions: `checkout_api`","operationId":"createCheckoutV1","tags":["Checkout API"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"checkout_api","in":"body","description":"Checkout JSON request","required":true,"schema":{"$ref":"#/definitions/CheckoutApi"}}]}},"/v1/outlets/{outlet_id}/adjustment/items":{"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","description":"Open to see the detailed response","properties":{"code":{"type":"integer","description":"Status code error"},"error_message":{"type":"string","description":"Error message validation"},"error_type":{"type":"string","description":"Error type"}}}}},"examples":{"invalid_actual_stock":{"value":{"data":{},"meta":{"code":400,"error_message":"actual_stock: must be greater than or equal to 0","error_type":"ApiErrors::ApiValidationFailed"}},"summary":"Invalid Actual Stock"},"comma_actual_stock":{"value":{"data":{},"meta":{"code":400,"error_message":"actual_stock: cannot have comma.","error_type":"ApiErrors::ApiValidationFailed"}},"summary":"Comma Actual Stock"}}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Item adjustment response","schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"id":12345,"created_at":"2019-10-24T15:51:07.729000+07:00","updated_at":"2019-10-24T15:51:07.729000+07:00","synchronized_at":"2019-10-24T15:51:08.016000+07:00","outlet_id":999,"note":"test","supplier_id":null,"order_no":null,"total":1,"status":"Fulfilled","created_by":null,"to_outlet_id":null,"supplier_name":null,"supplier_phone":null,"supplier_email":null,"supplier_address":null,"supplier_city":null,"supplier_state":null,"is_sender":null,"is_receiver":false,"from_outlet_id":null,"updated_by":null,"payment_id":null,"outlet":{"id":123,"created_at":"2018-06-06T16:26:22.319178+07:00","updated_at":null,"synchronized_at":null,"is_deleted":null,"business_id":76,"name":"Outlet Baru","address":null,"phone_number":null,"city":null,"province":null,"postal_code":null,"latitude":null,"longitude":null,"importing":null,"exporting":null,"notes":null,"start_date":null,"end_date":null,"is_paying":null},"history_details":[{"id":7633,"created_at":"2019-10-24T15:51:07.825000+07:00","updated_at":"2019-10-24T15:51:07.825000+07:00","synchronized_at":"2019-10-24T15:51:08.082000+07:00","beginning_stock":101,"end_stock":102,"quantity":102,"item_id":111,"item_variant_id":222,"history_id":333,"price":0,"adjustment":1,"item_name":"all inven","item_variant_name":null,"category_name":"Uncategorized","outlet_name":"Outlet Baru","is_item":true,"cogs":null}]},"meta":{"code":200,"errors":{}}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","description":"Open to see the detailed response","properties":{"code":{"type":"integer","description":"Status code error"},"error_message":{"type":"string","description":"Error message validation"},"error_type":{"type":"string","description":"Error type"}}}}},"examples":{"duplicated_entities":{"value":{"data":{},"meta":{"code":422,"error_message":"Failed to create adjustment, Adjustment value cannot be 0. Or remove items that you do not want to adjust from the list.","error_type":"Exception"}},"summary":"Duplicated Entities"},"variant_does_not_exist":{"value":{"data":{},"meta":{"code":422,"error_message":"Item variant not found","error_type":"Exception"}},"summary":"Variant Does not exist"},"item_not_found":{"value":{"data":{},"meta":{"code":422,"error_message":"Item not found","error_type":"Exception"}},"summary":"Item not found"},"invalid_end_stock":{"value":{"data":{},"meta":{"code":422,"error_message":"End stock for 'Item-Name' must be less than or equal 999999999","error_type":"Exception"}},"summary":"Invalid End Stock"}}}}}},"security":[{"access_token":["library"]}],"description":"Create item adjustment for items. Required permissions: `library`","operationId":"createItemAdjustmentV1","tags":["Item Adjustment"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"item_adjustment_api","in":"body","description":"item adjustment JSON request","required":true,"schema":{"$ref":"#/definitions/ItemAdjustmentApi"}}]}},"/v1/outlets/{outlet_id}/inventory/item_summaries":{"get":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Item Summaries Response","schema":{"type":"object","properties":{"data":{"type":"object","properties":{"total_pages":{"type":"integer"},"total_count":{"type":"integer"},"results":{"type":"array","items":{"properties":{"item_id":{"type":"integer"},"item_name":{"type":"string"},"category":{"type":"string"},"has_item_variants":{"type":"boolean"},"item_variants":{"type":"array","items":{"$ref":"#/definitions/ItemSummary"}}}}}}},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{"total_pages":1,"total_counts":6,"results":[{"item_id":7657280,"item_name":"all inven","category":"Uncategorized","has_item_variants":false,"item_variants":[{"beginning":100,"purchase_order":0,"sales":0,"transfer":0,"adjustment":-100,"ending":0,"item_variant_name":null}],"outlet":"Outlet Baru"}]},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":["library"]}],"description":"Required permissions: `library`. Item Summaries summarize item variant's stock at the beginning of the day, end of day, and sum of every transaction that happened\n            within a certain date period.\n            A record of summary will be created for an item variant for this condition :\n\n- An item variant is created with track_stock true\n- An item variant is updated to track_stock true and never been set to true before\n- A transaction for an item variant is created.","operationId":"listItemSummariesV1","tags":["Item Summaries"],"parameters":[{"name":"outlet_id","description":"The merchant's outlet ID","in":"path","required":true,"type":"integer"},{"name":"page","in":"query","description":"Pagination number","required":false,"type":"integer"},{"name":"per_page","in":"query","description":"Number of elements on a page","required":false,"type":"integer"},{"name":"start","in":"query","description":"Start date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"end","in":"query","description":"End date in DD/MM/YYYY format","required":false,"type":"float"},{"name":"optional_keyword","in":"query","description":"(Optional) Search item by keyword","required":false,"type":"string"}]}},"/oauth/revoke":{"post":{"produces":["application/json"],"responses":{"401":{"description":"The access token is invalid","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":401,"error_message":"The access token is invalid","error_type":"Doorkeeper::OAuth::InvalidTokenResponse"}}}},"410":{"description":"API Deprecated","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":410,"error_message":"Service Deprecated","error_type":"ApiErrors::TerminatedEndPoint"}}}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":500,"error_message":"Internal Server Error","error_type":"Exception"}}}},"403":{"description":"Access token valid, but is denied to access the resource. Or, the merchant`s outlet is expired.","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"scope_not_granted":{"value":{"data":null,"meta":{"code":403,"error_message":"The token isn't granted at least one of these scopes: the_related_scope_here","error_type":"Doorkeeper::OAuth::ForbiddenTokenResponse"}},"summary":"The token is not granted specific scope"},"expired_outlet":{"value":{"data":null,"meta":{"code":403,"error_message":"Outlet Griffith Padilla (ID:27686) has been expired. Owner must renew the subscription by logging in to Moka's Back-Office.","error_type":"ApiErrors::OutletExpiredError"}},"summary":"The outlet is expired, and cannot be accessed"}}}}},"400":{"description":"Bad parameter","schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"application/json":{"data":{},"meta":{"code":400,"error_message":"param is missing or the value is empty: end","error_type":"ActionController::ParameterMissing"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/definitions/ErrorModel"},"examples":{"must_application_json":{"value":{"data":null,"meta":{"code":415,"error_message":"Please use 'Content-Type: application/json' as your http headers","error_type":"ApiErrors::SetApplicationJsonAsContentTypeError"}},"summary":"You must specify application/json as the Content-Type in HTTP headers"}}}}},"200":{"description":"Revoke token response","schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"$ref":"#/definitions/MetadataProperty"}}},"examples":{"application/json":{"data":{},"meta":{"code":200,"errors":{}}}}}},"security":[{"access_token":[""]}],"description":"Revoke given token. After this operation, the given token cannot be used anymore","operationId":"revokeToken","tags":["Oauth"],"parameters":[{"name":"revoke_object","in":"body","schema":{"type":"object","properties":{"client_id":{"type":"string","description":"Application client ID in Moka app dashboard","example":"qwertyuiopasdfghkjlzxcvbnm123465789"},"client_secret":{"type":"string","description":"Application client secret in Moka app dashboard","example":"sdfghkjlzxcvbnm123465789qwertyuiopa"},"token":{"type":"string","description":"Access token that can be used to access Moka's APIs","example":"vbnm123465789qwertyuiopasdfghkjlzxc"}}}}]}},"/oauth/token":{"post":{"produces":["application/json"],"responses":{"200":{"description":"Exchange token response","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","description":"Access token that can be used to access Moka's APIs"},"token_type":{"type":"string","description":"Token type used by Moka's APIs (always returns `bearer`)"},"expires_in":{"type":"integer","description":"Time of token expiration in Epoch format"},"refresh_token":{"type":"string","description":"Refresh token that can be used to obtain a new access token when access token is expired. Note: To obtain a new access token with refresh token, make sure the `grant_type` is set to `refresh_token`"},"scope":{"type":"string","description":"Scopes provided to the access token. This is configured when creating the application in the Moka developer platform"},"created_at":{"type":"string","description":"Time of token creation or token refresh in Epoch format"}}},"examples":{"refresh_token":{"value":{"access_token":"951fc6b2920e4fdda66614d0a1f06ac1b3d","token_type":"bearer","expires_in":15552000,"refresh_token":"f1979e4253ed4a9a0f09ce9d561e70bdb902fda","scope":"profile report customer library transaction","created_at":1543378499},"summary":"refresh token"},"get_access_token":{"value":{"access_token":"951fc6b2920e4fdda66614d0a1f06ac1b3d","token_type":"bearer","expires_in":15552000,"refresh_token":"f1979e4253ed4a9a0f09ce9d561e70bdb902fda","scope":"profile report customer library transaction","created_at":1543378499},"summary":"get access token"}}}}},"401":{"description":"Exchange token failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error type"},"error_description":{"type":"string","description":"Error message description"}}},"examples":{"invalid_access_token":{"value":{"error":"invalid_grant","error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."},"summary":"invalid or expired access token or refresh token"}}}}}},"security":[{"access_token":[""]}],"description":"Change grant token into access token or refresh access token","operationId":"exchangeToken","tags":["Oauth"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"grant_type":{"type":"string","description":"OAuth token grant type. Use `refresh_token` to refresh access token. Use `authorization_code` to exchange grant into access token"},"client_id":{"type":"string","description":"Application client ID in Moka app dashboard"},"client_secret":{"type":"string","description":"Application client secret in Moka app dashboard"},"code":{"type":"string","description":"Moka merchant's authorization code"},"redirect_uri":{"type":"string","description":"Redirect URL of your application in Moka app dashboard"},"refresh_token":{"type":"string","description":"Refresh token that can be used to obtain a new access token when access token is expired. Note: To obtain a new access token with refresh token, make sure the `grant_type` is set to `refresh_token`"}}},"examples":{"refresh_token":{"value":{"client_id":"7a5a83adb069d27563e0d67882a1e0b0739f0eaf","client_secret":"4fc78952dde155d350d93603c2b0f542a8b371aeb014","refresh_token":"4037144d6e0b191ae42490a2758cf9989","grant_type":"refresh_token"},"summary":"refresh token"},"get_access_token":{"value":{"client_id":"7a5a83adb069d27563e0d67882a1e0b0739f0eaf","client_secret":"4fc78952dde155d350d93603c2b0f542a8b371aeb014","code":"1231232134037144d6e0b191ae42490a2758cf9989","grant_type":"authorization_code","redirect_uri":"http://localhost:3002/auth/moka/callback"},"summary":"get access token"}}}}}}}},"definitions":{"MetadataProperty":{"type":"object","properties":{"code":{"type":"integer","example":200},"errors":{"type":"object"}}},"Order":{"type":"object","required":true,"properties":{"customer_name":{"type":"string","example":"Vincent","description":"Customer name. Limited to 50 characters"},"customer_phone_number":{"type":"string","example":"0857113103287","description":"Customer phone number. Limited to 13 digits"},"customer_address_detail":{"type":"string","example":"Jalan Gatot Subroto No.45","description":"Customer address detail."},"customer_province":{"type":"string","example":"DKI Jakarta","description":"Customer province"},"customer_city":{"type":"string","example":"Jakarta Barat","description":"Customer city"},"customer_kecamatan":{"type":"string","example":"Palmerah","description":"Customer kecamatan"},"customer_postal_code":{"type":"string","example":"11480","description":"Customer postal code. Fill with 5 digits number"},"sales_type_id":{"type":"number","example":12,"description":"(Optional) Sales type ID. This must match to Moka sales type ID. Note that for several third parties, this field is mandatory"},"sales_type_name":{"type":"string","example":"XFoodApp","description":"(Optional) Sales type name. Limited to 25 characters. Note that for several third parties, this field is mandatory"},"client_created_at":{"type":"string","example":"2019-05-23T14:00:00+07:00","description":"(Optional) When the order is created from third party service"},"application_order_id":{"type":"string","example":"IOS-123456","description":"Order ID given from the third party application. Different from Moka's internal Order ID","required":true},"payment_type":{"type":"string","example":"grabfood","description":"Payment type used in the online order. Please contact Moka to add your own payment type","required":true},"note":{"type":"string","example":"Rumahnya di sebelah tukang jamu","description":"Order notes. Max length is 255 characters. Can be empty string"},"complete_order_notification_url":{"type":"string","example":"https://e-commerce.com/orders/123/moka/complete-callback","description":"Callback notification URL when the order is completed"},"accept_order_notification_url":{"type":"string","example":"https://e-commerce.com/orders/123/moka/accept-callback","description":"Callback notification URL when the order is accepted"},"cancel_order_notification_url":{"type":"string","example":"https://e-commerce.com/orders/123/moka/cancel-callback","description":"Callback notification URL when the order is cancelled"},"assign_expedition_notification_url":{"type":"string","example":"https://e-commerce.com/orders/123/moka/expedtion-callback","description":"Callback notification URL when the order is made from an expedition company"},"discount_id":{"type":"number","example":1,"description":"Moka's item discount ID"},"discount_type":{"type":"string","example":"percentage","description":"Moka's item discount type (cash or percentage)"},"discount_amount":{"type":"number","example":"10","description":"Moka's item discount amount"},"discount_guid":{"type":"string","example":"1234-1234-1234-1234","description":"Moka's item discount GUID"},"discount_name":{"type":"string","example":"promo","description":"Moka's item discount name"},"order_items":{"type":"array","items":{"$ref":"#/definitions/OrderItem"}}}},"OrderItem":{"type":"object","properties":{"item_id":{"type":"integer","description":"Moka's item ID","example":1,"required":true},"item_name":{"type":"string","description":"Moka's item name","example":"American Favourite","required":true},"quantity":{"type":"number","description":"Number of items purchased","example":5,"required":true},"item_variant_id":{"type":"integer","description":"Moka's item variant ID","example":10},"item_variant_name":{"type":"string","description":"Moka's item variant name","example":"Small"},"note":{"type":"string","example":"Sausnya dipisah","description":"Item notes. Max length is 255 characters. Can be empty string"},"item_price_library":{"type":"number","description":"The price per item","example":30000,"required":true},"category_id":{"type":"number","description":"Moka's category id for item","example":123,"required":true},"category_name":{"type":"string","description":"Moka's category name for item","example":"Uncategorized"},"item_discount_id":{"type":"number","description":"Moka's item discount ID","example":777},"item_discount_type":{"type":"string","description":"Moka's item discount type (cash or percentage)","example":"percentage"},"item_discount_amount":{"type":"string","description":"Moka's item discount amount","example":10},"item_discount_guid":{"type":"string","description":"Moka's item discount GUID","example":"1234-5678-1234-5678"},"item_discount_name":{"type":"string","description":"Moka's item discount name","example":"promo"},"item_modifiers":{"type":"array","items":{"$ref":"#/definitions/OrderItemModifier"}}}},"OrderItemModifier":{"type":"object","properties":{"item_modifier_id":{"type":"number","example":123,"description":"Moka's item modifier id (modifier category)"},"item_modifier_name":{"type":"string","example":"kecap manis","description":"Moka's item modifier name"},"item_modifier_option_id":{"type":"number","example":17873,"description":"Moka's item modifier option id"},"item_modifier_option_name":{"type":"string","example":"karOption","description":"Moka's item modifier option name"},"item_modifier_option_price":{"type":"number","example":10000,"description":"Moka's item modifier option price"}}},"OrderDriver":{"type":"object","properties":{"name":{"type":"string","example":"Yayan","description":"The driver's name"},"license_plate":{"type":"string","example":"B 1234 MK","description":"The driver's license number plate"},"phone_number":{"type":"number","example":"085712345678","description":"The driver's phone number"}}},"CancelOrder":{"type":"object","required":true,"properties":{"cancel_reason":{"type":"string","example":"DRIVER#cancel reason","description":"Reason for order cancellation that will be displayed in the MokaPOS apps. The format is in the form of \"[Cancel Tag]#[Cancel Reason]\", where [Cancel Tag] is the party that cancelled the order and [Cancel Reason] is the cancellation reason. You can either use \"DRIVER\" or \"CUSTOMER\" for [Cancel Tag].","required":true}}},"Category":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"business_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"uniq_id":{"type":"string"},"synchronized_at":{"type":"string"}}},"Discount":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"number"},"type":{"type":"enum","enum":["percentage","cash"]},"business_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"uniq_id":{"type":"string"},"synchronized_at":{"type":"string"},"amount_format":{"type":"string"}}},"Favorite":{"properties":{"id":{"type":"integer"},"business_id":{"type":"integer"},"item_id":{"type":"integer"},"location_x":{"type":"integer"},"location_y":{"type":"integer"},"favorite_type":{"type":"string"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"uniq_id":{"type":"string"},"synchronized_at":{"type":"string"}}},"Gratuity":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"number"},"business_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"uniq_id":{"type":"string"},"synchronized_at":{"type":"string"},"deleted_at":{"type":"string"}}},"Ingredient":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"image":{"type":"object","properties":{"url":{"type":"string"}}},"business_id":{"type":"integer"},"outlet_id":{"type":"integer"},"ingredient_category_id":{"type":"integer"},"category_name":{"type":"string"},"unit_name":{"type":"string"},"in_stock":{"type":"integer"},"alert":{"type":"boolean"},"ingredient_status":{"type":"string"},"stock_alert":{"type":"integer"},"track_cogs":{"type":"boolean"},"cogs":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"synchronized_at":{"type":"string"}}},"IngredientCategory":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"business_id":{"type":"integer"},"outlet_id":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"synchronized_at":{"type":"string"}}},"Item":{},"ItemVariant":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"sku":{"type":"string"},"price":{"type":"integer"},"in_stock":{"type":"integer"},"stock_alert":{"type":"integer"},"position":{"type":"integer"},"item_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"add_inventory":{"type":"integer"},"track_stock":{"type":"boolean"},"is_saved":{"type":"boolean"}}},"ItemModifier":{"properties":{"id":{"type":"integer"},"item_id":{"type":"integer"},"modifier_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"synchronized_at":{"type":"string"}}},"Modifier":{"properties":{"id":{"type":"integer"},"business_id":{"type":"integer"},"name":{"type":"string"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"uniq_id":{"type":"string"},"synchronized_at":{"type":"string"}}},"ModifierOption":{"properties":{"id":{"type":"integer"},"modifier_id":{"type":"integer"},"name":{"type":"string"},"price":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"position":{"type":"integer"},"cogs":{"type":"integer"},"outlet_id":{"type":"integer"},"synchronized_at":{"type":"string"},"guid":{"type":"string"},"uniq_id":{"type":"string"}}},"Tax":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"number"},"business_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"uniq_id":{"type":"string"},"synchronized_at":{"type":"string"}}},"CheckoutApi":{"type":"object","required":true,"properties":{"checkout":{"type":"object","required":true,"properties":{"note":{"type":"string","example":"cash","description":"Note containing payment type","required":true},"include_tax_and_gratuity":{"type":"boolean","example":"false","description":"(Optional) Indicate tax and gratuity already included in price"},"enable_tax":{"type":"boolean","example":"fale","description":"(Optional) To include total tax to calculation"},"enable_gratuity":{"type":"boolean","example":"false","description":"(Optional) To include total gratuity to calculation"},"client_created_at":{"type":"string","example":"2019-07-09T14:22:00.000+07:00","description":"Time of transaction","required":true},"total_gross_sales":{"type":"integer","example":"10000","description":"Gross price of an item, exclude discount, tax and gratuity","required":true},"total_discount":{"type":"integer","example":"100","description":"(Optional) Total discounts from each items"},"total_gratuity":{"type":"integer","example":"100","description":"(Optional) Total gratuities from each items"},"total_tax":{"type":"integer","example":"10","description":"(Optional) Total taxes from each items"},"total_net_sales":{"type":"integer","example":"900","description":"Net price for all items","required":true},"total_collected":{"type":"number","example":1800,"description":"Grand total amount","required":true},"amount_pay":{"type":"number","example":1800,"description":"Amount paid by customer","required":true},"items":{"type":"array","items":{"$ref":"#/definitions/CheckoutApiItem"}},"gratuities":{"type":"array","items":{"$ref":"#/definitions/CheckoutApiGratuity"}},"taxes":{"type":"array","items":{"$ref":"#/definitions/CheckoutApiTax"}},"discounts":{"type":"array","items":{"$ref":"#/definitions/CheckoutApiDiscount"}}}}}},"CheckoutApiItem":{"type":"object","properties":{"quantity":{"type":"integer","description":"Item quantity","example":1,"required":true},"item_id":{"type":"integer","description":"Moka's item ID","example":1,"required":true},"item_name":{"type":"string","description":"Item Name","example":"Ice cream","required":true},"item_variant_id":{"type":"integer","description":"Moka's item variant ID","example":1,"required":true},"item_variant_name":{"type":"string","description":"Item variant name","example":"large","required":true},"item_variant_sku":{"type":"string","description":"Item SKU","example":"ICE-1234"},"sales_type_id":{"type":"integer","description":"Item sales type ID","example":130449},"sales_type_name":{"type":"string","description":"Item sales type name","example":"GoFood"},"category_id":{"type":"integer","description":"Moka's category ID","example":1,"required":true},"category_name":{"type":"string","description":"Item category name","example":"Desert","required":true},"client_price":{"type":"integer","description":"Item price","example":10000},"discount_amount":{"type":"integer","description":"Disocunt amount in cash","example":100},"tax":{"type":"integer","description":"Tax amount in cash","example":10},"gratuity":{"type":"integer","description":"Gratuity amount in cash","example":10},"gross_sales":{"type":"integer","description":"Gross sales amount","example":10000,"required":true},"net_sales":{"type":"integer","description":"Net sales amount","example":900,"required":true},"modifiers":{"type":"array","items":{"$ref":"#/definitions/CheckoutApiItemModifier"}}}},"CheckoutApiItemModifier":{"type":"object","properties":{"modifier_id":{"type":"integer","description":"Moka's item modifier ID","example":1},"modifier_option_id":{"type":"double","description":"Moka's item modifier option ID","example":10.0},"modifier_name":{"type":"string","description":"Modifier Name","example":"Topping"},"modifier_option_name":{"type":"string","description":"Modifier Option Name","example":"Mozarella"},"modifier_option_price":{"type":"integer","description":"Modifier Option Price","example":8000},"modifier_discounts":{"type":"array","items":{"$ref":"#/definitions/CheckoutApiItemModifierDiscount"}},"discount_amount":{"type":"double","description":"Discount Amount","example":1000.0},"gross_sales":{"type":"double","description":"Gross Sales","example":180000.0},"net_sales":{"type":"double","description":"Net Sales","example":165000.0},"redeem_amount":{"type":"double","description":"Redeem Amount","example":0.0}}},"CheckoutApiItemModifierDiscount":{"type":"object","properties":{"discount_amount":{"type":"double","description":"Discount Amount","example":1000.0},"discount_cash":{"type":"double","description":"Discount Cash","example":1000.0},"discount_id":{"type":"integer","description":"Discount ID","example":1},"discount_name":{"type":"string","description":"Discount Name","example":"New Years Discount"},"discount_percentage":{"type":"double","description":"Discount percentage","example":10.0},"discount_type":{"type":"string","description":"Discount Type","example":"percentage"},"discount_guid":{"type":"string","description":"Discount GUID","example":"d8359ece-5841-44a0-96f0-ebeb3b71ff25"}}},"CheckoutApiGratuity":{"type":"object","properties":{"gratuity_id":{"type":"integer","description":"Moka's gratuity ID","example":1,"required":true},"gratuity_name":{"type":"string","description":"Gratuity name","example":"American Favourite","required":true},"gratuity_percentage":{"type":"integer","description":"Gratuity percentage amount. Optional with gratuity_amount.","example":12,"required":true},"gratuity_amount":{"type":"integer","description":"Gratuity cash amount. Calculation with item price.","example":12000,"required":true}}},"CheckoutApiDiscount":{"type":"object","properties":{"discount_id":{"type":"integer","description":"Moka's discount ID","example":1,"required":true},"discount_name":{"type":"string","description":"Discount name","example":"Promo 10","required":true},"discount_type":{"type":"number","description":"Discount type (cash or percentage)","example":"cash","required":true},"discount_cash":{"type":"integer","description":"Discount amount in cash if type is cash, otherwise fill 0 or null","example":1000,"required":true},"discount_amount":{"type":"integer","description":"Discount amount in cash. Calculation with item price","example":1000,"required":true},"discount_percentage":{"type":"number","description":"Discount amount in percent","example":5,"required":true}}},"CheckoutApiTax":{"type":"object","properties":{"tax_id":{"type":"integer","description":"Moka's tax ID","example":1,"required":true},"tax_name":{"type":"string","description":"Tax name","example":"American Favourite","required":true},"tax_percentage":{"type":"number","description":"Tax percentage amount. Optional with taxable_amount.","example":5,"required":true},"taxable_amount":{"type":"integer","description":"Tax cash amount. Optional with tax_percentage.","example":10,"required":true},"tax_amount":{"type":"integer","description":"Tax cash amount. Calulation with item price","example":10,"required":true}}},"ItemAdjustmentApi":{"type":"object","required":true,"properties":{"adjustment":{"type":"object","required":true,"properties":{"note":{"type":"string","example":"buy stock","description":"Note of this item adjustment","required":true},"history_details":{"type":"array","items":{"$ref":"#/definitions/HistoryDetailItemAdjustment"}}}}}},"HistoryDetailItemAdjustment":{"type":"object","properties":{"item_id":{"type":"integer","description":"Moka's Item ID","example":1,"required":true},"item_variant_id":{"type":"integer","description":"Moka's Item variant ID","example":10,"required":true},"actual_stock":{"type":"integer","description":"Actual value, cannot be negative","example":10,"required":true}}},"ItemSummary":{"properties":{"beginning":{"type":"integer"},"purchase_order":{"type":"integer"},"sales":{"type":"integer"},"transfer":{"type":"integer"},"adjustment":{"type":"integer"},"ending":{"type":"integer"},"item_variant_name":{"type":"integer"}}},"SalesType":{"type":"object","required":true,"properties":{"sales_type_name":{"type":"string","example":"GoFood","description":"Name of the sales type","required":true}}},"CreateItem":{"type":"object","required":true,"properties":{"item":{"type":"object","required":true,"properties":{"name":{"type":"string","example":"Nasi Goreng","description":"Product name","required":true},"image":{"type":"object","description":"POS image data","properties":{"url":{"type":"string","example":"https://al-ms-id-s-file-public.oss-ap-southeast-5.aliyuncs.com/inventory/32459/611194/image-created-with-a-mobile-phone-b27f8f30.png","description":"Image URL after successfully upload POS image"},"id":{"type":"integer","example":"123456","description":"Image ID after successfully upload POS image"},"width":{"type":"integer","example":"500","description":"Image Width (in px)"},"height":{"type":"integer","example":"500","description":"Image Height (in px)"}}},"description":{"type":"string","example":"Nasi Goreng dengan topping lengkap","description":"Product Description","required":true},"category_id":{"type":"integer","example":"123","description":"Item's category id","required":true},"brand_id":{"type":"integer","example":"123","description":"(Required if is_ecommerce true) Item's brand id"},"is_ecommerce":{"type":"boolean","example":true,"description":"(Optional) Ecommerce option provide you with ability for MOKA ORDER SELF PICKUP \u0026 DELIVERY "},"condition":{"type":"string","example":"refurbished","description":"(Required if is_ecommerce true) Product condition. Values available are: new, used, refurbished."},"weight":{"type":"string","example":"10.0","description":"(Required if is_ecommerce true) Item's weight in gr"},"height":{"type":"string","example":"10.0","description":"(Required if is_ecommerce true) Item's height in cm"},"width":{"type":"string","example":"10.0","description":"(Required if is_ecommerce true) Item's width in cm"},"length":{"type":"string","example":"10.0","description":"(Required if is_ecommerce true) Item's length in cm"},"item_variants":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"Merah","description":"Item's color","required":true},"sku":{"type":"string","example":"1123","description":"Item stock keeping unit","required":true},"in_stock":{"type":"integer","example":"1123","description":"Item stock"},"track_stock":{"type":"boolean","example":false,"description":"Enable track item stock"},"cogs":{"type":"integer","example":"1123","description":"Item cogs"},"track_cogs":{"type":"boolean","example":false,"description":"Enable track item cogs"},"price":{"type":"integer","example":"1123","description":"(Required if is_sales_type_price false) Item price"},"sales_type_items":{"type":"object","properties":{"sales_type_id":{"type":"integer","example":"1233","description":"Sales type id"},"sales_type_price":{"type":"integer","example":"100000","description":"Sales type price"},"sales_type_name":{"type":"string","example":"SampleName","description":"Sales type name"}}}}}},"is_sales_type_price":{"type":"boolean","example":false,"description":"Is using multiple sales type price","required":true},"images":{"type":"array","description":"Images data if using ecommerce option","items":{"type":"object","properties":{"raw_image_id":{"type":"integer","example":"12345667","description":"Ecommerce Image ID after successfully upload the image"},"url":{"type":"string","example":"https://al-ms-id-s-file-public.oss-ap-southeast-5.aliyuncs.com/inventory/32459/611194/image-created-with-a-mobile-phone-b27f8f30.png","description":"Ecommerce Image URL after successfully upload POS image"}}}},"pre_order_days":{"type":"integer","example":7,"description":"(Optional) Set preorder days if there's one "}}}}},"UpdateItem":{"type":"object","required":true,"properties":{"item":{"type":"object","required":true,"properties":{"name":{"type":"string","example":"Nasi Goreng","description":"Product name","required":true},"image":{"type":"object","description":"POS image data","properties":{"url":{"type":"string","example":"https://al-ms-id-s-file-public.oss-ap-southeast-5.aliyuncs.com/inventory/32459/611194/image-created-with-a-mobile-phone-b27f8f30.png","description":"Image URL after successfully upload POS image"},"id":{"type":"integer","example":"123456","description":"Image ID after successfully upload POS image"},"width":{"type":"integer","example":"500","description":"Image Width (in px)"},"height":{"type":"integer","example":"500","description":"Image Height (in px)"}}},"description":{"type":"string","example":"Nasi Goreng dengan topping lengkap","description":"Product Description","required":true},"category_id":{"type":"integer","example":"123","description":"Item's category id","required":true},"brand_id":{"type":"integer","example":"123","description":"(Required if is_ecommerce true) Item's brand id"},"is_ecommerce":{"type":"boolean","example":true,"description":"(Optional) Ecommerce option provide you with ability for MOKA ORDER SELF PICKUP \u0026 DELIVERY "},"condition":{"type":"string","example":"refurbished","description":"(Required if is_ecommerce true) Product condition. Values available are: new, used, refurbished."},"weight":{"type":"string","example":"10.0","description":"(Required if is_ecommerce true) Item's weight in gr"},"height":{"type":"string","example":"10.0","description":"(Required if is_ecommerce true) Item's height in cm"},"width":{"type":"string","example":"10.0","description":"(Required if is_ecommerce true) Item's width in cm"},"length":{"type":"string","example":"10.0","description":"(Required if is_ecommerce true) Item's length in cm"},"item_variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":"1123","description":"Item variant's ID","required":true},"name":{"type":"string","example":"Merah","description":"Item's color","required":true},"sku":{"type":"string","example":"1123","description":"Item stock keeping unit","required":true},"track_stock":{"type":"boolean","example":false,"description":"Enable track item stock"},"track_cogs":{"type":"boolean","example":false,"description":"Enable track item cogs"},"price":{"type":"integer","example":"1123","description":"(Required if is_sales_type_price false) Item price"},"sales_type_items":{"type":"object","properties":{"sales_type_id":{"type":"integer","example":"1233","description":"Sales type id"},"sales_type_price":{"type":"integer","example":"100000","description":"Sales type price"},"sales_type_name":{"type":"string","example":"SampleName","description":"Sales type name"}}}}}},"is_sales_type_price":{"type":"boolean","example":false,"description":"Is using multiple sales type price","required":true},"images":{"type":"array","description":"Upload image for ecommerce options.\n          You only need to forward `raw_image_id` if there's no new image uploaded. If you have a new image, you need to upload it first and also pass the `url`.\n          Please refer to the examples.\n\n          Note: The array order will determine the image ordering","items":{"type":"object","example":[{"raw_image_id":123123123},{"raw_image_id":123123124,"url":"https://al-ms-id-s-file-public.oss-ap-southeast-5.aliyuncs.com/inventory/32459/611194/image-created-with-a-mobile-phone-b27f8f30.png"}]}},"pre_order_days":{"type":"integer","example":7,"description":"(Optional) Set preorder days if there's one "}}}}},"UploadItemImage":{"type":"object","required":true,"properties":{"image_name":{"type":"string","example":"image-name.jpg","description":"Image file name"},"data":{"type":"string","example":"data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3/OAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANCSURBVEiJtZZPbBtFFMZ/M7ubXdtdb1xSFyeilBapySVU8h8OoFaooFSqiihIVIpQBKci6KEg9Q6H9kovIHoCIVQJJCKE1ENFjnAgcaSGC6rEnxBwA04Tx43t2FnvDAfjkNibxgHxnWb2e/u992bee7tCa00YFsffekFY+nUzFtjW0LrvjRXrCDIAaPLlW0nHL0SsZtVoaF98mLrx3pdhOqLtYPHChahZcYYO7KvPFxvRl5XPp1sN3adWiD1ZAqD6XYK1b/dvE5IWryTt2udLFedwc1+9kLp+vbbpoDh+6TklxBeAi9TL0taeWpdmZzQDry0AcO+jQ12RyohqqoYoo8RDwJrU+qXkjWtfi8Xxt58BdQuwQs9qC/afLwCw8tnQbqYAPsgxE1S6F3EAIXux2oQFKm0ihMsOF71dHYx+f3NND68ghCu1YIoePPQN1pGRABkJ6Bus96CutRZMydTl+TvuiRW1m3n0eDl0vRPcEysqdXn+jsQPsrHMquGeXEaY4Yk4wxWcY5V/9scqOMOVUFthatyTy8QyqwZ+kDURKoMWxNKr2EeqVKcTNOajqKoBgOE28U4tdQl5p5bwCw7BWquaZSzAPlwjlithJtp3pTImSqQRrb2Z8PHGigD4RZuNX6JYj6wj7O4TFLbCO/Mn/m8R+h6rYSUb3ekokRY6f/YukArN979jcW+V/S8g0eT/N3VN3kTqWbQ428m9/8k0P/1aIhF36PccEl6EhOcAUCrXKZXXWS3XKd2vc/TRBG9O5ELC17MmWubD2nKhUKZa26Ba2+D3P+4/MNCFwg59oWVeYhkzgN/JDR8deKBoD7Y+ljEjGZ0sosXVTvbc6RHirr2reNy1OXd6pJsQ+gqjk8VWFYmHrwBzW/n+uMPFiRwHB2I7ih8ciHFxIkd/3Omk5tCDV1t+2nNu5sxxpDFNx+huNhVT3/zMDz8usXC3ddaHBj1GHj/As08fwTS7Kt1HBTmyN29vdwAw+/wbwLVOJ3uAD1wi/dUH7Qei66PfyuRj4Ik9is+hglfbkbfR3cnZm7chlUWLdwmprtCohX4HUtlOcQjLYCu+fzGJH2QRKvP3UNz8bWk1qMxjGTOMThZ3kvgLI5AzFfo379UAAAAASUVORK5CYII=","description":"Base64 of images data"}}},"ItemImage":{"properties":{"raw_image_id":{"type":"string"},"raw_image_url":{"type":"string"}}},"ErrorModel":{"properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"code":{"type":"integer"},"error_message":{"type":"string"},"error_type":{"type":"string","description":"For internal debugging purpose. Please ignore this key"}}}}},"Business":{"description":"Current user business","properties":{"id":{"type":"integer","format":"int64","example":9},"name":{"type":"string","example":"MOKAPOS TEST CAFE 2"},"address":{"type":"string","example":"PIK"},"suite":{"type":"string","example":""},"city":{"type":"string","example":"Jakarta Barat"},"province":{"type":"string","example":"Jakarta"},"postal_code":{"type":"string","example":"12904"},"description":{"type":"string","example":"Just for test"},"email":{"type":"string","example":""},"phone":{"type":"string","example":"082145466567"},"logo":{"type":"string","example":""},"notify_per_deposit":{"type":"boolean"},"notify_per_trans":{"type":"boolean"},"user_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"business_type_id":{"type":"integer","example":3},"business_category_id":{"type":"integer","example":3},"website":{"type":"string"},"twitter":{"type":"string"},"facebook":{"type":"string"},"instagram":{"type":"string"},"notes":{"type":"string"},"latitude":{"type":"double"},"longitude":{"type":"double"},"synchronized_at":{"type":"string"},"outlet_slot":{"type":"integer","example":12},"is_trial":{"type":"boolean"},"current_plan":{"type":"integer","example":12},"expired_at":{"type":"string","example":"2019-01-01T07:00:00.000+07:00"},"last_payment_date":{"type":"string"},"trial_end_at":{"type":"string"}}},"Outlet":{"properties":{"id":{"type":"integer","format":"int64","description":"Outlet ID"},"business_id":{"type":"integer","format":"int64"},"name":{"type":"string"},"address":{"type":"string"},"phone_number":{"type":"string"},"city":{"type":"string"},"province":{"type":"string"},"postal_code":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"synchronized_at":{"type":"string"},"importing":{"type":"boolean"},"exporting":{"type":"boolean"},"notes":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"},"is_paying":{"type":"boolean"}}},"Payment":{"properties":{"id":{"type":"integer"},"status":{"type":"string"},"payment_no":{"type":"I7I91H"},"payment_type":{"type":"string"},"amount_pay":{"type":"number"},"amount_change":{"type":"number"},"total_discount_amount":{"type":"number"},"total_gratuity_amount":{"type":"number"},"total_item_price_amount":{"type":"number"},"total_tax_amount":{"type":"number"},"total_checkouts_amount":{"type":"number"},"is_refunded":{"type":"boolean"},"refunded_reason":{"type":"string"},"refunded_date":{"type":"string"},"business_id":{"type":"integer"},"customer_id":{"type":"integer"},"discount_id":{"type":"integer"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"total_custom_price_amount":{"type":"number"},"include_gratuity_tax":{"type":"boolean"},"parent_payment_id":{"type":"integer"},"refund_amount":{"type":"number"},"refund_type":{"type":"string"},"card_no":{"type":"string"},"created_by":{"type":"integer"},"note":{"type":"string"},"total_collected_amount":{"type":"number"},"server_id":{"type":"integer"},"server_name":{"type":"string"},"server_title":{"type":"string"},"auth_code":{"type":"string"},"cc_name":{"type":"string"},"card_type":{"type":"string"},"transaction_number":{"type":"string"},"transaction_reference":{"type":"string"},"outlet_id":{"type":"integer"},"guid":{"type":"string"},"synchronized_at":{"type":"string"},"uniq_id":{"type":"string"},"transaction_certificate":{"type":"string"},"transaction_status_info":{"type":"string"},"merchant_id":{"type":"string"},"mpos_device_id":{"type":"string"},"pg_mid":{"type":"string"},"pg_setting":{"type":"string"},"order_info":{"type":"string"},"tvr":{"type":"string"},"cvm_result":{"type":"string"},"aid":{"type":"string"},"transaction_date":{"type":"string"},"pii":{"type":"string"},"collected_by":{"type":"string"},"shift_id":{"type":"integer"},"invoice_no":{"type":"string"},"invoice_deposit_amount":{"type":"integer"},"invoice_due_date":{"type":"string"},"invoice_status":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"refund_ids":{"type":"string"},"total_gross_sales":{"type":"number"},"total_net_sales":{"type":"number"},"is_refund_breakdown":{"type":"boolean"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_phone":{"type":"string"},"subtotal":{"type":"number"},"creator_name":{"type":"string"},"table_name":{"type":"string"},"collector_id":{"type":"integer"},"cashlezz_transaction_id":{"type":"string"},"sms_id":{"type":"string"},"receipt_count":{"type":"integer"},"order_id":{"type":"string"},"is_loyalty":{"type":"boolean"},"total_redeem_amount":{"type":"number"},"is_offline":{"type":"boolean"},"is_sales_type":{"type":"boolean"},"server_created_at":{"type":"string"},"total_rounding_amount":{"type":"number","description":"Total rounding amount from a payment. If null then the rounding is not applied in the transaction"}}},"PaymentDiscount":{"type":"object","description":"Discount applied to payment","properties":{"id":{"type":"integer"},"payment_id":{"type":"integer"},"discount_id":{"type":"integer"},"discount_amount":{"type":"number"},"discount_name":{"type":"string"},"discount_type":{"type":"string"},"is_deleted":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"discount_cash":{"type":"number"}}},"PaymentGratuity":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"number"},"total":{"type":"number"},"payment_id":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"gratuity_id":{"type":"string"}}},"PaymentRecord":{"type":"object"},"PaymentTax":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"amount":{"type":"integer"},"total":{"type":"number"},"taxable_amount":{"type":"number"},"payment_id":{"type":"number"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"tax_id":{"type":"integer"}}}}}