Antom, leading provider of tailored payment solutions

inquire

POST /v1/payments/inquire
Use this API to inquire about the subscription status and other information about a previously submitted subscription request.

Request parameters

subscriptionId String  

The unique ID assigned by Antom to identify a subscription.
Specify either the subscriptionId or the subscriptionRequestId. If both are provided, the subscriptionId will take precedence.

More information:

  • Maximum length: 64 characters

subscriptionRequestId String  

The unique ID assigned by a merchant to identify a subscription request.
Specify either the subscriptionId or the subscriptionRequestId. If both are provided, the subscriptionId will take precedence.

More information:

  • Maximum length: 64 characters

Response parameters

result Result  REQUIRED

The result of the API call.

subscriptionId String  REQUIRED

The unique ID assigned by Antom to identify a subscription.

More information:

  • Maximum length: 64 characters

subscriptionRequestId String  REQUIRED

The unique ID assigned by a merchant to identify a subscription request.

More information:

  • Maximum length: 64 characters

subscriptionStatus String  

The subscription status. Valid values are:
  • ACTIVE: indicates that the subscription becomes active.
  • TERMINATED: indicates that the subscription is terminated.

More information:

  • Maximum length: 64 characters

paymentAmount Amount  REQUIRED

The payment amount of each subscription period.

allowAccumulate Boolean  

Indicates whether to allow to accumulate the previous billing cycle to subsequent subscription billing.
This parameter is returned when you pass it in create API and the value is true.

maxAccumulateAmount Amount  

The maximum allowed cumulative amount. This parameter is returned when you pass allowAccumulate in create API and its value is true.

periodRule PeriodRule  REQUIRED

The subscription period rule, used to define a subscription's billing period.

phaseNo String  

Indicates the current phase of the subscription period. For example, if the subscription begins in May and operates on a monthly cycle for one year, then June represents the second phase, with phaseNo = "2".

subscriptionStartTime Datetime  

The date and time when the subscription becomes active.

More information:

  • The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".

subscriptionEndTime Datetime  

The date and time when the subscription ends.
This parameter is returned when you pass it in create API.

More information:

  • The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".
API Explorer

Request

URL
Method
POST
json
{
  "subscriptionId": "182096",
  "paymentAmount": {
    "currency": "SGD",
    "value": "100"
  },
  "subscriptionStartTime": "2024-02-22T12:01:01+08:00",
  "periodRule": {
    "periodType": "MONTH",
    "periodCount": 1,
    "totalPeriods": 15
  },
  "allowAccumulate": true,
  "maxAccumulateAmount": {
    "currency": "SGD",
    "value": "100"
  }
}

Response

json
{
  "allowAccumulate": true,
  "maxAccumulateAmount": {
    "currency": "SGD",
    "value": "1100000"
  },
  "paymentAmount": {
    "currency": "SGD",
    "value": "30000"
  },
  "periodRule": {
    "periodCount": 1,
    "periodType": "MONTH",
    "totalPeriods": 10
  },
  "subscriptionEndTime": "2025-01-29T14:39:49+08:00",
  "subscriptionId": "182734",
  "subscriptionRequestId": "ab105caf-856a-443f-8580-2828d4e928a4",
  "subscriptionStartTime": "2024-02-25T14:39:49+08:00",
  "subscriptionStatus": "ACTIVE",
  "result": {
    "resultCode": "SUCCESS",
    "resultMessage": "success.",
    "resultStatus": "S"
  }
}

Result/Error codes

CodeValueMessageFurther action
SUCCESSSSuccess
The request is successful, no further action is needed.
PARAM_ILLEGALFThe required parameters are not passed, or illegal parameters exist. For example, a non-numeric input, an invalid date, or the length and type of the parameter are wrong.
Check and verify whether the required request fields (including the header fields and body fields) of the current API are correctly passed and valid.
PROCESS_FAILFA general business failure occurred.
Do not retry. Human intervention is usually needed. It is recommended that you contact Antom Technical Support to troubleshoot the issue.
UNKNOWN_EXCEPTIONUAn API call has failed, which is caused by unknown reasons.
Call the API again to resolve the issue. If not resolved, contact Antom Technical Support.