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

Buy

This API to process your reserved order

POST https://tokoapi-dev.netzme.com/public/api/ppob/v1/buy

Request

Name
Type
Description

type

String

BUY_PRODUCT

body

JSON Object

Body Object

Body

Name
Type
Description

merchantId

string

Your merchantID, eg: M_YDXabcd1

orderId

string

validationToken

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": "BUY_PRODUCT",
    "status": 200,
    "statusMessage": "success",
    "data": {
        "order_id": "1708421337490",
        "status": "failed",
        "qty": 1,
        "total_order_amount": 108,
        "created_at": "2024-02-20T16:28:57.103365Z",
        "product_name": "Mobile Legends Diamonds",
        "denom_name": "185 Diamonds"
    }
}
{
    "requestId": "ed3f6763-b1bd-40e3-aecb-ddaa2c3a9775",
    "type": "BUY_PRODUCT",
    "status": 400,
    "statusMessage": "record not found"
}
curl --location --request 'https://tokoapi-dev.netzme.com/public/api/ppob/v1/buy' \
--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": "BUY_PRODUCT",
    "body": {
        "merchantId": "M_vz7jZK8F",
        "orderId": "1709534697435",
        "validationToken": "VT1709534693iTlh"
    }
}'
PreviousOrderNextOrder Detail

Last updated 11 months ago

ID of Your

Token that you can get from

Transaction Signature, see

Authorization token you get after hit

Order
Validate User
page
Authentication Token