Skip to content
ekmivo.Developers
Dashboard
On this pageRequestResponsePayment statusesBefore delivery

Verify payment

Read the final status before delivering an order.

POST/v1/payment/verifypayments:read

Request

FieldTypeRequiredDescription
invoice_iduuidYesThe invoice_id returned by Create payment.
curl --fail-with-body "$EKMIVO_API_ORIGIN/v1/payment/verify" \
  -H "Authorization: Bearer $EKMIVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "invoice_id": "550e8400-e29b-41d4-a716-446655440000"
}'

Response

200 OK
{
  "invoice_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "COMPLETED",
  "currency": "BDT",
  "reference": "ORDER-123"
}

Selected fields. Read the amount field and its unit in API reference before matching your order.

Payment statuses

FieldTypeRequiredDescription
PENDINGstring—Payment is not verified. Do not deliver.
COMPLETEDstring—Verified; match the order before delivery.
FAILEDstring—Verification ended in an exception.
EXPIREDstring—Payment window expired.
CANCELLEDstring—Payment was cancelled.
REFUNDEDstring—Payment was refunded.

Before delivery

Deliver only when status === "COMPLETED" and invoice_id, amount and currency match your order. HTTP 200 alone does not mean paid.