Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AUTH
- 1. Register
- a. Request (JSON)
- {
- "email": "ronidt@yahoo.com",
- "no_tlp": "085712138987",
- "password": "roni123"
- }
- b. Response (JSON)
- - Success
- {
- "success": true,
- "messages": "Register sukses",
- "data": {
- "no_tlp": "085712138987",
- "email": "ronidt@yahoo.com",
- "password": "$2y$10$.m3z55jQHIGqQauJrJdcy.sjGV4YVlobydNow6PbWKgkf0tgwqHoO",
- "status": "unverified",
- "status_mitra_delivery": "TA",
- "api_token": "",
- "email_otp": "Bbw1nGnh3FhCSHi1i2IuLgzrjDX3iSCR4CxXA8Vz",
- "updated_at": "2020-07-14T03:41:58.000000Z",
- "created_at": "2020-07-14T03:41:58.000000Z",
- "id": 24
- }
- }
- - Failed
- {
- "success": false,
- "messages": "Email sudah terdaftar, silahkan login dengan akun Anda",
- "data": {
- "_id": "5f0d29863fad0673ce186f96",
- "email": "ronidt@yahoo.com",
- "no_tlp": "085712138987",
- "status": "unverified",
- "status_mitra_delivery": "TA",
- "updated_at": "2020-07-14 10:41:58",
- "created_at": "2020-07-14 10:41:58",
- "role_ids": [
- "5f080febc19d8c01e909d01b"
- ]
- }
- }
- 2. Login
- a. Request (JSON)
- {
- "email": "085712138987",
- "password": "roni123",
- "login": "mobile",
- "login_via":"mobile_delivery",
- "token": "mitra"
- }
- b. Response (JSON)
- - Success
- {
- "success": true,
- "messages": "Sukses Login",
- "data": {
- "user": {
- "_id": "5f0d29863fad0673ce186f96",
- "email": "ronidt@yahoo.com",
- "no_tlp": "085712138987",
- "status": "unverified",
- "status_mitra_delivery": "TA",
- "updated_at": "2020-07-14 10:44:44",
- "created_at": "2020-07-14 10:41:58",
- "role_ids": [
- "5f080febc19d8c01e909d01b"
- ],
- "paket_perdana": true,
- "uang": 0,
- "address": []
- }
- }
- }
- - Failed
- {
- "success": false,
- "messages": "User Id atau Password Salah",
- "data": null
- }
- 3. UPDATE
- a. Request
- {
- "name": "roniYahooDotCom",
- "email": "ronidt@yahoo.com",
- "no_tlp": "085712138789",
- "rekening_atas_nama": "roniYahooCom",
- "no_rekening": "02345678901234567",
- "nama_bank": "BCA",
- "alamat": "Rt. 001/05,No. 42, Jl. Kemang Utara IX, RT.01,RW.05 Kel, RT.11/RW.4, Duren Tiga, Kec. Pancoran, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 12730, Indonesia",
- "coordinate": {
- "longitude": 106.82529129087925,
- "latitude": -6.25473902102103
- },
- "patokan_alamat": "Sdn Padurenan 4"
- }
- b. Respone
- - Success
- {
- "success": true,
- "messages": "Update Account Success !",
- "data": {
- "success": true,
- "messages": "Update Account Success !",
- "data": {
- "_id": "5f0ea0b8ceea6a43563d5f36",
- "email": "ronidt@yahoo.com",
- "no_tlp": "085712138789",
- "status": "unverified",
- "status_mitra_delivery": "TA",
- "updated_at": "2020-07-15 15:19:51",
- "created_at": "2020-07-15 13:22:48",
- "role_ids": [
- "5f080febc19d8c01e909d01b"
- ],
- "paket_perdana": true,
- "uang": 0,
- "nama_bank": "BCA",
- "name": "roniYahooDotCom",
- "no_rekening": "02345678901234567",
- "rekening_atas_nama": "roniYahooCom"
- }
- }
- }
- - Failed
- {
- "success": false,
- "messages": "Nomor Rekening data anda tidak lengkap"
- }
Add Comment
Please, Sign In to add comment