OrdersOrder Drafts
Add item to order draft
Adds a catalog variant or a custom item and returns the draft.
Path Parameters
draftId*string
Identifier of the order draft.
Header Parameters
x-Store-Id?string
Store the request acts on. Not needed when the token is bound to a store.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.ecomiq.pe/api/v1/order-drafts/7204558912004324769/items" \ -H "x-Store-Id: <store-id>" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "kind": "catalogVariant", "quantity": 2, "variantId": "7204558912004323197", "title": "Polo de algodón", "subtitle": "Polo de algodón", "thumbnail": "https://mi-tienda.ecomiq.app/images/polo-de-algodon.webp", "unitPrice": 89, "discount": 10 }'{ "id": "7204558912004325350", "storeId": "7204558912004327977", "customerId": "7204558912004326262", "cartId": "7204558912004325176", "draftNumber": "Mi tienda", "currencyCode": "PEN", "source": "Tienda online", "notes": "Entregar después de las 18:00.", "email": "andrea.ramos@example.com", "phone": "+51987654321", "firstName": "Andrea", "lastName": "Ramos", "identificationType": "DNI", "identificationNumber": "45678912", "entityTaxId": "7204558912004326352", "entityName": "Comercial Lima SAC", "status": "draft", "draftDate": "2026-09-28T15:30:00Z", "sentAt": "2026-09-28T15:30:00Z", "viewedAt": "2026-09-28T15:30:00Z", "acceptedAt": "2026-09-28T15:30:00Z", "rejectedAt": "2026-09-28T15:30:00Z", "expiredAt": "2026-09-28T15:30:00Z", "cancelledAt": "2026-09-28T15:30:00Z", "convertedAt": "2026-09-28T15:30:00Z", "shareToken": "replace_with_the_issued_token", "shareExpiresAt": "2026-09-28T15:30:00Z", "allowAnonymousShareAccess": false, "sharedAt": "2026-09-28T15:30:00Z", "billingAddress": { "address1": "Av. Larco 1234", "city": "Lima", "countryCode": "PE", "name": "Mi tienda", "company": "Comercial Lima SAC", "address2": "Dpto. 501", "province": "Lima", "postalCode": "15074" }, "shippingAddress": { "address1": "Av. Larco 1234", "city": "Lima", "countryCode": "PE", "name": "Mi tienda", "company": "Comercial Lima SAC", "address2": "Dpto. 501", "province": "Lima", "postalCode": "15074" }, "metadata": {}, "subTotal": 178, "discount": 10, "shipping": 1, "tax": 1, "warranty": 1, "total": 178, "paymentMethod": "Tarjeta de crédito", "paymentCode": "card", "items": [ { "id": "7204558912004325350", "productId": "7204558912004322039", "sellerId": "7204558912004323447", "shippingProfileId": "7204558912004329819", "variantId": "7204558912004323197", "title": "Polo de algodón", "subtitle": "Polo de algodón", "thumbnail": "https://mi-tienda.ecomiq.app/images/polo-de-algodon.webp", "quantity": 2, "unitPrice": 89, "subTotal": 178, "discount": 10, "shipping": 1, "tax": 1, "warranty": 1, "total": 178, "requiresShipping": false, "isTaxInclusive": false, "modifiers": [ { "id": "7204558912004325350", "modifierGroupId": "7204558912004324624", "modifierGroupName": "Personalización", "modifierOptionId": "7204558912004327012", "modifierOptionName": "Bordado", "value": "Mi tienda", "quantity": 2, "priceDelta": 89 } ], "metadata": {} } ], "shippingMethods": [ { "id": "7204558912004325350", "name": "Mi tienda", "description": "Polo de algodón pima para uso diario.", "subtotal": 178, "discountTotal": 178, "taxTotal": 178, "total": 178, "isTaxInclusive": false, "sellerId": "7204558912004323447", "shippingProfileId": "7204558912004329819", "shippingMethodId": "7204558912004325207", "connectionId": "7204558912004329542", "providerName": "Courier Lima", "trackingCode": "PE1234567890", "estimatedDays": 30, "zoneCode": "LIMA", "locationId": "7204558912004328277", "pickupPointId": "7204558912004324876", "scheduledDate": "2026-09-28", "scheduledTime": "09:00:00", "data": {} } ], "createdOn": "2026-09-28T15:30:00Z", "updatedOn": "2026-09-28T15:30:00Z"}