One Time Purchase

One Time Purchase Parameter

Request

HTTP Method

POST

POST <AOC_SERVER>/api/getAOCToken
HTTP/1.1
Content type: application/x-www-form-urlencoded


{
  "apiKey":"Ofa3M7zS2c3",
  "username":"test",
  "spTransID":"201903192030-test1",
  "description":"Testing123456789",
  "currency":"MYR",
  "amount":"0.01",
  "onBehalfOf":"TestSP",
  "channel":"WEB",
  "operator":"operator1",
  "taxAmount":"0",
  "callbackURL":"https%3A%2F%2Fwww.test.com",
  "isSubscription":"False",
  "contactInfo":"6019123456789",
  "purchaseCategoryCode":"Game",
  "referenceCode":"Game",
}

Request Parameter

Parameter Name

Description

Usage

subscriptionID

This is a unique subscription id for each different subscription package/services. This field is mandatory if isSubscription is true.

(STRING)
Optional

subscriptionName

This is the subscription name for the subscription package/services. This field is mandatory if isSubscription is true.

(STRING)
Optional

subscriptionDuration

This is subscription duration for the subscription package/services. (in day) This field is mandatory if isSubscription is true.

(INT)
Optional

unSubURL

This is the unsubscribe URL that will be included in the Renewal SMS.
This field is mandatory if isSubscription is true.

(STRING)
Optional

👍

Subscription

Refer to Initiate Payment guide for more details.