API reference
Models
The objects the API sends and receives.
Error#
errorrequiredobject | — |
error.coderequiredstring | — |
error.messagerequiredstring | — |
error.detailsany | — |
Me#
resellerobject | — |
reseller.idstring | — |
reseller.brandNamestring | — |
reseller.statusstring | — |
modeenum | —
|
keyIdstring | — |
integrationobject | — |
Category#
idstring | — |
namestring | — |
slugstring | — |
childrenobject[] | — |
children[].idstring | — |
children[].namestring | — |
children[].slugstring | — |
Variant#
idstring | Use this as |
isDefaultboolean | — |
skustring | null | — |
colorstring | null | — |
sizestring | null | — |
titlestring | — |
imagestring | null | — |
wholesalePriceinteger | — |
suggestedPriceinteger | — |
minResalePriceinteger | — |
stockinteger | — |
Product#
idstring | — |
titlestring | — |
descriptionstring | HTML |
imagesstring[] | Copy them to your store — do not hotlink. |
brandstring | null | — |
tagsstring[] | — |
categoryobject | null | — |
storeIdstring | Products of different stores ship as separate parcels |
weightKgnumber | null | — |
wholesalePriceinteger | Lowest across variants |
suggestedPriceinteger | — |
compareAtPriceinteger | null | — |
minResalePriceinteger | — |
inStockboolean | — |
stockinteger | — |
shippingobject | What MarkitMall charges to deliver this product. |
shipping.requiredboolean | False when the store offers free delivery on it — we charge you none |
shipping.weightKgnumber | null | Null when unknown — the default shipping cost applies |
shipping.estimateinteger | PKR, one unit, no city surcharge |
variants | — |
updatedAtstring · date-time | — |
InventoryItem#
variantIdstring | — |
productIdstring | null | — |
availableboolean | false = unknown or no longer dropshippable — hide it |
stockinteger | — |
wholesalePriceinteger | null | — |
minResalePriceinteger | null | — |
ImportRequest#
productIdrequiredstring | — |
externalProductIdstring | — |
customTitlestring | — |
resalePriceinteger | — |
variantsobject[] | — |
variants[].variantIdrequiredstring | — |
variants[].externalVariantIdrequiredstring | — |
variants[].externalSkustring | — |
Import#
idstring | — |
productIdstring | — |
externalProductIdstring | null | — |
syncStatusenum | —
|
availableboolean | — |
variantsobject[] | — |
ShippingQuoteRequest#
cityrequiredstring | — |
itemsrequiredobject[] | — |
items[].variantIdstring | — |
items[].externalVariantIdstring | — |
items[].quantityrequiredinteger · ≥ 1 | — |
ShippingQuote#
citystring | — |
shippingCostinteger | — |
returnShippingCostinteger | — |
rtoReserveinteger | Held on your wallet while a COD order is open |
platformFeePercentnumber | Platform fee, in percent of |
platformFeeBasisenum | margin (default): of your margin — what your customer pays − wholesale − shipping; sale: of your selling price for the items
|
parcelsobject[] | — |
CreateOrderRequest#
externalOrderIdrequiredstring · max 100 chars | Your order id; unique per account |
externalOrderNamestring | — |
paymentModerequiredenum | How YOUR customer paid. COD: our courier collects. PREPAID: you pay us from your wallet.
|
customerrequiredobject | — |
customer.namerequiredstring | — |
customer.phonerequiredstring | — |
customer.addressrequiredstring | — |
customer.cityrequiredstring | — |
customer.provincestring | — |
customer.postalCodestring | — |
itemsrequiredobject[] · min 1 items · max 50 items | — |
items[].variantIdstring | Our variant id (or product id for products without options) |
items[].externalVariantIdstring | Your variant id, mapped through POST /imports |
items[].externalLineIdstring | — |
items[].skustring | — |
items[].quantityrequiredinteger · ≥ 1 · ≤ 100 | — |
items[].resalePricerequiredinteger | Per unit, what your customer pays |
shippingChargedinteger · default 0 | Delivery charge you showed your customer |
senderNamestring | Printed as the parcel's sender; defaults to your brand |
notesstring · max 500 chars | — |
CreateOrderResponse#
idstring | — |
externalOrderIdstring | — |
orderNumberstring | null | — |
statusstring | — |
paymentModeenum | —
|
modeenum | —
|
codAmountinteger | — |
prepaidAmountinteger | — |
wholesaleTotalinteger | — |
shippingCostinteger | — |
platformFeeobject | Platform fee on this parcel: |
platformFee.basisenum | —
|
platformFee.percentnumber | — |
platformFee.amountinteger | — |
expectedMargininteger | COD: credited after delivery, the fee already taken off. Prepaid: minus the platform fee (debited then). |
rtoReserveinteger | — |
fundsDeadlinestring | null · date-time | — |
parcels | — |
OrderStatus#
AWAITING_FUNDSRECEIVEDCONFIRMEDPROCESSINGSHIPPEDDELIVEREDCANCELLEDRETURNED
OrderEvent#
idstring | — |
externalOrderIdstring | — |
externalOrderNamestring | null | — |
parcelobject | — |
parcel.partinteger | — |
parcel.ofinteger | — |
orderNumberstring | null | — |
status | — |
paymentModeenum | —
|
codAmountinteger | — |
wholesaleTotalinteger | — |
shippingCostinteger | — |
margininteger | — |
marginStatusenum | —
|
marginReleaseAtstring | null · date-time | — |
rtoChargeinteger | — |
returnCreditinteger | — |
itemsobject[] | — |
trackingobject | null | — |
tracking.numberstring | — |
tracking.courierstring | — |
tracking.urlstring | null | — |
cancellationReasonstring | null | — |
Order#
idstring | — |
externalOrderIdstring | — |
externalOrderNamestring | null | — |
parcelobject | — |
parcel.partinteger | — |
parcel.ofinteger | — |
orderNumberstring | null | — |
status | — |
paymentModeenum | —
|
codAmountinteger | — |
wholesaleTotalinteger | — |
shippingCostinteger | — |
margininteger | — |
marginStatusenum | —
|
marginReleaseAtstring | null · date-time | — |
rtoChargeinteger | — |
returnCreditinteger | — |
itemsobject[] | — |
trackingobject | null | — |
tracking.numberstring | — |
tracking.courierstring | — |
tracking.urlstring | null | — |
cancellationReasonstring | null | — |
modeenum | —
|
confirmationenum | —
|
prepaidAmountinteger | — |
resaleTotalinteger | — |
shippingChargedinteger | — |
platformFeeobject | Platform fee on this parcel: |
platformFee.basisenum | —
|
platformFee.percentnumber | — |
platformFee.amountinteger | — |
expectedMargininteger | COD: credited after delivery, the fee already taken off. Prepaid: minus the platform fee. |
rtoReserveinteger | — |
customerobject | — |
fundsDeadlinestring | null · date-time | — |
historyobject[] | — |
history[].statusstring | — |
history[].atstring · date-time | — |
history[].notestring | null | — |
createdAtstring · date-time | — |
ProductEvent#
productIdstring | — |
importIdstring | — |
externalProductIdstring | null | — |
productProduct | null | — |
changesstring[] | — |
Tracking#
idstring | — |
externalOrderIdstring | — |
orderNumberstring | — |
parcelobject | — |
parcel.partinteger | — |
parcel.ofinteger | — |
statusenum | —
|
statusLabelstring | — |
paymentModeenum | —
|
amountToCollectinteger | Cash the courier collects; 0 for prepaid |
senderstring | The name printed on the parcel |
trackingobject | null | — |
tracking.numberstring | — |
tracking.courierstring | — |
shippedAtstring | null · date-time | — |
deliveredAtstring | null · date-time | — |
cancelledReasonstring | null | — |
stepsobject[] | Received → Confirmed → Being packed → On the way → Delivered, plus Cancelled/Returned when it ended there |
steps[].statusstring | — |
steps[].labelstring | — |
steps[].doneboolean | — |
steps[].atstring | null · date-time | — |
historyobject[] | — |
history[].statusstring | — |
history[].labelstring | — |
history[].atstring · date-time | — |
updatedAtstring · date-time | — |
Wallet#
availableinteger | — |
pendinginteger | Margins waiting for their release date (20 days after delivery) |
pendingOrdersinteger | — |
heldinteger | Deposit + RTO reserves |
heldDepositinteger | — |
heldReserveinteger | — |
depositRequiredinteger | — |
withdrawalsPendinginteger | — |
currency"PKR" | — |
LedgerEntry#
idstring | — |
amountinteger | Signed change to Available |
typestring | — |
statusstring | — |
descriptionstring | null | — |
createdAtstring · date-time | — |
orderobject | null | — |
WebhookConfig#
integrationIdstring | — |
urlstring | null | — |
eventsstring[] | — |
hasSecretboolean | — |
secretstring | Only when just generated |
