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

Submit hosted Checkout payments

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. Request: POST /api/v1/collection/apn/submit

Use a merchant machine token on your server. The account ID must match the authenticated business. DLT also requires an active merchant, assigned active Collection service and hosted Checkout capability. Obtain payment_brand and payment_brand_code from payment options.

This endpoint always selects hosted Checkout, including when the selected option is a card. It never takes card numbers, security codes or device data. The example uses channel 4 so the supplied success/failure URLs are used.

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

{
  "service_code": "<collection_service_code>",
  "merchant_account_id": "TEST-12345678",
  "merchant_transaction_id": "ORDER202610130001",
  "time_offset": "+08:00",
  "channel": 4,
  "success_url": "https://merchant.example.test/payment/success",
  "failure_url": "https://merchant.example.test/payment/failure",
  "amount": "100.00",
  "currency": "PHP",
  "payment_brand": "VISA",
  "payment_brand_code": "<returned_brand_code>",
  "description": "Order payment",
  "product_name": "Sample order",
  "product_description": "One sample item",
  "product_reference_id": "ITEM001",
  "first_name": "Alex",
  "last_name": "Example",
  "email": "alex@example.test",
  "phone": "+639170000000",
  "address_line_one": "123 Example Street",
  "address_line_two": "Unit 4",
  "city_municipality": "Makati",
  "state_province_region": "Metro Manila",
  "country_code": "PH",
  "postal_code": "1200"
}

1.1 Request validation

Field Location Requirement Validation rules
Authorization Header Required Bearer machine token belonging to the supplied merchant.
Accept, Content-Type Header Send application/json.
service_code JSON Required String, maximum 50; exactly the deployment's configured APN Collection code.
merchant_account_id JSON Required Existing merchant reference ID; ownership is checked separately.
merchant_transaction_id JSON Required ASCII letters/digits/dashes/underscores, maximum 45; reference reuse is checked against the normalized request fingerprint. Alphanumeric references also work with the saved-transaction lookup.
time_offset JSON Required String matching signed HH:MM: hours 00–14 and minutes 00–59, e.g. +08:00.
channel JSON Required Integer: 1 API, 2 Quick Link, 3 WooCommerce, 4 Custom.
success_url, failure_url JSON Optional, nullable Valid URLs, maximum 255 each. Channel 4 uses these values; channels 1–3 use configured web-integration URLs.
amount JSON Required Numeric, greater than 0, maximum 500000, zero to two decimal places. Decimal strings are accepted.
currency JSON Optional, nullable Three ASCII letters; trimmed and uppercased. If provided, must equal the merchant currency; omission/null uses the merchant currency or application fallback.
payment_brand JSON Required String, maximum 20; use the selected option's value.
payment_brand_code JSON Required String, maximum 2048; forward the selected opaque code unchanged.
is_card_payment JSON Optional, nullable Boolean compatibility metadata only; cannot select Direct Payment.
description JSON Optional, nullable String, maximum 200.
other_reference_1, other_reference_2 JSON Optional, nullable Strings, maximum 45 each.
other_reference_1_caption, other_reference_2_caption JSON Optional, nullable Strings, maximum 100 each.
product_name JSON Optional, nullable String, maximum 80.
product_description JSON Optional, nullable String, maximum 120.
product_reference_id JSON Optional, nullable String, maximum 100.
first_name, last_name JSON Required Maximum 50 each; current validator has required/max rules without a string rule. Send text.
email JSON Required Valid email, maximum 100.
phone JSON Optional, nullable String, maximum 16.
address_line_one, address_line_two JSON Required Strings, maximum 80 each. Both lines must be non-empty.
city_municipality JSON Required String, maximum 60.
state_province_region JSON Required String, maximum 40.
country_code JSON Required Two ASCII letters; trimmed and uppercased.
postal_code JSON Required Maximum 10; current validator has required/max rules without a string rule. Send text to preserve leading zeroes.
callback_url JSON Ignored Legacy Checkout input is excluded before processing; it cannot change return routing or notifications.
environment, env, is_production, transaction_type, notify_user JSON Prohibited Omit. Non-empty values fail validation.
card_holder_name, card_number, pan, expiration_month, expiration_year, ccv, cvv, cvc, credit_card, card, device JSON Prohibited Omit all raw-card and device input on hosted Checkout.

