Buy

This API to process your reserved order

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

Request

NameTypeDescription

type

String

BUY_PRODUCT

body

JSON Object

Body Object

Body

NameTypeDescription

merchantId

string

Your merchantID, eg: M_YDXabcd1

orderId

string

ID of Your Order

validationToken

Object

Token that you can get from Validate User

Headers

ParameterDescription

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

Transaction Signature, see page

X-AUTHORIZATION

Authorization token you get after hit Authentication Token

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"
    }
}

Last updated