Saltar al contenido
Carritos y checkoutBorradores de pedido

Obtener borrador compartido

Devuelve el borrador compartido con ese token, con artículos, envíos y totales.

GET/v1/order-drafts/share/{shareToken}
Sin token

Parámetros de ruta

shareToken*string

Parámetros de cabecera

x-Store-Domain*string

Slug de la tienda o uno de sus dominios configurados, como my-store.

Longitud1 <= length <= 253

Cuerpo de la respuesta

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://storefront.ecomiq.pe/v1/order-drafts/share/replace_with_the_issued_token" \  -H "x-Store-Domain: my-store"
{  "id": "7204558912004325460",  "draftNumber": "BOR-2026-0001",  "currencyCode": "PEN",  "status": "viewed",  "email": "andrea.ramos@example.com",  "phone": "+51987654321",  "firstName": "Andrea",  "lastName": "Ramos",  "identificationType": null,  "identificationNumber": null,  "entityTaxId": null,  "entityName": null,  "billingAddress": {    "name": "Andrea Ramos",    "company": null,    "address1": "Av. Larco 1234",    "address2": "Dpto. 501",    "city": "Lima",    "countryCode": "PE",    "province": "Lima",    "postalCode": "15074",    "district": "Miraflores",    "phone": "+51987654321",    "latitude": null,    "longitude": null,    "metadata": {}  },  "shippingAddress": {    "name": "Andrea Ramos",    "company": null,    "address1": "Av. Larco 1234",    "address2": "Dpto. 501",    "city": "Lima",    "countryCode": "PE",    "province": "Lima",    "postalCode": "15074",    "district": "Miraflores",    "phone": "+51987654321",    "latitude": null,    "longitude": null,    "metadata": {}  },  "subTotal": 178,  "discount": -18,  "shipping": 10,  "tax": 0,  "warranty": 0,  "total": 170,  "items": [    {      "id": "7204558912004325461",      "productId": "7204558912004325302",      "variantId": "7204558912004325377",      "title": "Polo de algodón",      "subtitle": "Azul / M",      "thumbnail": null,      "quantity": 2,      "unitPrice": 89,      "subTotal": 178,      "discount": -18,      "shipping": 0,      "tax": 0,      "warranty": 0,      "total": 160,      "requiresShipping": true,      "isTaxInclusive": false    }  ],  "shippingMethods": [    {      "name": "Entrega estándar",      "description": "Entrega a domicilio en Lima.",      "subtotal": 10,      "discountTotal": 0,      "taxTotal": 0,      "total": 10,      "isTaxInclusive": false,      "estimatedDays": 2,      "scheduledDate": null,      "scheduledTime": null    }  ],  "orderPaths": null}