POST/load-purchase-orders
Get purchase orders.
| Key | Value |
|---|---|
| Filter | |
| status | Ready for Production Ready for Fulfillment Sent to Supplier In Production Shipped Delivered |
| withTestOrders | true, false |
| initialType | web non-web |
| Limit | 100 |
| Ascending | 0 |
| Page | 1 |
| OrderBy | orderDate |
| orderDateRange | "startDate":"2025-07-01" "endDate":"2025-07-01" |
{
"params": {
"filter": {
//"status": []
},
"limit": 100,
"ascending": 0,
"page": 1,
"orderBy": "orderDate"
// "withTestOrders":true
}
}GET/orders/:orderId/details
Get order
| Param | Default | Description | Required |
|---|---|---|---|
| orderId | Id of order included in URL | Required |
Optional Params
| Name | Value | Description |
|---|---|---|
| withoutDistributor | 1 or 0 (true or false) | if true, will show all orders assigned to supplier regardless of distributor |
| populateShipments | 1 or 0 (true or false) | if true, will include all shippment tracking information |
GET/orders/:orderId/details/:friendlyPurchaseOrderDetailId
Get order PO
| Param | Type | Default | Description |
|---|---|---|---|
| orderId | Int | order id | |
| purchaseOrderId | Int | PO id |
PUT/orders/:orderId/details/:friendlyPurchaseOrderDetailId
Method: PUT
URL: https://api.mpowerpromo.com/orders/{{orderId}}/details/{{friendlyPurchaseOrderDetailId}}
Authentication: Required (JWT Bearer token)
| Parameter | Description | Required | Data Type | Example |
|---|---|---|---|---|
orderId |
Order ID (numeric) | Yes | Number | 12345 |
friendlyPurchaseOrderDetailId |
Purchase Order detail ID | Yes | Number | 1 |
| Field | Description | Data Type | Example |
|---|---|---|---|
status |
Purchase order status | String | "Sent to Supplier" |
type |
Purchase order type | String | "Standard" |
supplier |
Supplier ObjectId reference | ObjectId | "507f1f77bcf86cd799439011" |
supplierCode |
Supplier product code | String | "ABC-12345" |
productId |
Product ID | String | "PROD-001" |
SO |
Sales Order number | String | "SO-2025-001" |
source |
Source system | String | "PromoStandards" |
Status Values: Pending, Sent to Supplier, In Production, Shipped, Delivered, Canceled, Archive, Proof Sent, Proof Approved, Ready for Production, etc.
Type Values: Standard, Sample, Blank, Decorator, etc.
| Field | Description | Data Type | Default | Example |
|---|---|---|---|---|
rush |
Rush order flag | Boolean | false | true |
taxExempt |
Tax exempt flag | Boolean | false | true |
hideLogo |
Hide logo on proof | Boolean | false | true |
fromProductView |
Created from product view | Boolean | false | true |
availableStatusToCheck |
Can check status | Boolean | - | true |
| Field | Description | Data Type | Auto-Calc | Example |
|---|---|---|---|---|
productTotal |
Total product price | Number | Yes | 1000.00 |
productTotalCost |
Total product cost | Number | Yes | 650.00 |
margin |
Profit margin | Number | Yes | 350.00 |
total |
Grand total | Number | Yes | 1165.00 |
shippingTotal |
Shipping price | Number | Yes | 50.00 |
shippingTotalCost |
Shipping cost | Number | Yes | 35.00 |
chargeTotal |
Additional charges total | Number | Yes | 150.00 |
chargeTotalCost |
Charges cost | Number | Yes | 100.00 |
discountTotal |
Total discounts | Number | Yes | 100.00 |
adjustmentsTotal |
Adjustments total | Number | Yes | 50.00 |
productDiscount |
Product discount (manual) | Number | No | 100.00 |
shippingDiscount |
Shipping discount (manual) | Number | No | 25.00 |
taxTotal |
Tax total | Number | Yes/Manual | 115.00 |
taxRate |
Tax rate percentage (min: 0) | Number | Yes/Manual | 10.0 |
partFundraisingTotal |
Fundraising total | Number | Yes | 200.00 |
| Field | Description | Data Type | Format | Example |
|---|---|---|---|---|
estimatedDeliveryDate |
Estimated delivery | Number | YYYYMMDD | 20251120 |
estimatedProductionDate |
Estimated production start | Number | YYYYMMDD | 20251105 |
estimatedShipDate |
Estimated ship date | Number | YYYYMMDD | 20251115 |
receivedDate |
Date received | Number | YYYYMMDD | 20251028 |
dueDate |
Due date | Number | YYYYMMDD | 20251125 |
shippedDate |
Shipped date | Number | YYYYMMDD | 20251116 |
reconciledAt |
Reconciliation timestamp | Date | ISO 8601 | "2025-10-28T15:30:00.000Z" |
shippingReconciliationAt |
Shipping reconciliation | Number | YYYYMMDD | 20251028 |
supplierReconciliationAt |
Supplier reconciliation | Number | YYYYMMDD | 20251028 |
lastCheckedTrackingDate |
Last tracking check | Date | ISO 8601 | "2025-10-28T10:00:00.000Z" |
| Field | Description | Max Length | Visibility | Example |
|---|---|---|---|---|
publicComments |
Customer-visible comments | 1000 chars | Public | "Thank you for your order!" |
privateComments |
Internal comments only | 1000 chars | Private | "VIP customer - priority" |
billingComments |
Billing-related notes | 1000 chars | Internal | "Net 30 terms approved" |
supplierComments |
Comments for supplier | 1000 chars | Supplier | "Rush order - expedite" |
additionalSupplierComments |
Additional supplier notes | 1000 chars | Supplier | "Call before shipping" |
externalComments |
External comments | 1000 chars | External | "Referred by ABC Corp" |
| Field | Description | Data Type | Reference | Example |
|---|---|---|---|---|
productionManagerId |
Production manager | ObjectId | User | "507f1f77bcf86cd799439011" |
machine |
Machine assigned | ObjectId | Machine | "507f1f77bcf86cd799439012" |
| Field | Description | Data Type | Example |
|---|---|---|---|
hasSupplierReconciliationDate |
Has supplier reconciliation | Boolean | true |
hasShippingReconciliationDate |
Has shipping reconciliation | Boolean | true |
updateReconciled |
Trigger reconciliation update | Boolean | true |
| Field | Description | Data Type | System | Example |
|---|---|---|---|---|
lineQBId |
QuickBooks line item ID | String | QuickBooks | "LINE-12345" |
qbProductsAndServicesId |
QB products/services ID | String | QuickBooks | "PROD-67890" |
sync |
Sync status array | Array[String] | Multiple | ["QuickBooks", "Zoho"] |
syncIds |
External sync IDs | Array[String] | Multiple | ["QB-12345", "ZOHO-67890"] |
| Field | Description | Data Type | Example |
|---|---|---|---|
parentPoId |
Parent PO ID | Number | 100 |
fromPOId |
Source PO IDs | Array[Number] | [95, 96] |
childOrderId |
Child order IDs | Array[Number] | [12346, 12347] |
batchedPO |
Batched PO numbers | Array[Number] | [2, 3, 4] |
| Field | Description | Data Type | Example |
|---|---|---|---|
promoCode |
Promo code applied | String | "SAVE20" |
salesChannel |
Sales channel | String | "Website" |
requestedBy |
Request source | String | "PromoStandards" |
prevStatus |
Previous status | String | "Pending" |
| Field | Description | Data Type | Purpose | Example |
|---|---|---|---|---|
updateGroup |
Update grouped POs | Boolean | Updates all POs in same group | true |
shipment |
Single shipment update | Object | Update specific shipment (see schema below) | { "_id": "507f...", ... } |
| Field | Description | Data Type | Example |
|---|---|---|---|
decorationColors |
Decoration color specifications | String | "Pantone 186C Red, Black" |
instructions |
Special instructions | String | "Left chest placement, 3 inch logo" |
dueDate |
Customer due date | String | "12/15/2025" |
Example:
{
"customerComments": {
"decorationColors": "Pantone 186C Red, Process Black",
"instructions": "Left chest placement, exact PMS color match required",
"dueDate": "11/20/2025"
}
}
| Field | Description | Data Type | Required | Example |
|---|---|---|---|---|
_id |
Shipment ID to update | ObjectId | Yes | "507f1f77bcf86cd799439020" |
carrier |
Carrier name | String | No | "FedEx" |
carrierService |
Service level | String | No | "Ground" |
trackingPackages |
Tracking package IDs | Array[ObjectId] | No | ["507f1f77bcf86cd799439021"] |
shipmentCost |
Shipping cost | Number | No | 45.00 |
shipmentPrice |
Shipping price | Number | No | 55.00 |
weight |
Package weight | Number | No | 10.5 |
attentionTo |
Attention to name | String | No | "John Doe" |
street1 |
Street address line 1 | String | No | "123 Main St" |
street2 |
Street address line 2 | String | No | "Suite 100" |
city |
City | String | No | "New York" |
state |
State/Province | String | No | "NY" |
zip |
Zip/Postal code | String | No | "10001" |
country |
Country | String | No | "US" |
Example:
{
"shipment": {
"_id": "507f1f77bcf86cd799439020",
"carrier": "FedEx",
"carrierService": "Overnight",
"trackingPackages": ["507f1f77bcf86cd799439021"],
"shipmentCost": 45.00,
"shipmentPrice": 55.00
}
}
| Field | Description | Data Type | Example |
|---|---|---|---|
sentDate |
Proof sent date | Date (ISO 8601) | "2025-10-28T10:00:00.000Z" |
approvedDate |
Proof approved date | Date (ISO 8601) | "2025-10-29T14:30:00.000Z" |
proofUrl |
URL to proof file | String | "https://example.com/proof/12345.pdf" |
Example:
{
"digitalProof": {
"sentDate": "2025-10-28T10:00:00.000Z",
"approvedDate": null,
"proofUrl": "https://example.com/proof/12345.pdf"
}
}
Note: This is a complex nested structure. Include only if updating entire line items.
| Field | Description | Data Type |
|---|---|---|
_id |
Line item ID | ObjectId |
localProduct |
Product reference | ObjectId |
Quantity |
Quantity object | Object ({ value: Number, uom: String }) |
unitPrice |
Unit price | Number |
unitCost |
Unit cost | Number |
PartArray |
Array of parts | Array[Object] |
Configuration |
Configuration array | Array[Object] |
Recommendation: Avoid sending LineItemArray unless you need to completely replace all line items. Use line-item-specific endpoints instead.
Note: For updating a single shipment, use the shipment field (see above). Only send ShipmentArray if replacing all shipments.
| Field | Description | Data Type |
|---|---|---|
_id |
Shipment ID | ObjectId |
shipmentId |
Shipment number | Number |
carrier |
Carrier name | String |
Quantity |
Quantity object | Object |
street1 |
Address line 1 | String |
city |
City | String |
state |
State | String |
zip |
Zip code | String |
country |
Country | String |
Recommendation: Use the shipment field to update individual shipments instead of replacing the entire array.
{
"status": "Sent to Supplier"
}
{
"status": "Proof Approved",
"updateGroup": true
}
{
"supplierComments": "Rush order - please expedite",
"privateComments": "Customer is VIP"
}
{
"estimatedShipDate": 20251115,
"estimatedDeliveryDate": 20251120,
"dueDate": 20251125
}
{
"productDiscount": 100.00,
"shippingDiscount": 25.00
}
{
"status": "Shipped",
"shippedDate": 20251028,
"supplierComments": "Shipped via FedEx - Tracking: 123456789"
}
{
"rush": true,
"status": "In Production",
"privateComments": "Expedite - needed by Friday"
}
{
"taxExempt": true,
"taxTotal": 0,
"taxRate": 0
}
{
"status": "In Production",
"prevStatus": "Sent to Supplier",
"type": "Standard",
"supplier": "507f1f77bcf86cd799439011",
"supplierCode": "ABC-12345",
"productId": "PROD-001",
"SO": "1234",
"source": "PromoStandards API",
"requestedBy": "Email",
"rush": true,
"taxExempt": false,
"hideLogo": false,
"fromProductView": false,
"availableStatusToCheck": true,
"productTotal": 1000.0,
"productTotalCost": 650.0,
"margin": 350.0,
"total": 1315.0,
"shippingTotal": 50.0,
"shippingTotalCost": 35.0,
"chargeTotal": 150.0,
"chargeTotalCost": 100.0,
"discountTotal": 100.0,
"adjustmentsTotal": 25.0,
"productDiscount": 100.0,
"shippingDiscount": 25.0,
"taxTotal": 115.0,
"taxRate": 10.0,
"partFundraisingTotal": 200.0,
"estimatedDeliveryDate": "11/20/2025",
"estimatedProductionDate": "11/5/2025",
"estimatedShipDate": "11/15/2025",
"receivedDate": "10/28/2025",
"dueDate": "11/25/2025",
"shippedDate": "11/16/2025",
"reconciledAt": "2025-10-28T15:30:00.000Z",
"shippingReconciliationAt": 20251028,
"supplierReconciliationAt": 20251028,
"lastCheckedTrackingDate": "2025-10-28T10:00:00.000Z",
"hasSupplierReconciliationDate": true,
"hasShippingReconciliationDate": true,
"updateReconciled": false,
"publicComments": "Thank you for your order! Expected delivery: November 20th, 2025.",
"privateComments": "VIP customer - priority handling required. Account manager: Jane Smith.",
"billingComments": "Approved for Net 30 payment terms. PO#12345 on file.",
"supplierComments": "Rush order - expedite through all production stages. Use premium materials.",
"additionalSupplierComments": "Customer is very particular about color matching. Use PMS color guide.",
"externalComments": "Referred by ABC Corporation partnership program.",
"customerComments": {
"decorationColors": "Pantone 186C Red, Pantone 280 Blue, Process Black",
"instructions": "Left chest placement: 3 inch logo. Right sleeve: 1.5 inch text 'TEAM 2025'.",
"dueDate": "11/20/2025"
},
"productionManagerId": "507f1f77bcf86cd799439012",
"machine": "507f1f77bcf86cd799439013",
"lineQBId": "LINE-12345",
"qbProductsAndServicesId": "PROD-67890",
"sync": [
"QuickBooks",
"Zoho",
"HubSpot"
],
"syncIds": [
"QB-12345",
"ZOHO-67890",
"HS-111222"
],
"parentPoId": 100,
"fromPOId": [
95,
96
],
"childOrderId": [
12346,
12347
],
"batchedPO": [
2,
3,
4
],
"promoCode": "VIP2025",
"salesChannel": "Direct Sales",
"updateGroup": false,
"digitalProof": {
"sentDate": "2025-10-28T10:00:00.000Z",
"approvedDate": "2025-10-29T14:30:00.000Z",
"proofUrl": "https://example.com/proofs/order-12345-po-1.pdf"
},
"shipment": {
"_id": "507f1f77bcf86cd799439020",
"carrier": "FedEx",
"carrierService": "Ground",
"trackingPackages": [
"507f1f77bcf86cd799439021"
],
"shipmentCost": 45.0,
"shipmentPrice": 55.0,
"weight": 12.5,
"attentionTo": "John Smith",
"street1": "123 Business Park Drive",
"street2": "Building B, Suite 200",
"city": "Los Angeles",
"state": "CA",
"zip": "90001",
"country": "US",
"email": "[email protected]",
"phone": "555-123-4567"
}
}POST/orders/:orderId/details
Update order. In post request provide the order object from getOrder request with updates
| Param | Type | Default | Description |
|---|---|---|---|
| orderId | Int | 0 | order id |
| purchaseOrderId | Int | order PO id |
{
"productTotal": 467.1,
"productTotalCost": 298.944,
"margin": 32.91704899981647,
"rush": false,
"taxExempt": false,
"fromProductView": false,
"total": 644.4,
"shippingTotal": 99.5,
"shippingTotalCost": 78.36,
"chargeTotal": 77.8,
"chargeTotalCost": 66.591,
"discountTotal": 0,
"status": "New",
"type": "Blank",
"supplier": "5cd0b4c1f83ffe3446488d91",
"LineItemArray": []
}DELETE/orders/:orderId/details/:friendlyPurchaseOrderDetailId
Update order. In post request provide the order object from getOrder request with updates
| Param | Type | Default | Description |
|---|---|---|---|
| orderId | Int | 0 | order id |
| purchaseOrderId | Int | order PO id |
See how MPower replaces your disconnected tools with one platform — from the first lead to the final shipment.
A product specialist will reach out within one business day to schedule your demo.