
Card (Money In)
Check the latest transaction status and optionally update the local record. Use this to verify payment completion.
The Inquiry Status endpoint checks transaction status and optionally updates the local record.
This is useful when:
| Method | Path | Format | Authentication |
|---|---|---|---|
| GET | /api/v2.0/card/{account_id}/inquiry-status/{id} | json | OAuth 2.0 with Access Token |
| Parameter | Type | Mandatory | Description | Example |
|---|---|---|---|---|
| account_id | String | Required | Merchant Account ULID | 01K5G4FZZ18DMK0M5QTR8Y9QY9 |
| id | String | Required | Transaction ID | 9901JAB3CD4E5F6G7H8J9K0M1N2 |
| Field | Value | Type | Mandatory | Description | Example |
|---|---|---|---|---|---|
| Authorization | Bearer {access_token} | Alphanumeric | Mandatory | Bearer token obtained from the access token endpoint. | Bearer eyJ0eXAiOiJKV1{…} |
GET /api/v2.0/card/01K5G4FZZ18DMK0M5QTR8Y9QY9/inquiry-status/9901JAB3CD4E5F6G7H8J9K0M1N2
cURL Example:
curl -X GET "https://your-domain.com/api/v2.0/card/01K5G4FZZ18DMK0M5QTR8Y9QY9/inquiry-status/9901JAB3CD4E5F6G7H8J9K0M1N2" \
-H "X-PARTNER-ID: {api_key}" \
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGc..."
| Field | Type | Mandatory | Description | Example |
|---|---|---|---|---|
| response_code | String | Mandatory | Response code | SP000 |
| response_message | String | Mandatory | Human-readable response message | Successfully |
| data | Object | Mandatory | Response data | - |
| > transaction_id | String | Mandatory | Transaction ID | 9901JAB3CD4E5F6G7H8J9K0M1N2 |
| > reference_no | String | Mandatory | Merchant order reference number | ORD-20260225-001 |
| > amount | Number | Mandatory | Transaction amount in IDR | 100000 |
| > status | String | Mandatory | Current transaction status | success |
| > provider_auth_no | String/Null | Optional | Authorization number (present on success) | 123456 |
| > card_masked | String/Null | Optional | Masked card number (present on success) | 411111******1111 |
| > provider_result_code | String/Null | Optional | Result code | 0000 |
| > provider_result_message | String/Null | Optional | Result message | Success |
| > completed_at | String/Null | Optional | Payment completion timestamp (ISO 8601, present on success) | 2026-02-25T12:15:00.000000Z |
| > failed_at | String/Null | Optional | Payment failure timestamp (ISO 8601, present on failure) | null |
Success: Payment has been completed (HTTP 200).
{
"response_code": "SP000",
"response_message": "Successfully",
"data": {
"transaction_id": "9901JAB3CD4E5F6G7H8J9K0M1N2",
"reference_no": "ORD-20260225-001",
"amount": 100000,
"status": "success",
"provider_auth_no": "123456",
"card_masked": "411111******1111",
"provider_result_code": "0000",
"provider_result_message": "Success",
"completed_at": "2026-02-25T12:15:00.000000Z",
"failed_at": null
}
}
When the transaction has not yet been sent (shows as pending):
{
"response_code": "SP000",
"response_message": "Successfully",
"data": {
"transaction_id": "9901JAB3CD4E5F6G7H8J9K0M1N2",
"reference_no": "ORD-20260225-001",
"amount": 100000,
"status": "pending"
}
}
Error: Transaction not found.
{
"response_code": "SP009",
"response_message": "Transaction not found",
"data": {}
}
success: Returns the current transaction data immediately.pending and payment not yet submitted: Returns the current transaction data as-is.success with transaction details.failed.success, failed, cancelled, or refunded, calling this endpoint has no side effects.