> 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.

# Game Voucher

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

Reference: https://docs.ngapainrepot.space/biller/01-provider-raja-biller/01-provider-raja-biller-direct-purchase/game-voucher

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /internal/providers/mitra-bukalapak/direct-purchase:
    post:
      operationId: game-voucher
      summary: Game Voucher
      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_Game Voucher_Response_201
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                orderId:
                  type: string
                productCode:
                  type: string
                providerType:
                  type: string
              required:
                - orderId
                - 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:
    InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataNormalizedResult:
      type: object
      properties:
        message:
          type: string
        rootKey:
          type: string
        responseCode:
          type: string
        resultStatus:
          type: string
      required:
        - message
        - rootKey
        - responseCode
        - resultStatus
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataNormalizedResult
    InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataProviderRequestBody:
      type: object
      properties:
        order_id:
          type: string
        product_code:
          type: string
      required:
        - order_id
        - product_code
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataProviderRequestBody
    InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataRawProviderResponseGameVoucherTransaction:
      type: object
      properties:
        message:
          type: string
        currency:
          type: string
        order_id:
          type: string
        total_price:
          type: string
        voucher_code:
          type: string
        response_code:
          type: string
        serial_number:
          type: string
      required:
        - message
        - currency
        - order_id
        - total_price
        - voucher_code
        - response_code
        - serial_number
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataRawProviderResponseGameVoucherTransaction
    InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataRawProviderResponse:
      type: object
      properties:
        game_voucher_transaction:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataRawProviderResponseGameVoucherTransaction
      required:
        - game_voucher_transaction
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataRawProviderResponse
    InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        operation:
          type: string
        providerCode:
          type: string
        providerType:
          type: string
        normalizedResult:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataNormalizedResult
        providerRequestBody:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataProviderRequestBody
        rawProviderResponse:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaDataRawProviderResponse
      required:
        - operation
        - providerCode
        - providerType
        - normalizedResult
        - providerRequestBody
        - rawProviderResponse
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaData
    InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaMeta:
      type: object
      properties:
        requestId:
          type: string
        timestamp:
          type: string
          format: date-time
      required:
        - requestId
        - timestamp
      title: >-
        InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaMeta
    01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Game Voucher_Response_201:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaData
        meta:
          $ref: >-
            #/components/schemas/InternalProvidersMitraBukalapakDirectPurchasePostResponsesContentApplicationJsonSchemaMeta
        success:
          type: boolean
      required:
        - data
        - meta
        - success
      title: >-
        01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Game
        Voucher_Response_201

```

## Examples

### 0000 - Success



**Request**

```json
undefined
```

**Response**

```json
{
  "data": {
    "operation": "DIRECT_PURCHASE",
    "providerCode": "mitra_bukalapak",
    "providerType": "game-voucher",
    "normalizedResult": {
      "message": "successful",
      "rootKey": "game_voucher_transaction",
      "responseCode": "0000",
      "resultStatus": "SUCCESS"
    },
    "providerRequestBody": {
      "order_id": "manual-gv-0000-1780382184",
      "product_code": "game-voucher-test-000000"
    },
    "rawProviderResponse": {
      "game_voucher_transaction": {
        "message": "successful",
        "currency": "IDR",
        "order_id": "manual-gv-0000-1780382184",
        "total_price": "5000",
        "voucher_code": "testIDRxxk-1000552989",
        "response_code": "0000",
        "serial_number": ""
      }
    }
  },
  "meta": {
    "requestId": "req_c864e125-fa75-49df-9c2f-d83965be658d",
    "timestamp": "2026-06-02T06:36:26.000Z"
  },
  "success": true
}
```

**SDK Code**

```python 0000 - Success
import requests

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

headers = {
    "x-api-key": "{{internal_api_key}}",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 0000 - Success
const url = 'https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{internal_api_key}}', 'Content-Type': 'application/json'},
  body: undefined
};

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

```go 0000 - Success
package main

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

func main() {

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

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

	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 0000 - Success
require 'uri'
require 'net/http'

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

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'

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

```java 0000 - Success
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")
  .header("x-api-key", "{{internal_api_key}}")
  .header("Content-Type", "application/json")
  .asString();
```

```php 0000 - Success
<?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', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{internal_api_key}}',
  ],
]);

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

```csharp 0000 - Success
using RestSharp;

var client = new RestClient("https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "{{internal_api_key}}");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 0000 - Success
import Foundation

let headers = [
  "x-api-key": "{{internal_api_key}}",
  "Content-Type": "application/json"
]

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

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()
```

### 0030 - Failure



**Request**

```json
undefined
```

**Response**

