> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ngapainrepot.space/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ngapainrepot.space/_mcp/server.

# Phone Prepaid

POST https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2
Content-Type: application/json

Reference: https://docs.ngapainrepot.space/biller/01-provider-raja-biller/01-provider-raja-biller-direct-purchase/phone-prepaid

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2:
    post:
      operationId: phone-prepaid
      summary: Phone Prepaid
      tags:
        - >-
          subpackage_01ProviderRajaBiller.subpackage_01ProviderRajaBiller/01ProviderRajaBillerDirectPurchase
      parameters:
        - name: x-api-key
          in: header
          required: false
          schema:
            type: string
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/01 Provider - RajaBiller_01 Provider -
                  RajaBiller > Direct Purchase_Phone Prepaid_Response_201
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                orderId:
                  type: string
                phoneNumber:
                  type: string
                productCode:
                  type: string
                providerType:
                  type: string
              required:
                - orderId
                - phoneNumber
                - productCode
                - providerType
servers:
  - url: https://c-dev-api.rajabiller.com
    description: https://c-dev-api.rajabiller.com
  - url: https:/
    description: https://{base_url}
  - url: https://api.stg.servermitra.com
    description: https://api.stg.servermitra.com
components:
  schemas:
    InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataNormalizedResult:
      type: object
      properties:
        message:
          type: string
        rootKey:
          type: string
        responseCode:
          type: string
        resultStatus:
          type: string
      required:
        - message
        - rootKey
        - responseCode
        - resultStatus
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataNormalizedResult
    InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataProviderRequestBody:
      type: object
      properties:
        order_id:
          type: string
        phone_number:
          type: string
        product_code:
          type: string
      required:
        - order_id
        - phone_number
        - product_code
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataProviderRequestBody
    InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataRawProviderResponsePrepaidPhoneTransaction:
      type: object
      properties:
        message:
          type: string
        currency:
          type: string
        order_id:
          type: string
        total_price:
          type: string
        phone_number:
          type: string
        response_code:
          type: string
        serial_number:
          type: string
      required:
        - message
        - currency
        - order_id
        - total_price
        - phone_number
        - response_code
        - serial_number
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataRawProviderResponsePrepaidPhoneTransaction
    InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataRawProviderResponse:
      type: object
      properties:
        prepaid_phone_transaction:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataRawProviderResponsePrepaidPhoneTransaction
      required:
        - prepaid_phone_transaction
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataRawProviderResponse
    InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        operation:
          type: string
        providerCode:
          type: string
        providerType:
          type: string
        normalizedResult:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataNormalizedResult
        providerRequestBody:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataProviderRequestBody
        rawProviderResponse:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaDataRawProviderResponse
      required:
        - operation
        - providerCode
        - providerType
        - normalizedResult
        - providerRequestBody
        - rawProviderResponse
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaData
    InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaMeta:
      type: object
      properties:
        requestId:
          type: string
        timestamp:
          type: string
          format: date-time
      required:
        - requestId
        - timestamp
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaMeta
    01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_Response_201:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaData
        meta:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostInternalProvidersMitraBukalapakDirectPurchase2PostResponsesContentApplicationJsonSchemaMeta
        success:
          type: boolean
      required:
        - data
        - meta
        - success
      title: >-
        01 Provider - RajaBiller_01 Provider - RajaBiller > Direct
        Purchase_Phone Prepaid_Response_201

```

## Examples



**Request**

```json
{
  "orderId": "manual-phone-topup-{{$timestamp}}",
  "phoneNumber": "081234567890",
  "productCode": "topup-telkomsel-50000",
  "providerType": "prepaid-phone-topup"
}
```

**Response**

```json
{
  "data": {
    "operation": "DIRECT_PURCHASE",
    "providerCode": "mitra_bukalapak",
    "providerType": "prepaid-phone-topup",
    "normalizedResult": {
      "message": "pending",
      "rootKey": "prepaid_phone_transaction",
      "responseCode": "0068",
      "resultStatus": "PENDING"
    },
    "providerRequestBody": {
      "order_id": "manual-phone-topup-1780385856",
      "phone_number": "[REDACTED]",
      "product_code": "topup-telkomsel-50000"
    },
    "rawProviderResponse": {
      "prepaid_phone_transaction": {
        "message": "pending",
        "currency": "IDR",
        "order_id": "manual-phone-topup-1780385856",
        "total_price": "52490",
        "phone_number": "[REDACTED]",
        "response_code": "0068",
        "serial_number": ""
      }
    }
  },
  "meta": {
    "requestId": "req_2e96f7fb-5914-4658-8dfe-e08f3d84ea00",
    "timestamp": "2026-06-02T07:37:39.289Z"
  },
  "success": true
}
```

**SDK Code**

```python 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_example
import requests

url = "https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2"

payload = {
    "orderId": "manual-phone-topup-{{$timestamp}}",
    "phoneNumber": "081234567890",
    "productCode": "topup-telkomsel-50000",
    "providerType": "prepaid-phone-topup"
}
headers = {
    "x-api-key": "{{internal_api_key}}",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_example
const url = 'https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{internal_api_key}}', 'Content-Type': 'application/json'},
  body: '{"orderId":"manual-phone-topup-{{$timestamp}}","phoneNumber":"081234567890","productCode":"topup-telkomsel-50000","providerType":"prepaid-phone-topup"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2"

	payload := strings.NewReader("{\n  \"orderId\": \"manual-phone-topup-{{$timestamp}}\",\n  \"phoneNumber\": \"081234567890\",\n  \"productCode\": \"topup-telkomsel-50000\",\n  \"providerType\": \"prepaid-phone-topup\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "{{internal_api_key}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_example
require 'uri'
require 'net/http'

url = URI("https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '{{internal_api_key}}'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"orderId\": \"manual-phone-topup-{{$timestamp}}\",\n  \"phoneNumber\": \"081234567890\",\n  \"productCode\": \"topup-telkomsel-50000\",\n  \"providerType\": \"prepaid-phone-topup\"\n}"

response = http.request(request)
puts response.read_body
```

```java 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2")
  .header("x-api-key", "{{internal_api_key}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"orderId\": \"manual-phone-topup-{{$timestamp}}\",\n  \"phoneNumber\": \"081234567890\",\n  \"productCode\": \"topup-telkomsel-50000\",\n  \"providerType\": \"prepaid-phone-topup\"\n}")
  .asString();
```

```php 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2', [
  'body' => '{
  "orderId": "manual-phone-topup-{{$timestamp}}",
  "phoneNumber": "081234567890",
  "productCode": "topup-telkomsel-50000",
  "providerType": "prepaid-phone-topup"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{internal_api_key}}',
  ],
]);

echo $response->getBody();
```

```csharp 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_example
using RestSharp;

var client = new RestClient("https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "{{internal_api_key}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"orderId\": \"manual-phone-topup-{{$timestamp}}\",\n  \"phoneNumber\": \"081234567890\",\n  \"productCode\": \"topup-telkomsel-50000\",\n  \"providerType\": \"prepaid-phone-topup\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Phone Prepaid_example
import Foundation

let headers = [
  "x-api-key": "{{internal_api_key}}",
  "Content-Type": "application/json"
]
let parameters = [
  "orderId": "manual-phone-topup-{{$timestamp}}",
  "phoneNumber": "081234567890",
  "productCode": "topup-telkomsel-50000",
  "providerType": "prepaid-phone-topup"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase#postInternalProvidersMitra-bukalapakDirect-purchase2")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```