Required fields reject omission/null/empty values. Optional nullable fields may be omitted or null; standard Laravel middleware converts empty strings to null. Prohibited rules reject non-empty values, so always omit those fields. Unknown fields are not rejected globally; they are excluded from the validated payload and have no documented effect. Persistent references, descriptions, product metadata and URLs must not contain card data. DLT combines description/product text into a maximum 200-character provider description.

1.2 HTTP 200: accepted, awaiting payment

{
  "data": {
    "is_card_payment": false,
    "payment_status": "PENDING",
    "transaction_id": "APNEXAMPLE0001",
    "merchant_transaction_id": "ORDER202610130001",
    "amount": "100.00",
    "payment_url": "https://checkout.example.test/session/example",
    "success_url": "https://merchant.example.test/payment/success?reference_id=ORDER202610130001",
    "failure_url": "https://merchant.example.test/payment/failure?reference_id=ORDER202610130001",
    "timestamp": "2026-10-13T10:00:00+08:00"
  },
  "success": true,
  "message": "Awaiting payment"
}

The message is provider/state dependent; do not branch on its wording. is_card_payment identifies the Direct flow and is false for hosted Checkout even with VISA. transaction_id is the provider identifier; keep your merchant_transaction_id for lookup/sync. payment_url, provider identifier and return URLs may be null depending on the provider result/configuration. Amount is a two-decimal string. DLT appends reference_id to configured return URLs. Send the payor to payment_url when supplied and check status; do not fulfill an order from success:true alone.

2. Error responses and safe retries

2.1 HTTP 422: invalid request

{
  "success": false,
  "message": "Validation error",
  "errors": {"address_line_two": ["The address line two field is required."]}
}

Provider request rejection may also return HTTP 422 with success:false, a provider-dependent safe message and errors from the provider. Do not assume its errors have the same field shape as local validation.

2.2 HTTP 403: hosted Checkout disabled

{"success": false, "code": "APN_CHECKOUT_NOT_ENABLED", "message": "APN hosted Checkout is not enabled for this merchant."}

2.3 HTTP 403: merchant identity mismatch

{"success": false, "error_code": "MERCHANT_SCOPE_MISMATCH", "message": "Requested merchant does not match the authenticated client."}

Machine middleware errors use error_code; capability errors use code. See authentication errors for token, ownership and machine-access failures. Treat messages as feedback rather than stable codes.

2.4 HTTP 409: reference reused for a different request

{"success": false, "error_code": "TRANSACTION_REFERENCE_CONFLICT", "message": "The merchant transaction ID is already used by a different request."}

An identical normalized request for an accepted reference returns the saved result without a new provider submission. Changing the payment flow or validated payload under the same reference conflicts. This uses merchant_transaction_id, not an Idempotency-Key header. Preserve the original payload and reference server-side.

2.5 HTTP 409: submission still in progress

{"success": false, "error_code": "SUBMISSION_IN_PROGRESS", "message": "This transaction cannot be submitted again automatically."}

An existing uncertain submission uses HTTP 409 with error_code: SUBMISSION_UNKNOWN and the same message.

2.6 HTTP 503: provider outcome unknown

{"success": false, "error_code": "SUBMISSION_UNKNOWN", "message": "The APN submission outcome is unknown. Do not resubmit this transaction."}

For an unknown result, connection loss or timeout, retain the reference and use status/recovery. Do not automatically create a new reference or resubmit a payment: the provider may already have accepted it. A rejected persisted submission is also not automatically resubmitted under the original reference.

For DLT's signed PAID or REJECTED request to your registered notification URL, see Payment notifications. Browser return URLs do not register that notification endpoint.