```json
{
  "data": {
    "operation": "DIRECT_PURCHASE",
    "providerCode": "mitra_bukalapak",
    "providerType": "game-voucher",
    "normalizedResult": {
      "message": "invalid message",
      "rootKey": "game_voucher_transaction",
      "responseCode": "0030",
      "resultStatus": "PENDING"
    },
    "providerRequestBody": {
      "order_id": "manual-gv-0030-1780387557",
      "product_code": "game-voucher-test-000030"
    },
    "rawProviderResponse": {
      "game_voucher_transaction": {
        "message": "invalid message",
        "currency": "IDR",
        "order_id": "manual-gv-0030-1780387557",
        "total_price": "5000",
        "voucher_code": "",
        "response_code": "0030",
        "serial_number": ""
      }
    }
  },
  "meta": {
    "requestId": "req_32a01adc-cb0c-4ed0-a16e-c0570533b49b",
    "timestamp": "2026-06-02T08:05:58.342Z"
  },
  "success": true
}
```

**SDK Code**

```python 0030 - Failure
import requests

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

headers = {
    "x-api-key": "{{internal_api_key}}",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 0030 - Failure
const url = 'https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{internal_api_key}}', 'Content-Type': 'application/json'},
  body: undefined
};

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

```go 0030 - Failure
package main

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

func main() {

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

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

	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 0030 - Failure
require 'uri'
require 'net/http'

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

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'

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

```java 0030 - Failure
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")
  .header("x-api-key", "{{internal_api_key}}")
  .header("Content-Type", "application/json")
  .asString();
```

```php 0030 - Failure
<?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', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{internal_api_key}}',
  ],
]);

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

```csharp 0030 - Failure
using RestSharp;

var client = new RestClient("https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "{{internal_api_key}}");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 0030 - Failure
import Foundation

let headers = [
  "x-api-key": "{{internal_api_key}}",
  "Content-Type": "application/json"
]

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

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()
```

### 0068 - Pending Advice



**Request**

```json
undefined
```

**Response**

```json
{
  "data": {
    "operation": "DIRECT_PURCHASE",
    "providerCode": "mitra_bukalapak",
    "providerType": "game-voucher",
    "normalizedResult": {
      "message": "pending",
      "rootKey": "game_voucher_transaction",
      "responseCode": "0068",
      "resultStatus": "PENDING"
    },
    "providerRequestBody": {
      "order_id": "manual-gv-0068-1780387658",
      "product_code": "game-voucher-test-000068"
    },
    "rawProviderResponse": {
      "game_voucher_transaction": {
        "message": "pending",
        "currency": "IDR",
        "order_id": "manual-gv-0068-1780387658",
        "total_price": "5000",
        "voucher_code": "",
        "response_code": "0068",
        "serial_number": ""
      }
    }
  },
  "meta": {
    "requestId": "req_a1ef5c18-3023-41bd-8e0d-25cd50068e7a",
    "timestamp": "2026-06-02T08:07:39.203Z"
  },
  "success": true
}
```

**SDK Code**

```python 0068 - Pending Advice
import requests

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

headers = {
    "x-api-key": "{{internal_api_key}}",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 0068 - Pending Advice
const url = 'https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{internal_api_key}}', 'Content-Type': 'application/json'},
  body: undefined
};

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

```go 0068 - Pending Advice
package main

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

func main() {

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

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

	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 0068 - Pending Advice
require 'uri'
require 'net/http'

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

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'

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

```java 0068 - Pending Advice
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")
  .header("x-api-key", "{{internal_api_key}}")
  .header("Content-Type", "application/json")
  .asString();
```

```php 0068 - Pending Advice
<?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', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{internal_api_key}}',
  ],
]);

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

```csharp 0068 - Pending Advice
using RestSharp;

var client = new RestClient("https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "{{internal_api_key}}");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 0068 - Pending Advice
import Foundation

let headers = [
  "x-api-key": "{{internal_api_key}}",
  "Content-Type": "application/json"
]

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

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()
```

### 0033 - Unknown Product



**Request**

```json
undefined
```

**Response**

```json
{
  "data": {
    "operation": "DIRECT_PURCHASE",
    "providerCode": "mitra_bukalapak",
    "providerType": "game-voucher",
    "normalizedResult": {
      "message": "unknown product",
      "rootKey": "game_voucher_transaction",
      "responseCode": "0033",
      "resultStatus": "PENDING"
    },
    "providerRequestBody": {
      "order_id": "manual-gv-0033-1780387623",
      "product_code": "game-voucher-test-000033"
    },
    "rawProviderResponse": {
      "game_voucher_transaction": {
        "message": "unknown product",
        "currency": "IDR",
        "order_id": "manual-gv-0033-1780387623",
        "total_price": "5000",
        "voucher_code": "",
        "response_code": "0033",
        "serial_number": ""
      }
    }
  },
  "meta": {
    "requestId": "req_45d2f4e6-6d43-49a1-9263-c77ac987e59d",
    "timestamp": "2026-06-02T08:07:03.723Z"
  },
  "success": true
}
```

