openapi: 3.1.0 info: title: “Test Praktek API Programmer”, version: 1.0.0 # servers: # - url: http://localhost:8000 components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT security: bearerAuth: [] paths: /registration: post: description: "Example post description" tags: - "1. Module Membership" summary: requestBody: content: application/json: schema: type: object properties: email: type: string example: dedy@example.com first_name: type: string example: user last_name: type: string example: api password: type: string example: password222 responses: "200": description: request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Registrasi berhasil silahkan login data: type: array example: null "400": description: "Bad request" content: application/json: schema: type: object properties: status: type: integer example: 400 message: type: string example: Parameter email tidak sesuai format data: type: array example: null /login: post: description: "Example post description" tags: - "1. Module Membership" summary: requestBody: content: application/json: schema: type: object properties: email: type: string example: dedy@example.com password: type: string example: password222 responses: "200": description: request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Login Sukses data: type: object properties: token: example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTMsImVtYWlsIjoiZGVkeUBwYW5kaS5pZCIsImlhdCI6MTczMzQ4NzkwNSwiZXhwIjoxNzMzNDkxNTA1fQ.6Cz8A4Hjp4cx8wldKeU2syDrjafKap1t030UKo2hXU8z" "400": description: "Bad request" content: application/json: schema: type: object properties: status: type: integer example: 400 message: type: string example: Parameter email tidak sesuai format data: type: array example: null "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /profile: get: description: "Example post description" tags: - "1. Module Membership" security: - bearerAuth: [] responses: "200": description: request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Sukses data: type: object properties: email: example: dedy@example.com first_name: example: dedy last_name: example: r profile_image: example: https://yoururlapi.com/profile.jpeg "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /profile/update: put: description: "Example post description" tags: - "1. Module Membership" security: - bearerAuth: [] summary: requestBody: content: application/json: schema: type: object properties: first_name: type: string example: Dedy Edited last_name: type: string example: R Edited responses: "200": description: request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Update Pofile berhasil data: type: object properties: email: example: dedy@example.com first_name: example: dedy last_name: example: r profile_image: example: https://yoururlapi.com/profile.jpeg "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /profile/image: put: description: "Example post description" tags: - "1. Module Membership" security: - bearerAuth: [] summary: requestBody: required: true content: multipart/form-data: schema: type: object properties: file: type: string format: binary description: File gambar yang akan diunggah responses: "200": description: request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Update Pofile Image berhasil data: type: object properties: email: example: dedy@example.com first_name: example: dedy last_name: example: r profile_image: example: https://yoururlapi.com/profile.jpeg "400": description: "Bad request" content: application/json: schema: type: object properties: status: type: integer example: 102 message: type: string example: Format Image tidak sesuai data: type: array example: null "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /banner: get: description: "Example post description" tags: - "2. Module Information" responses: "200": description: request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Sukses data: type: array items: type: object properties: banner_name: type: string banner_image: type: string description: type: string example: - banner_name: Banner 1 banner_image: https://yoururlapi.com/dummy.jpeg description: Lorem Ipsum Dolor sit amet - banner_name: Banner 2 banner_image: https://yoururlapi.com/dummy.jpeg description: Lorem Ipsum Dolor sit amet - banner_name: Banner 3 banner_image: https://yoururlapi.com/dummy.jpeg description: Lorem Ipsum Dolor sit amet - banner_name: Banner 4 banner_image: https://yoururlapi.com/dummy.jpeg description: Lorem Ipsum Dolor sit amet - banner_name: Banner 5 banner_image: https://yoururlapi.com/dummy.jpeg description: Lorem Ipsum Dolor sit amet - banner_name: Banner 6 banner_image: https://yoururlapi.com/dummy.jpeg description: Lorem Ipsum Dolor sit amet "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /service: get: description: "Example post description" tags: - "2. Module Information" security: - bearerAuth: [] responses: "200": description: request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Sukses data: type: array items: type: object properties: service_code: type: string service_name: type: string service_icon: type: string service_tarif: type: integer example: - service_code: PAJAK service_name: Pajak PBB service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 40000 - service_code: PLN service_name: Listrik service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 10000 - service_code: PADM service_name: PADM Berlangganan service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 40000 - service_code: Banner 4 service_name: PULSA service_icon: Pulsa service_tarif: 40000 - service_code: PGN service_name: PGN Berlangganan service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 50000 - service_code: MUSIK service_name: Musik Berlangganan service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 50000 - service_code: TV service_name: TV Berlangganan service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 50000 - service_code: PAKET_DATA service_name: Paket Data service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 50000 - service_code: VOUCHER_GAME service_name: Voucher Game service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 100000 - service_code: VOUCHER_MAKANAN service_name: Voucher Makanan service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 100000 - service_code: QURBAN service_name: Qurban service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 200000 - service_code: ZAKAT service_name: Zakat service_icon: https://nutech-integrasi.app/dummy.jpg service_tarif: 300000 "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /balance: get: description: "Example post description" tags: - "3. Modulee Transaction" security: - bearerAuth: [] responses: "200": description: Get Balance / Saldo Berhasil content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Get Data Balance Berhasil data: type: object properties: balance: example: 1000000 "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /topup: post: description: "Example post description" tags: - "3. Modulee Transaction" security: - bearerAuth: [] summary: requestBody: content: application/json: schema: type: object properties: top_up_amount: type: integer example: 10000000 responses: "200": description: Request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Top Up Balance Berhasil data: type: object properties: balance: example: 1000000 "400": description: "Bad request" content: application/json: schema: type: object properties: status: type: integer example: 400 message: type: string example: Parameter amount hanya boleh angka dan tidak boleh lebih kecil dari 0 data: type: array example: null "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /transaction: post: description: "Example post description" tags: - "3. Modulee Transaction" security: - bearerAuth: [] summary: requestBody: content: application/json: schema: type: object properties: service_code: type: string example: QURBAN responses: "200": description: Request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Transaksi Berhasil data: type: object properties: invoice_number: example: INV7122024-005 service_code: example: QURBAN service_name: example: QURBAN Berlangganan transaction_type: example: PAYMENT total_amount: example: 50000 created_on: example: "2024-12-7T09:40:34.000Z" "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null /transaction/history: get: description: "Example post description" tags: - "3. Modulee Transaction" security: - bearerAuth: [] parameters: - in: query name: offset required: false schema: type: integer example: 0 - in: query name: limit required: false schema: type: integer example: 3 responses: "200": description: Request successfully content: application/json: schema: type: object properties: status: type: integer example: 200 message: type: string example: Get History Berhasil data: type: object properties: offset: type: integer example: 0 limit: type: integer example: 3 records: type: array items: type: object properties: invoice_number: type: string transaction_type: type: string description: type: string total_amount: type: integer created_on: type: string example: - invoice_number: INV7122024-005 transaction_type: TOPUP description: Top Up balance total_amount: 1000000 created_on: "2024-12-7T09:40:34.000Z" - invoice_number: INV7122024-006 transaction_type: QURBAN description: Top Up balance total_amount: 100000 created_on: "2024-12-7T09:40:34.000Z" - invoice_number: INV7122024-007 transaction_type: MUSIK description: Top Up balance total_amount: 50000 created_on: "2024-12-7T09:40:34.000Z" "401": description: "Unauthorized" content: application/json: schema: type: object properties: status: type: integer example: 401 message: type: string example: Token tidak tidak valid atau kadaluwarsa data: type: array example: null