@extends('layouts.sidebar') @section('content')

API Dokumentasi

API Dokumentasi

@if(isset($user)) @endif
HTTP Method POST
API URL {{ url('/api/pulsa') }}
API Key {{ $user->api_key }}
Example Code PHP Example

Get Service

Parameter Deskripsi
key API Key anda
action services

Success Response:

                                                {
                                                    success: true,
                                                    data: {
                                                        id: 1,
                                                        name: "Telkomsel 5000",
                                                        oprator: "Telkomsel",
                                                        category: "Pulsa All Operator",
                                                        price: 5250,
                                                        status: 'Active'
                                                    }
                                                }
                                            

Failed response:

                                                {
                                                    success: false,
                                                    error: "Wrong API Key"
                                                }
                                            

Pemesanan Baru

Parameter Deskripsi
key API Key anda
action order
service Id layanan, bisa dilihat di Daftar layanan
target Nomor telepon target.

Success Response:

                                                {
                                                    success: true,
                                                    data: {
                                                        id: 2413
                                                    }
                                                }
                                            

Failed response:

                                                {
                                                    success: false,
                                                    error: "Service not found"
                                                }
                                            

Order status

Parameter Deskripsi
key API Key anda
action status
order_id ID Pesanan

Success Response:

                                                {
                                                    success: true,
                                                    data: {
                                                        status: "Success",
                                                        sn: 3627263828191,
                                                    }
                                                }
                                            

Failed response:

                                                {
                                                    success: false,
                                                    error: "Order id tidak ditemukan"
                                                }
                                            
@endsection