Supported Integrations
Supported Integrations

Custom API Integration Testing Checklist

This section outlines the process for testing Custom API integrations (Customer & Internally Built) between MachShip and external systems. It covers both inbound and outbound data flows, focusing on authentication, data validation, error handling, and timing consistency.

Inbound API Testing (External System → MachShip)

Test ScenarioExpected OutcomeStatus / Notes
Authentication and token validityMachShip accepts valid API key/token; rejects invalid credentials 
Connectivity to endpointPOST/PUT/GET requests reach MachShip endpoint successfully (HTTP 200/201) 
Payload structure validationRequest matches schema; invalid requests return clear error codes (400/422) 
Required fields (from/to addresses, references, packages)All required data elements successfully parsed by MachShip 
Duplicate request handlingDuplicate consignments are not created for the same order ID 
Error response handlingSystem logs errors and retries or alerts as configured 
Consignment creationConsignment visible under Create / Manage > Pending/Unmanifested Consignments  
Validation of timestamps and referencesCreatedAt and Reference fields display correctly in MachShip 


Outbound API Testing (MachShip → External System)

Test ScenarioExpected OutcomeStatus / Notes
Webhook registration and validationWebhook registered and receives POSTs on consignment creation/manifest 
Webhook authenticationExternal API validates signature or token from MachShip 
Payload format and data accuracyOutbound JSON/XML matches documented schema and includes correct consignment data 
Timing of write-backOutbound events triggered within expected timeframe (≤5 minutes post-update) 
Retry mechanismFailed requests retried per configuration until success or timeout 
Error loggingOutbound error logs available in MachShip Admin > Integration Logs 
Write-back to external systemExternal system fields updated with tracking number, carrier, cost, ETA, etc. 
Confirmation of deliveryHTTP 200 OK response logged in MachShip after successful post 
SecurityAll data transmitted via HTTPS using TLS 1.2+ 


Validation & General Checks

Validation AreaExpected ResultStatus / Notes
API response codesAll valid responses return 2xx codes; invalid requests return appropriate 4xx or 5xx codes 
Data consistencyAll references and consignment IDs match across systems 
SecurityAll endpoints use HTTPS and token-based authentication 
Error handlingErrors clearly logged and recoverable 
End-to-end flowConsignment created → manifested → written back successfully