get https://api.sandbox.midtrans.com/v2/pay/account/
Get account's linked status for GoPay Tokenizations
Get Pay Account is triggered to get GoPay's account linked status. This method is only applicable for GoPay Tokenizations.
HTTP Method | Endpoint | Definition |
---|---|---|
GET | BASE_URL/v2/pay/account/account_id | Get 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 Attribute | Description | Type |
---|---|---|
status_code | Status code of the API result. | String |
payment_type | Payment channel associated with the account. | String |
account_id | Customer account ID to be used for payment. | String |
account_status | Status of the account. Possible values are PENDING , EXPIRED , ENABLED , and DISABLED . | String |
metadata | Additional data from the specific payment provider, that is, GoPay. | Object |
Gopay Metadata Field | Description | Type |
---|---|---|
payment_options.active | Flag to mark if payment option is active. | Boolean |
payment_options.token | Token that need to be use on Gopay Tokenization charge request as payment_option_token . | String |
payment_options.balance | Linked account balance for each payment options. | String |