Get Pay Account (GoPay Tokenizations)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Get Pay Account is triggered to get GoPay's account linked status. This method is only applicable for GoPay Tokenizations.

HTTP MethodEndpointDefinition
GETBASE_URL/v2/pay/account/account_idGet GoPay's account linked status.


Get Pay Account Response

{
  "status_code": "201",
  "payment_type": "gopay",
  "account_id": "00000269-7836-49e5-bc65-e592afafec14",
  "account_status": "PENDING"
}
{
  "status_code": "204",
  "payment_type": "gopay",
  "account_id": "00000269-7836-49e5-bc65-e592afafec14",
  "account_status": "EXPIRED"
}
{
  "status_code": "200",
  "payment_type": "gopay",
  "account_id": "00000269-7836-49e5-bc65-e592afafec14",
  "account_status": "ENABLED",
  "metadata": {
    "payment_options": [
      {
        "name": "GOPAY_WALLET",
        "active": true,
        "balance": {
          "value": "1000000.00",
          "currency": "IDR"
        },
        "metadata": {},
        "token": "eyJ0eXBlIjogIkdPUEFZX1dBTExFVCIsICJpZCI6ICIifQ=="
      },
      {
        "name": "PAY_LATER",
        "active": true,
        "balance": {
          "value": "350000.00",
          "currency": "IDR"
        },
        "metadata": {},
        "token": "eyJ0eXBlIjogIlBBWV9MQVRFUiIsICJpZCI6ICIifQ=="
      }
    ]
  }
}
{
  "status_code": "204",
  "payment_type": "gopay",
  "account_id": "00000269-7836-49e5-bc65-e592afafec14",
  "account_status": "DISABLED"
}
JSON AttributeDescriptionType
status_codeStatus code of the API result.String
payment_typePayment channel associated with the account.String
account_idCustomer account ID to be used for payment.String
account_statusStatus of the account. Possible values are PENDING, EXPIRED, ENABLED, and DISABLED.String
metadataAdditional data from the specific payment provider, that is, GoPay.Object

Gopay Metadata FieldDescriptionType
payment_options.activeFlag to mark if payment option is active.Boolean
payment_options.tokenToken that need to be use on Gopay Tokenization charge request as payment_option_token.String
payment_options.balanceLinked account balance for each payment options.String
Path Params
string
required
Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json