Charge API

POST services.onlinesales.ai/osBillingServiceV2/marketplace/charge

Request Body

{
    "clientId": 92172,
    "merchantId": "KAKASJ-123",
    "partnerTransactionId": "87645364"
    "id": 2434, // transaction id generated by OS  
    "status" : "SUCCESS" ,
    "marketplaceClientId":<Marketplace Client Id>,
    "details" : {}
}

Request Body

{
    "amount": 100000
    "currency": "USD",
    "merchantId": "XYZ-123",
    "partnerTransactionId": "87645364", // this will be used to handle duplicates
    "merchantType": "seller",
    "transactionTime": 1585191090000, // epoch in ms
    "description": "description if any regarding the transaction. This will be shown on the UI to merchants",
    "token": <token>,  //token shared by onlinesales.
    "marketplaceClientId": <Marketplace Client Id>//clientId provided by OS
    "creditType": "INCENTIVE"  // Default - Prepaid 
}

Response Field Description

Last updated