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

Product Percentage

This API to adjust your prercentage profit

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

Request

Name
Type
Description

type

String

UPDATE_PERCENTAGE

body

JSON Object

Body Object

Body

Name
Type
Description

merchantId

string

Your merchantID, eg: M_YDXabcd1

updatePercentage

float

Your adjustment pricing

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": "UPDATE_PERCENTAGE",
    "status": 200,
    "statusMessage": "success",
    "data": {
        "percentage_price_enduser": 1.4,
        "updated_at": "2024-02-20T16:28:57.103365Z"
    }
}
{
    "requestId": "b0ab2366-0f33-42bf-ada6-b79c3f1aa66a",
    "type": "AUTH",
    "status": 401,
    "statusMessage": "Failed verify transaction signature, please make sure your request"
}
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": "UPDATE_PERCENTAGE",
    "body": {
        "merchantId": "M_vz7jZK8F",
        "updatePercentage": 1.4
    }
}'
PreviousProduct ListNextProduct Detail

Last updated 11 months ago

Transaction Signature, see

Authorization token you get after hit

page
Authentication Token