{"info":{"_postman_id":"0d3d0d15-dd8a-4b16-b920-9409c8e7d825","name":"Moota APIs","description":"# Overview\nMoota APIs is using OAuth 2.0 as the authorization framework. To get the access token, you need to be authorized by client_id and client_secret.\n\n> client_secret dan client_id are used for authentication using OAuth 2.0. You can generate client_id and client_secret after signin and create application.\n\n> **Do not share your client_secret!**\nThis token act like password, keep it secret and secure, should anyone obtain this information, immediately reset or revoke your client_secret.\n\n# Authorize\nBefore you obtaining access token, you must get **code** from authorize server. you must redirect to authorize url.\n\nYou must register your application at our [developer portal](https://app.moota.co/integration/api/application/ \"Moota Developer Portal\").\n\n**Authorize URL**\n> GET `https://app.moota.co/oauth/authorize?client_id={client_id}&redirect_uri={redirect_url}&response_type=code&scope={your_scopes}`\n\n# Access Token\n\n**access_token** is an opaque string token that identify the user of the API. This token is required each time an application call API. There are several way to obtain an **access_token**, which will be described bellow.\n\n> **Access Token**\n> POST `https://app.moota.co/oauth/token`\n\n```HTTP\nPOST /oauth/token HTTP/1.1\nHost: app.moota.co\nAuthorization: Bearer {access_token}\nContent-Type: application/x-www-form-urlencoded\nAccept: application/json\n\ngrant_type=authorization_code\nclient_id={client_id}\nclient_secret={client_secret}\nredirect_uri={redirect_uri}\ncode={code_from_authorize}\n```\n\n> **Access token must be stored in a secure storage!** Since **access_token** is portable which mean that once its obtained any request with valid credentials will be considered valid, any agent (mobile device, web browser, or server) could call API requests.\n\n# Obtaining Access Token\nAccess token can be obtained in many way, depend on the grant_type of the application. To access all the services, you will need the access token with **grant_type = authorization_code**\n\n# Client Credentials Grant\n\n**authorization_code** grant will provide application access to API without requiring any user credential. Any call requested using **access_token** obtained using this method are made on behalf of the application instead of the user.\n\nThis grant type is designed to be used by server to server call. In order to obtain **access_token** a request must be made with following specification\n\n\n# Headers\nTo successfully communicate with Moota APIs, you must provide the following headers in every API request:\n\n### Query Parameters\nParameter | Data Type | Mandatory | Description\n--------- | ------- | ------- | -----------\nAuthorization **access_token** | String | Y | OAuth2.0 Token Format value: Bearer {access_token}\nAccept | String | N | Content of response body e.g. application/json\n\n# Rate limit\n\nYou only can request to Moota APIs maximum 15 hit per minutes.\n\n# Webhook\nMoota can send webhook events that notify your application any time an event happens on your mutations.\n\n```JSON\n[{\n    \"account_number\": \"12312412312\",\n    \"date\": \"2019-11-10 14:33:01\",\n    \"description\": \"TRSF E-BANKING CR 11\\/10 124123 MOOTA CO\",\n    \"amount\": 50000,\n    \"type\": \"CR\",\n    \"balance\": 520000.00,\n    \"updated_at\": \"2019-11-10 14:33:01\",\n    \"created_at\": \"2019-11-10 14:33:01\",\n    \"mutation_id\": \"IHBb97sba7d\",\n    \"token\": \"OASiuh(DYNb97\"\n}]\n```\n\nThe request will have a header called Signature that will contain a signature the receiving app can use to verify the payload hasn't been tampered with.\n\n```php\n// payload is the array passed to the `payload` method of the webhook\n// secret is the string given to the `signUsingSecret` method on the webhook.\n\n$signature = hash_hmac('sha256', $payload_json_from_response, $secret);\n```\n\n\nFor testing purpose, you can user our [sandbox portal](https://app.moota.co/integration/webhook/sandbox/ \"Sandbox Portal\")","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"User","item":[{"name":"User Details","id":"a53e7ce5-49f8-4d6c-8060-9824eb408782","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{baseurl}}user"},"response":[],"_postman_id":"a53e7ce5-49f8-4d6c-8060-9824eb408782"},{"name":"Update User Details","id":"34a34f01-90e0-4c89-8c96-e4ebe8299e3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"","type":"text"}]},"url":"{{baseurl}}user"},"response":[],"_postman_id":"34a34f01-90e0-4c89-8c96-e4ebe8299e3a"}],"id":"165e0bef-276b-43f9-8ffd-6086f7502078","_postman_id":"165e0bef-276b-43f9-8ffd-6086f7502078"},{"name":"Bank","item":[{"name":"Bank List","id":"6c9a6cbb-b8ce-454d-99ad-a38a8432dd0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{baseurl}}bank"},"response":[],"_postman_id":"6c9a6cbb-b8ce-454d-99ad-a38a8432dd0a"},{"name":"Bank Store","id":"1c54e34d-f237-4392-87f0-d56db28f7002","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"corporate_id","value":"","type":"text"},{"key":"bank_type","value":"","type":"text"},{"key":"username","value":"","type":"text"},{"key":"password","value":"","type":"text"},{"key":"name_holder","value":"","type":"text"},{"key":"account_number","value":"","type":"text"}]},"url":"{{baseurl}}bank/store"},"response":[],"_postman_id":"1c54e34d-f237-4392-87f0-d56db28f7002"},{"name":"Bank Update","id":"58a8d757-5329-4129-9cb7-6201de986441","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[{"key":"corporate_id","type":"text","value":"","disabled":true},{"key":"bank_type","type":"text","value":"","disabled":true},{"key":"username","type":"text","value":"","disabled":true},{"key":"password","type":"text","value":"","disabled":true},{"key":"atas_nama","type":"text","value":"","disabled":true},{"key":"account_number","type":"text","value":"","disabled":true}]},"url":"{{baseurl}}bank/update/{{bank_token}}"},"response":[],"_postman_id":"58a8d757-5329-4129-9cb7-6201de986441"},{"name":"Force Crawling","id":"3207de58-1061-4ada-8e9b-aac512675a2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{baseurl}}bank/{bank}/refresh"},"response":[],"_postman_id":"3207de58-1061-4ada-8e9b-aac512675a2e"},{"name":"Delete Bank","id":"5bdf5913-9056-4ebf-ad16-0201c15d791a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{baseurl}}bank/{{bank_token}}/destroy"},"response":[],"_postman_id":"5bdf5913-9056-4ebf-ad16-0201c15d791a"}],"id":"15255463-4d85-4191-8350-5af4fdb182bb","_postman_id":"15255463-4d85-4191-8350-5af4fdb182bb"},{"name":"Mutation","item":[{"name":"Store","id":"9735b969-04b0-4a89-a444-6310fdff4f29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"amount","type":"text","value":""},{"key":"date","value":"","description":"format : DD-MM-YYYY","type":"text"},{"key":"type","value":"","description":"value : credit, debit","type":"text"},{"key":"note","value":"","description":"Note max 255","type":"text"}]},"url":"{{baseurl}}mutation"},"response":[],"_postman_id":"9735b969-04b0-4a89-a444-6310fdff4f29"},{"name":"Mutation","id":"c8403fcd-6c7a-47e7-a4eb-35847e4ee067","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{baseurl}}mutation?type&bank=&amount&description&note&date&start_date=&end_date=","host":["{{baseurl}}mutation"],"query":[{"key":"type","value":null,"description":"Mutation Filter by Type : cr or db"},{"key":"bank","value":"","description":"Mutation By Bank Token / ID"},{"key":"amount","value":null,"description":"Mutation filter by amount \"LIKE\""},{"key":"description","value":null,"description":"Mutation filter by description \"LIKE\""},{"key":"note","value":null,"description":"Mutation Filer By note \"LIKE\""},{"key":"date","value":null,"description":"Muation Filter By date \"LIKE\""},{"key":"start_date","value":"","description":"Mutation Filter By Date range, start_date is required, format : YYYY-MM-DD"},{"key":"end_date","value":"","description":"Mutation Filter By Date range, start_date is required, YYYY-MM-DD"}]}},"response":[],"_postman_id":"c8403fcd-6c7a-47e7-a4eb-35847e4ee067"},{"name":"Update Note","id":"d14a1849-f649-4e64-879f-8d7a91e49404","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"note","value":"Note","type":"text"}]},"url":"{{baseurl}}mutation/{mutation_id}/note"},"response":[],"_postman_id":"d14a1849-f649-4e64-879f-8d7a91e49404"},{"name":"Mutation Webhook","id":"73bfb4b5-d633-44dd-8254-3715739018c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{baseurl}}mutation/{mutation_id}/webhook"},"response":[],"_postman_id":"73bfb4b5-d633-44dd-8254-3715739018c9"},{"name":"Delete Mutation","id":"7106e50e-c301-4141-b756-0fef242eea59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{baseurl}}mutation/{mutation_id}/destory"},"response":[],"_postman_id":"7106e50e-c301-4141-b756-0fef242eea59"}],"id":"5d98bdc9-e075-497b-8fd1-bfb5992249d3","_postman_id":"5d98bdc9-e075-497b-8fd1-bfb5992249d3"},{"name":"Topup","item":[{"name":"List","id":"db5655e4-b094-44ee-9fcc-1ba2b3b5be0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"amount","type":"text","value":"","description":"content : 50000, 100000, 150000, 200000, 500000, 1000000, 1500000, 2500000, 5000000, 10000000"}]},"url":{"raw":"{{baseurl}}topup?page=1","host":["{{baseurl}}topup"],"query":[{"key":"page","value":"1","description":"list in a page"}]}},"response":[],"_postman_id":"db5655e4-b094-44ee-9fcc-1ba2b3b5be0b"},{"name":"Store","id":"f8c681d5-7166-41a0-900b-42bfa1ce6489","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"amount","type":"text","value":"","description":"content : 50000, 100000, 150000, 200000, 500000, 1000000, 1500000, 2500000, 5000000, 10000000"}]},"url":"{{baseurl}}topup"},"response":[],"_postman_id":"f8c681d5-7166-41a0-900b-42bfa1ce6489"},{"name":"Update","id":"6558c263-29d8-4ddf-8b3e-36b3836fe957","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"token","value":"","description":"topup token","type":"text"},{"description":"file upload : max 1 MB, ext : .png, .jpg, .jpeg","key":"file","type":"file","value":null}]},"url":"{{baseurl}}topup/{token}/confirmation"},"response":[],"_postman_id":"6558c263-29d8-4ddf-8b3e-36b3836fe957"},{"name":"Download","id":"32f0872d-81be-460f-b4e7-19f49c75b8b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"description":"topup token","key":"token","type":"text","value":""}]},"url":"{{baseurl}}topup/download"},"response":[],"_postman_id":"32f0872d-81be-460f-b4e7-19f49c75b8b6"}],"id":"c1dd4337-b2e3-4bf9-94de-0a6f6da50cb5","description":"Work In Progress","event":[{"listen":"prerequest","script":{"id":"eeb53ea7-eacd-48b6-8170-723da8179983","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bef0d3a0-804a-4f8a-92c2-7ed6f4222bd9","type":"text/javascript","exec":[""]}}],"_postman_id":"c1dd4337-b2e3-4bf9-94de-0a6f6da50cb5"},{"name":"Transaction","item":[{"name":"List","id":"5b220fed-da39-4815-9512-f66c4a076f14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{baseurl}}transaction?page=1&start_date&end_date","host":["{{baseurl}}transaction"],"query":[{"key":"page","value":"1","description":"page number"},{"key":"start_date","value":null,"description":"date format : DD-MM-YYYY"},{"key":"end_date","value":null,"description":"date format : DD-MM-YYYY"}]}},"response":[],"_postman_id":"5b220fed-da39-4815-9512-f66c4a076f14"}],"id":"dea5f5ba-94da-49ec-a3c5-4123d36f526c","description":"Work In Progress","event":[{"listen":"prerequest","script":{"id":"34a9f978-13ad-43b0-9602-a99bc48baeb7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ed1caeb2-c3b0-4c03-8f87-d9f1b952301b","type":"text/javascript","exec":[""]}}],"_postman_id":"dea5f5ba-94da-49ec-a3c5-4123d36f526c"},{"name":"Webhook","item":[],"id":"eb899eb1-d399-41d3-8f47-859d9bdd69c0","_postman_id":"eb899eb1-d399-41d3-8f47-859d9bdd69c0"}],"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"event":[{"listen":"prerequest","script":{"id":"e060dd9a-597c-4d60-be4d-157c8fc890d9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"483d6ff6-1191-4177-bf07-4c5ee82132b0","type":"text/javascript","exec":[""]}}]}