**SDK Code**

```python 0033 - Unknown Product
import requests

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

headers = {
    "x-api-key": "{{internal_api_key}}",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 0033 - Unknown Product
const url = 'https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{internal_api_key}}', 'Content-Type': 'application/json'},
  body: undefined
};

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

```go 0033 - Unknown Product
package main

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

func main() {

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

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

	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 0033 - Unknown Product
require 'uri'
require 'net/http'

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

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'

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

```java 0033 - Unknown Product
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")
  .header("x-api-key", "{{internal_api_key}}")
  .header("Content-Type", "application/json")
  .asString();
```

```php 0033 - Unknown Product
<?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', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{internal_api_key}}',
  ],
]);

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

```csharp 0033 - Unknown Product
using RestSharp;

var client = new RestClient("https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "{{internal_api_key}}");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift 0033 - Unknown Product
import Foundation

let headers = [
  "x-api-key": "{{internal_api_key}}",
  "Content-Type": "application/json"
]

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

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()
```

### 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Game Voucher_example



**Request**

```json
{
  "orderId": "manual-gv-0000-{{$timestamp}}",
  "productCode": "game-voucher-test-000000",
  "providerType": "game-voucher"
}
```

**Response**

```json
{
  "data": {
    "operation": "DIRECT_PURCHASE",
    "providerCode": "mitra_bukalapak",
    "providerType": "game-voucher",
    "normalizedResult": {
      "message": "successful",
      "rootKey": "game_voucher_transaction",
      "responseCode": "0000",
      "resultStatus": "SUCCESS"
    },
    "providerRequestBody": {
      "order_id": "manual-gv-0000-1780382184",
      "product_code": "game-voucher-test-000000"
    },
    "rawProviderResponse": {
      "game_voucher_transaction": {
        "message": "successful",
        "currency": "IDR",
        "order_id": "manual-gv-0000-1780382184",
        "total_price": "5000",
        "voucher_code": "testIDRxxk-1000552989",
        "response_code": "0000",
        "serial_number": ""
      }
    }
  },
  "meta": {
    "requestId": "req_c864e125-fa75-49df-9c2f-d83965be658d",
    "timestamp": "2026-06-02T06:36:26.000Z"
  },
  "success": true
}
```

**SDK Code**

```python 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Game Voucher_example
import requests

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

payload = {
    "orderId": "manual-gv-0000-{{$timestamp}}",
    "productCode": "game-voucher-test-000000",
    "providerType": "game-voucher"
}
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_Game Voucher_example
const url = 'https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{internal_api_key}}', 'Content-Type': 'application/json'},
  body: '{"orderId":"manual-gv-0000-{{$timestamp}}","productCode":"game-voucher-test-000000","providerType":"game-voucher"}'
};

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_Game Voucher_example
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"orderId\": \"manual-gv-0000-{{$timestamp}}\",\n  \"productCode\": \"game-voucher-test-000000\",\n  \"providerType\": \"game-voucher\"\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_Game Voucher_example
require 'uri'
require 'net/http'

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

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-gv-0000-{{$timestamp}}\",\n  \"productCode\": \"game-voucher-test-000000\",\n  \"providerType\": \"game-voucher\"\n}"

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

```java 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Game Voucher_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")
  .header("x-api-key", "{{internal_api_key}}")
  .header("Content-Type", "application/json")
  .body("{\n  \"orderId\": \"manual-gv-0000-{{$timestamp}}\",\n  \"productCode\": \"game-voucher-test-000000\",\n  \"providerType\": \"game-voucher\"\n}")
  .asString();
```

```php 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Game Voucher_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', [
  'body' => '{
  "orderId": "manual-gv-0000-{{$timestamp}}",
  "productCode": "game-voucher-test-000000",
  "providerType": "game-voucher"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{internal_api_key}}',
  ],
]);

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

```csharp 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Game Voucher_example
using RestSharp;

var client = new RestClient("https://c-dev-api.rajabiller.com/internal/providers/mitra-bukalapak/direct-purchase");
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-gv-0000-{{$timestamp}}\",\n  \"productCode\": \"game-voucher-test-000000\",\n  \"providerType\": \"game-voucher\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 01 Provider - RajaBiller_01 Provider - RajaBiller > Direct Purchase_Game Voucher_example
import Foundation

let headers = [
  "x-api-key": "{{internal_api_key}}",
  "Content-Type": "application/json"
]
let parameters = [
  "orderId": "manual-gv-0000-{{$timestamp}}",
  "productCode": "game-voucher-test-000000",
  "providerType": "game-voucher"
] 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")! 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()
```