Skip to content
DLT Payment
Sign in
Merchant integrations/Collection APIs Public documentation

Collection status and recovery

For Developers of merchant-owned server integrations

Configured API origin: https://checkout.dxp.dtic.com.ph

Build with the right credentials. API access requires the documented authentication and permissions. Examples use synthetic data and placeholder origins.

Version: 1.1 · Updated: 2026-10-13

1. Read a saved transaction

Use merchant machine authentication. Reads and sync are scoped to the authenticated business. Keep the reference you supplied at submission; a provider transaction_id is a different identifier.

1.1 Request: GET /api/v1/collection/transaction

This reads the saved DLT record without triggering provider synchronization. There is no request body.

GET /api/v1/collection/transaction?merchant_transaction_id=ORDER202610130001
Authorization: Bearer <machine_access_token>
Accept: application/json
Field Location Requirement Validation rules
Authorization Header Required Merchant machine bearer token.
merchant_transaction_id Query Required Alphanumeric, maximum 45. Unlike submission, this lookup does not accept dashes/underscores. Use alphanumeric references when integrating both endpoints.
query Query Optional, nullable Shared request permits a string, maximum 150; unused by this single-record operation.
transaction_id Query Optional Shared request permits a string, maximum 255; unused by this operation.
page, per_page Query Optional Shared request permits integer page ≥1 and per_page 1–100; this single-record response does not paginate.
environment, env, is_production Query Prohibited Omit; non-empty values fail validation.

The required reference rejects omission/null/empty. Unknown fields are ignored by the validated lookup. A caller-supplied merchant identifier cannot broaden the token's ownership scope.

1.2 HTTP 200: saved pending record

{
  "data": {
    "merchant_transaction_id": "ORDER202610130001",
    "merchant_account_id": "TEST-12345678",
    "merchant": "Example Merchant",
    "website": "https://merchant.example.test",
    "logo": "",
    "product_name": "Sample order",
    "product_description": "One sample item",
    "amount": 100,
    "payment_status": "PENDING",
    "currency": "PHP",
    "payment_brand": "VISA",
    "is_credited": false,
    "created_at": "2026-10-13T02:00:00.000000Z"
  },
  "success": true,
  "message": "Successful"
}

This legacy resource returns amount as a JSON number, whereas submission returns a decimal string. Parse monetary values without binary floating-point arithmetic in your integration. website and product details can be null; logo can be an empty string. is_credited describes the saved financial posting state, not a browser redirect result. Read payment_status for the payment state.

1.3 HTTP 404: no owned record

{"success": false, "message": "No query results for model [App\\Models\\CheckoutTransaction]."}

The framework-generated message is not a stable identifier; handle the HTTP 404. A transaction belonging to another merchant is not returned.

2. Synchronize an APN transaction

2.1 Request: POST /api/v1/collection/apn/sync

Use synchronization for a pending APN transaction when the saved status needs reconciliation. It may contact the provider and update the DLT record; it is not a new payment submission. This route is throttled at 10 requests per minute in addition to any deployment-wide API limit. Already PAID/REJECTED records are returned without another provider synchronization.

POST /api/v1/collection/apn/sync
Authorization: Bearer <machine_access_token>
Accept: application/json
Content-Type: application/json

{"merchant_transaction_id": "ORDER202610130001"}
Field Location Requirement Validation rules
Authorization Header Required Merchant machine bearer token.
Accept, Content-Type Header Send application/json.
merchant_transaction_id JSON Required Non-empty string, ASCII letters/digits/dashes/underscores, maximum 45. Must resolve to an owned APN Collection transaction.

No merchant or provider transaction ID is needed. Missing/null/empty references fail validation. Extra fields are not globally prohibited by this request; they are ignored and cannot change ownership or deployment mode.

2.2 HTTP 200: paid

{
  "success": true,
  "message": "Success",
  "data": {
    "merchant_transaction_id": "ORDER202610130001",
    "payment_status": "PAID",
    "provider_message": "Payment successful",
    "timestamp": "2026-10-13T10:10:00+08:00"
  }
}

2.3 HTTP 200: still pending

{
  "success": true,
  "message": "Success",
  "data": {
    "merchant_transaction_id": "ORDER202610130001",
    "payment_status": "PENDING",
    "provider_message": "Awaiting payment",
    "timestamp": "2026-10-13T10:10:00+08:00"
  }
}

2.4 HTTP 200: rejected

{
  "success": true,
  "message": "Success",
  "data": {
    "merchant_transaction_id": "ORDER202610130001",
    "payment_status": "REJECTED",
    "provider_message": "Payment rejected",
    "timestamp": "2026-10-13T10:10:00+08:00"
  }
}

provider_message is saved provider/state feedback and may be null; examples are illustrative. Timestamp comes from the last reconciliation, falling back to the record update time. A successful sync means status was returned, including a rejected payment. APN states include PAID, PENDING, REJECTED and UNKNOWN; treat any unresolved/unknown state as requiring recovery, never as paid.

2.5 HTTP 409: no provider identifier yet

{"success": false, "error_code": "SYNC_NOT_AVAILABLE", "message": "The provider transaction is not yet available for synchronization."}

Do not create a replacement charge. Retain the original reference and coordinate recovery with DLT if the outcome remains uncertain.

2.6 HTTP 404: missing, unowned or non-APN transaction

{"success": false, "message": "Transaction not found."}

2.7 HTTP 422: missing reference

{"success": false, "message": "Validation error", "errors": {"merchant_transaction_id": ["The merchant transaction id field is required."]}}

2.8 HTTP 429: throttle reached

{"success": false, "message": "Too Many Attempts."}

Honor any Retry-After header. Failed provider synchronization can produce a 5xx error; keep the last known record and do not interpret the failure as a payment rejection.

3. Browser returns and notifications

Submission's success_url and failure_url are browser navigation destinations. A Direct callback_url controls approved payor return routing; it does not register a merchant webhook. DLT verifies provider notifications before updating transaction state. Configure merchant notification delivery separately with DLT and follow Payment notifications for the normalized PAID/REJECTED payload, signature verification and acknowledgement contract. Never expose your machine token on the browser return URL, and never mark an order paid based solely on a browser query parameter.

For timeout or SUBMISSION_UNKNOWN, read the original record and synchronize if a provider transaction is available. If sync reports SYNC_NOT_AVAILABLE, ask DLT to reconcile the original reference. Preserve your order-to-reference mapping and the original normalized request; reference reuse rules prevent automatic duplicate provider submissions.