Netzme PPOB
  • Introducing
  • Getting Started
  • API Reference
    • Token Signature
    • Authentication Token
    • Transaction Signature
    • Open API
      • Get Balance
      • Product List
      • Product Percentage
      • Product Detail
      • Validate User
      • Order
      • Buy
      • Order Detail
      • Order Inquiry
      • Order List
      • Create Virtual Account
      • List Transactions
    • WebView
      • WebView Transaction Flow
      • WebView Interfaces
Powered by GitBook
On this page
  • Request
  • Body
  • Headers
  • Example
  1. API Reference
  2. Open API

Order

PreviousValidate UserNextBuy

Last updated 7 months ago

This API to Reserve Order to our System

POST ttps://tokoapi-dev.netzme.com/public/api/ppob/v1/order

Request

Name
Type
Description

type

String

ORDER_PRODUCT

body

JSON Object

Body Object

Body

Name
Type
Description

merchantId

string

Your merchantID, eg: M_YDXabcd1

productId

string

denomCode

string

checkerResponse

Json Object

validationUserResponse

Json Object

Headers

Parameter
Description

Content-Type

application/json

X-CLIENT-ID

Partner ClientId, eg Xersia01

X-TIMESTAMP

Epoch Time of the request, we will check it. The date of timestamp should be the date you request.

X-MSG-ID

Your unique request-id, eg: Random UUID

X-SIGNATURE

X-AUTHORIZATION

Example

{
    "requestId": "ed3f6763-b1bd-40e3-aecb-ddaa2c3a9775",
    "type": "ORDER_PRODUCT",
    "status": 200,
    "statusMessage": "success",
    "body": {
        "order_id": "1709129138812",
        "status": "pending",
        "qty": 1,
        "total_order_amount": 108,
        "created_at": "2024-02-28T21:05:38.403081924+07:00",
        "product_name": "Mobile Legends Diamonds",
        "denom_name": "185 Diamonds",
        "validation_token": "VT170841167245Y1f1"
    }
}
{
    "requestId": "ed3f6763-b1bd-40e3-aecb-ddaa2c3a9775",
    "type": "ORDER_PRODUCT",
    "status": 400,
    "statusMessage": "record not found"
}
curl --location --request 'https://tokoapi-dev.netzme.com/public/api/ppob/v1/order' \
--header 'X-CLIENT-ID: Xersia01' \
--header 'X-SIGNATURE: 808bac29deaf1efc7f99e1f8aaefdccfbe9e135756ada8b3ab906124a6be19d0' \
--header 'Content-Type: application/json' \
--header 'X-AUTHORIZATION: eybzaWduYXR1cmUiOiI0MjZhZDg0NTgwMDdlNGNhZmE1MTBiY2ViZWM1Mzk5YWRlYmIxMzZhZjVmY2Y0MThmNjUyN2M5YmZkNDViYzBmIiwidG9rZW5QcG9iVXNlclJlc3BvbnNlIjp7InVzZXJJZCI6InJhaHlhbi1jbGllbnQiLCJleHBpcmVkVHMiOjE3MDk2OTcyMDI3ODYsInJvbGVzIjpbInBwb2IuZ2FtZV90b3B1cF9pbl9nYW1lIl19fQ==' \
--header 'X-TIMESTAMP: 1867413352207' \
--header 'X-MSG-ID: 61cc351c-1e97-46f5-9179-ec9c610c06ce' \
--data '{
    "type": "ORDER_PRODUCT",
    "body": {
        "merchantId": "M_GwjdJMdK",
        "productId": 31,
        "denomCode": "ML185",
        "checkerResponse": [
            {
                "name": "userid",
                "type": "string",
                "value": "testuser123"
            },
            {
                "name": "zoneid",
                "type": "number",
                "value": 1
            },
            {
                "name": "server",
                "type": "dropdown",
                "value": "121"
            }
            
        ],
        "validationUserResponse": {
            "username": 123456,
            "validation_token": "VT1709698508eIke"
        }
    }
}'

ID of Product you can get from

Code of Denom you can get from

Value of game_checker you can get from and add new value of each field with same value of your Sample : "checkerResponse": [ { "name": "userid", "type": "string", "value": "testuser123" }, { "name": "server", "type": "dropdown", "value": "121" }, { "name": "zone_id", "type": "number", "value": 1 } ]

Response of

Transaction Signature, see

Authorization token you get after hit

h
Product Detail
Product Detail
Product Detail
Validate User
Validate User
page
Authentication Token