Skip to content

Status Code Reference

Part of: MPAC SmartPOS Cloud Platform - Product RequirementsVersion: 2.0 Last Updated: 2026-01-28


Overview

This document provides a comprehensive reference for all status codes used in the MPAC SmartPOS Cloud Platform, including HTTP status codes for API responses and domain-specific status codes for payment and order workflows.


HTTP Status Codes

Success Codes (2xx)

CodeNameUsage
200OKSuccess with response body
201CreatedResource successfully created
204No ContentSuccess with no response body (DELETE, some PATCH)

Client Error Codes (4xx)

CodeNameUsage
400Bad RequestInvalid request parameters or malformed JSON
401UnauthorizedMissing or invalid authentication token
403ForbiddenAuthenticated but not authorized for this resource
404Not FoundRequested resource does not exist
409ConflictResource conflict (duplicate unique field)
422Unprocessable EntityValidation error on request body
429Too Many RequestsRate limit exceeded

Server Error Codes (5xx)

CodeNameUsage
500Internal Server ErrorUnexpected server error
503Service UnavailableService temporarily unavailable (maintenance, overload)

Payment Status Codes

Payment status progresses through the following states:

StatusDescriptionTerminal State
pendingPayment created, awaiting processingNo
processingBeing processed by payment providerNo
completedSuccessfully completedYes
failedPayment failed (insufficient funds, declined, etc.)Yes
refundedPayment refunded (full or partial)Yes
cancelledPayment cancelled before completionYes

Status Transitions

pending → processing → completed
                    → failed
                    → cancelled

completed → refunded (partial or full)

Order Status Codes

StatusDescriptionTerminal State
draftOrder being created, not submittedNo
openOrder submitted, awaiting paymentNo
paidOrder fully paidNo
completedOrder fulfilled and closedYes
cancelledOrder cancelled before completionYes

Bill Status Codes

StatusDescriptionTerminal State
unpaidBill created, awaiting paymentNo
partially_paidSome payments received, balance remainingNo
paidBill fully paidYes
voidedBill voided/cancelledYes

Device Status Codes

StatusDescription
pending_activationDevice registered, awaiting activation
activeDevice activated and operational
suspendedDevice temporarily suspended
deactivatedDevice permanently deactivated

Settlement Status Codes

StatusDescriptionTerminal State
openSettlement period open, transactions accumulatingNo
closedSettlement closed, ready for reconciliationNo
reconciledSettlement reconciled with financial recordsYes

Error Code Format

All API error responses follow a consistent format:

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid request parameters",
    "details": [
      {
        "field": "amount",
        "issue": "Must be greater than 0"
      }
    ]
  }
}

Common Error Codes

  • VALIDATION_ERROR - Request validation failed
  • AUTHENTICATION_ERROR - Authentication failed
  • AUTHORIZATION_ERROR - Not authorized for this operation
  • RESOURCE_NOT_FOUND - Resource does not exist
  • DUPLICATE_RESOURCE - Resource already exists
  • RATE_LIMIT_EXCEEDED - Too many requests
  • INTERNAL_ERROR - Unexpected server error

See Also

Related References:

Technical Documentation:

Domain Documentation:


Navigation: ↑ Back to Index | ← Data Model | Next: Configuration →

MPAC — MP-Solution Advanced Cloud Service