Pedidos

Es la entidad que almacena la información general de un pedido: número de pedido, fecha y hora, importe total, cliente que lo ha realizado, estados, etc.

Hay 3 entidades adicionales relacionadas a la consulta y gestión de pedidos:

  1. La de PAGOS (controla específicamente lo referente a pagos dentro de un pedido).

  2. La de ENVÍOS (controla lo referente a los envíos asociados a un pedido).

  3. La de CHECKOUT (controla todo el proceso de culminación de un pedido)

Ambas detalladas más adelante en esta documentación.

Obtener una lista de pedidos

GET https://tiendagoshop.com/api/v1/orders

Query Parameters

NameTypeDescription

q[created_at_gt]

string

Fecha desde.

q[created_at_lt]

string

Fecha hasta.

q[number_cont]

string

Número del pedido.

q[state_eq]

string

Estado general del pedido.

q[payment_state_eq]

string

Estado de pago del pedido.

q[shipment_state_eq]

string

Estado de envío del pedido.

q[bill_address_firstname_start]

string

Nombre cliente empieza por.

q[bill_address_lastname_start]

string

Apellido cliente empieza por.

q[email_cont]

string

Correo electrónico del cliente.

q[line_items_variant_sku_eq]

string

No. de referencia de articulo en pedido.

q[promotions_id_in]

string

ID de promoción aplicada al pedido.

q[tags_name_eq]

string

Etiqueta aplicada al pedido.

q[completed_at_not_null]

string

Solo pedidos completados.

Headers

NameTypeDescription

X-Spree-Token

string

Token generado desde el CMS de GS

{
  "orders": [
    {
      "id": 3,
      "number": "R962097487",
      "item_total": "9280.0",
      "total": "9280.0",
      "ship_total": "0.0",
      "state": "complete",
      "adjustment_total": "0.0",
      "user_id": 1,
      "created_at": "2020-09-30T15:44:13.394Z",
      "updated_at": "2020-10-01T08:09:56.965Z",
      "completed_at": "2020-09-30T15:44:30.302Z",
      "payment_total": "0.0",
      "shipment_state": "pending",
      "payment_state": "balance_due",
      "email": "pruebas@goweb.com.do",
      "special_instructions": null,
      "channel": "spree",
      "included_tax_total": "1415.59",
      "additional_tax_total": "0.0",
      "display_included_tax_total": "RD$ 1,415.59",
      "display_additional_tax_total": "RD$ 0.00",
      "tax_total": "1415.59",
      "currency": "DOP",
      "considered_risky": false,
      "canceler_id": null,
      "display_item_total": "RD$ 9,280.00",
      "total_quantity": 3,
      "display_total": "RD$ 9,280.00",
      "display_ship_total": "RD$ 0.00",
      "display_tax_total": "RD$ 1,415.59",
      "display_adjustment_total": "RD$ 0.00",
      "token": "uI8qWh9Y6rwMqOAaBXKjhQ1598949153680",
      "checkout_steps": [
        "address",
        "delivery",
        "payment",
        "complete"
      ]
    },
    {
      "id": 4,
      "number": "R964313178",
      "item_total": "6080.0",
      "total": "6081.25",
      "ship_total": "1.25",
      "state": "complete",
      "adjustment_total": "0.0",
      "user_id": 1,
      "created_at": "2020-09-30T16:09:17.175Z",
      "updated_at": "2020-10-01T11:35:49.196Z",
      "completed_at": "2020-10-01T11:33:23.138Z",
      "payment_total": "6081.25",
      "shipment_state": "pickup_ready",
      "payment_state": "paid",
      "email": "pruebas@goweb.com.do",
      "special_instructions": null,
      "channel": "spree",
      "included_tax_total": "927.65",
      "additional_tax_total": "0.0",
      "display_included_tax_total": "RD$ 927.65",
      "display_additional_tax_total": "RD$ 0.00",
      "tax_total": "927.65",
      "currency": "DOP",
      "considered_risky": false,
      "canceler_id": null,
      "display_item_total": "RD$ 6,080.00",
      "total_quantity": 2,
      "display_total": "RD$ 6,081.25",
      "display_ship_total": "RD$ 1.25",
      "display_tax_total": "RD$ 927.65",
      "display_adjustment_total": "RD$ 0.00",
      "token": "uI8qWh9Y6rwMqOAaBXKjhQ1598949153680",
      "checkout_steps": [
        "address",
        "delivery",
        "payment",
        "complete"
      ]
    },
    {
      "id": 1,
      "number": "R370449752",
      "item_total": "1540.0",
      "total": "1540.0",
      "ship_total": "0.0",
      "state": "complete",
      "adjustment_total": "0.0",
      "user_id": 1,
      "created_at": "2020-09-26T09:09:07.396Z",
      "updated_at": "2020-09-30T15:40:12.326Z",
      "completed_at": "2020-09-30T13:14:40.121Z",
      "payment_total": "770.0",
      "shipment_state": "completed",
      "payment_state": "balance_due",
      "email": "pruebas@goweb.com.do",
      "special_instructions": null,
      "channel": "spree",
      "included_tax_total": "234.92",
      "additional_tax_total": "0.0",
      "display_included_tax_total": "RD$ 234.92",
      "display_additional_tax_total": "RD$ 0.00",
      "tax_total": "234.92",
      "currency": "DOP",
      "considered_risky": false,
      "canceler_id": null,
      "display_item_total": "RD$ 1,540.00",
      "total_quantity": 4,
      "display_total": "RD$ 1,540.00",
      "display_ship_total": "RD$ 0.00",
      "display_tax_total": "RD$ 234.92",
      "display_adjustment_total": "RD$ 0.00",
      "token": "uI8qWh9Y6rwMqOAaBXKjhQ1598949153680",
      "checkout_steps": [
        "address",
        "delivery",
        "payment",
        "complete"
      ]
    },
    {
      "id": 2,
      "number": "R553454180",
      "item_total": "0.0",
      "total": "0.0",
      "ship_total": "0.0",
      "state": "complete",
      "adjustment_total": "0.0",
      "user_id": 1,
      "created_at": "2020-09-30T15:37:33.751Z",
      "updated_at": "2020-09-30T15:43:55.127Z",
      "completed_at": "2020-09-30T15:37:41.667Z",
      "payment_total": "0.0",
      "shipment_state": null,
      "payment_state": "paid",
      "email": "pruebas@goweb.com.do",
      "special_instructions": null,
      "channel": "spree",
      "included_tax_total": "0.0",
      "additional_tax_total": "0.0",
      "display_included_tax_total": "RD$ 0.00",
      "display_additional_tax_total": "RD$ 0.00",
      "tax_total": "0.0",
      "currency": "DOP",
      "considered_risky": false,
      "canceler_id": null,
      "display_item_total": "RD$ 0.00",
      "total_quantity": 0,
      "display_total": "RD$ 0.00",
      "display_ship_total": "RD$ 0.00",
      "display_tax_total": "RD$ 0.00",
      "display_adjustment_total": "RD$ 0.00",
      "token": "uI8qWh9Y6rwMqOAaBXKjhQ1598949153680",
      "checkout_steps": [
        "address",
        "delivery",
        "complete"
      ]
    }
  ],
  "count": 4,
  "current_page": 1,
  "pages": 1
}

Obtener un pedido

GET https://tiendagoshop.com/api/v1/orders/:order_number

Path Parameters

NameTypeDescription

order_number

integer

Número de la orden que contiene el pedido.

Headers

NameTypeDescription

X-Spree-Token

string

Token generado desde el CMS de GS

{
  "id": 3,
  "number": "R962097487",
  "item_total": "9280.0",
  "total": "9280.0",
  "ship_total": "0.0",
  "state": "complete",
  "adjustment_total": "0.0",
  "user_id": 1,
  "created_at": "2020-09-30T15:44:13.394Z",
  "updated_at": "2020-10-01T08:09:56.965Z",
  "completed_at": "2020-09-30T15:44:30.302Z",
  "payment_total": "0.0",
  "shipment_state": "pending",
  "payment_state": "balance_due",
  "email": "pruebas@goweb.com.do",
  "special_instructions": null,
  "channel": "spree",
  "included_tax_total": "1415.59",
  "additional_tax_total": "0.0",
  "display_included_tax_total": "RD$ 1,415.59",
  "display_additional_tax_total": "RD$ 0.00",
  "tax_total": "1415.59",
  "currency": "DOP",
  "considered_risky": false,
  "canceler_id": null,
  "display_item_total": "RD$ 9,280.00",
  "total_quantity": 3,
  "display_total": "RD$ 9,280.00",
  "display_ship_total": "RD$ 0.00",
  "display_tax_total": "RD$ 1,415.59",
  "display_adjustment_total": "RD$ 0.00",
  "token": "uI8qWh9Y6rwMqOAaBXKjhQ1598949153680",
  "checkout_steps": [
    "address",
    "delivery",
    "payment",
    "complete"
  ],
  "bill_address": {
    "id": 5,
    "firstname": "Juan",
    "lastname": "Gutierrez",
    "full_name": "Juan Gutierrez",
    "address1": "Calle Pintor maella 11",
    "address2": "",
    "city": "Santo Domingo",
    "zipcode": "12345",
    "phone": "8090000000",
    "company": null,
    "alternative_phone": null,
    "country_id": 1,
    "state_id": 2,
    "state_name": null,
    "state_text": "02",
    "country": {
      "id": 1,
      "iso_name": "DOMINICAN REPUBLIC",
      "iso": "DO",
      "iso3": "DOM",
      "name": "Dominican Republic",
      "numcode": 214
    },
    "state": {
      "id": 2,
      "name": "Azua",
      "abbr": "02",
      "country_id": 1
    }
  },
  "ship_address": {
    "id": 6,
    "firstname": "Juan",
    "lastname": "Gutierrez",
    "full_name": "Juan Gutierrez",
    "address1": "Calle Pintor maella 11",
    "address2": "",
    "city": "Santo Domingo",
    "zipcode": "12345",
    "phone": "8090000000",
    "company": null,
    "alternative_phone": null,
    "country_id": 1,
    "state_id": 1,
    "state_name": null,
    "state_text": "01",
    "country": {
      "id": 1,
      "iso_name": "DOMINICAN REPUBLIC",
      "iso": "DO",
      "iso3": "DOM",
      "name": "Dominican Republic",
      "numcode": 214
    },
    "state": {
      "id": 1,
      "name": "Distrito Nacional (Santo Domingo)",
      "abbr": "01",
      "country_id": 1
    }
  },
  "line_items": [
    {
      "id": 3,
      "quantity": 2,
      "price": "3200.0",
      "variant_id": 52,
      "variant": {
        "product_id": 48,
        "id": 52,
        "name": "Taladro Inalambrico 12v B&d",
        "sku": "885911431309",
        "price": "3200.0",
        "weight": "0.0",
        "height": null,
        "width": null,
        "depth": null,
        "is_master": true,
        "slug": "taladro-inalambrico-12v-b-d",
        "description": "El embrague de 11 posiciones evita que los tornillos se pelen y se sobrecarguen\nMandril sin llave\nLa luz LED proporciona una mayor visibilidad en espacios oscuros o estrechos\nLigero y compacto\nMango de agarre suave\nLa batería de iones de litio mantiene la carga hasta 18 meses\nIncluye batería de 12V, cargador y broca de dos extremos",
        "track_inventory": true,
        "cost_price": null,
        "gd_size_reference": "normal",
        "option_values": [],
        "images": [
          {
            "id": 130,
            "position": 1,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 52,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZTQ9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ad93eb3ea7f20933964d33db37ee7039b87ae9ef/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/bdcdd12c.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZTQ9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ad93eb3ea7f20933964d33db37ee7039b87ae9ef/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/bdcdd12c.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZTQ9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ad93eb3ea7f20933964d33db37ee7039b87ae9ef/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/bdcdd12c.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZTQ9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ad93eb3ea7f20933964d33db37ee7039b87ae9ef/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/bdcdd12c.jpg"
          },
          {
            "id": 131,
            "position": 2,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 52,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZTg9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--db48a62702fe8c0ebc1d9b07def7a131c37d5c76/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/bdcdd12c-5.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZTg9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--db48a62702fe8c0ebc1d9b07def7a131c37d5c76/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/bdcdd12c-5.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZTg9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--db48a62702fe8c0ebc1d9b07def7a131c37d5c76/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/bdcdd12c-5.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZTg9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--db48a62702fe8c0ebc1d9b07def7a131c37d5c76/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/bdcdd12c-5.jpg"
          },
          {
            "id": 132,
            "position": 3,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 52,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkE9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--133b1a749826a4d9f018ec5d26de5077d95b5a62/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/bdcdd12c-4.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkE9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--133b1a749826a4d9f018ec5d26de5077d95b5a62/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/bdcdd12c-4.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkE9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--133b1a749826a4d9f018ec5d26de5077d95b5a62/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/bdcdd12c-4.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkE9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--133b1a749826a4d9f018ec5d26de5077d95b5a62/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/bdcdd12c-4.jpg"
          },
          {
            "id": 133,
            "position": 4,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 52,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkU9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4adadce3812db405b0310eb1d2f545e95cab1f53/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/bdcdd12c-3.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkU9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4adadce3812db405b0310eb1d2f545e95cab1f53/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/bdcdd12c-3.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkU9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4adadce3812db405b0310eb1d2f545e95cab1f53/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/bdcdd12c-3.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkU9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4adadce3812db405b0310eb1d2f545e95cab1f53/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/bdcdd12c-3.jpg"
          },
          {
            "id": 134,
            "position": 5,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 52,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkk9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--552e030de206b42d23dd81681133931625848d94/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/bdcdd12c-2.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkk9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--552e030de206b42d23dd81681133931625848d94/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/bdcdd12c-2.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkk9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--552e030de206b42d23dd81681133931625848d94/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/bdcdd12c-2.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZkk9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--552e030de206b42d23dd81681133931625848d94/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/bdcdd12c-2.jpg"
          },
          {
            "id": 135,
            "position": 6,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 52,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZk09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ef7c8f006566694b4dbaaebc5f01e5d11766ef73/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/bdcdd12c-1.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZk09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ef7c8f006566694b4dbaaebc5f01e5d11766ef73/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/bdcdd12c-1.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZk09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ef7c8f006566694b4dbaaebc5f01e5d11766ef73/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/bdcdd12c-1.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZk09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ef7c8f006566694b4dbaaebc5f01e5d11766ef73/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/bdcdd12c-1.jpg"
          }
        ],
        "display_price": "RD$ 3,200.00",
        "options_text": "",
        "in_stock": true,
        "is_backorderable": false,
        "is_orderable": true,
        "total_on_hand": 1,
        "is_destroyed": false
      },
      "adjustments": [
        {
          "id": 47,
          "source_type": "Spree::TaxRate",
          "source_id": 1,
          "adjustable_type": "Spree::LineItem",
          "adjustable_id": 3,
          "amount": "976.27",
          "label": "ITBIS 18% (incluido)",
          "mandatory": null,
          "eligible": true,
          "created_at": "2020-09-30T16:32:14.219Z",
          "updated_at": "2020-10-01T08:09:56.899Z",
          "display_amount": "RD$ 976.27"
        }
      ],
      "single_display_amount": "RD$ 3,200.00",
      "display_amount": "RD$ 6,400.00",
      "total": "6400.0"
    },
    {
      "id": 4,
      "quantity": 1,
      "price": "2880.0",
      "variant_id": 62,
      "variant": {
        "product_id": 58,
        "id": 62,
        "name": "Manguera 5/8\"x100' Flexon Usa Heavy Duty",
        "sku": "0044882305068",
        "price": "2880.0",
        "weight": "0.0",
        "height": null,
        "width": null,
        "depth": null,
        "is_master": true,
        "slug": "manguera-5-8-x100-flexon-usa-heavy-duty",
        "description": "TRABAJO PESADO\n\nCONECTOR GUARD-N-GRIP®\nCONSTRUCCIÓN DE 5 CAPAS LIBRE DE PLIEGUES\nACOPLAMIENTOS A PRUEBA DE APLASTAMIENTO\n\nMEJOR UTILIZADO PARA:\n\nLas mangueras Flexon Heavy Duty ofrecen una calidad duradera y un rendimiento comprobado. Cuentan con refuerzo radial tejido, una cubierta de vinilo resistente a la intemperie y acoplamientos sólidos a prueba de golpes. Todas estas características se suman al rendimiento, incluido un excelente manejo y un flujo de agua continuo durante todo el año. Durabilidad, confiabilidad y calidad duradera son las características distintivas de la línea de manguera de agua de servicio pesado de Flexon.",
        "track_inventory": true,
        "cost_price": null,
        "gd_size_reference": "medium",
        "option_values": [],
        "images": [
          {
            "id": 154,
            "position": 1,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 62,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--eedea1626b7745a2e33b67bd64bff91054b552ae/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/m04832.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--eedea1626b7745a2e33b67bd64bff91054b552ae/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/m04832.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--eedea1626b7745a2e33b67bd64bff91054b552ae/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/m04832.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--eedea1626b7745a2e33b67bd64bff91054b552ae/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/m04832.jpg"
          },
          {
            "id": 155,
            "position": 2,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 62,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakVCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bfb7fb112bbe7cca873e994d772153dc30f7fd4a/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/m04832-4.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakVCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bfb7fb112bbe7cca873e994d772153dc30f7fd4a/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/m04832-4.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakVCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bfb7fb112bbe7cca873e994d772153dc30f7fd4a/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/m04832-4.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBakVCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bfb7fb112bbe7cca873e994d772153dc30f7fd4a/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/m04832-4.jpg"
          },
          {
            "id": 156,
            "position": 3,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 62,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaklCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--88199264f55274298bdee17fe7614aae7b09ce03/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/m04832-3.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaklCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--88199264f55274298bdee17fe7614aae7b09ce03/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/m04832-3.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaklCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--88199264f55274298bdee17fe7614aae7b09ce03/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/m04832-3.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaklCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--88199264f55274298bdee17fe7614aae7b09ce03/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/m04832-3.jpg"
          },
          {
            "id": 157,
            "position": 4,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 62,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBak1CIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2c2734ddf3c2a6b436949300fec6564b49cd17f6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/m04832-2.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBak1CIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2c2734ddf3c2a6b436949300fec6564b49cd17f6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/m04832-2.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBak1CIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2c2734ddf3c2a6b436949300fec6564b49cd17f6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/m04832-2.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBak1CIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2c2734ddf3c2a6b436949300fec6564b49cd17f6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/m04832-2.jpg"
          },
          {
            "id": 158,
            "position": 5,
            "attachment_content_type": null,
            "attachment_file_name": null,
            "type": null,
            "attachment_updated_at": null,
            "attachment_width": null,
            "attachment_height": null,
            "alt": null,
            "viewable_type": "Spree::Variant",
            "viewable_id": 62,
            "mini_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBalFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e1e9b5e347ad6ac6df0f5b78b8f64644a403710d/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lMTkRoNE5EZytCam9HUlZRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--53dd3a397ef75f99844617f2dfd95f45590ea476/m04832-1.jpg",
            "small_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBalFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e1e9b5e347ad6ac6df0f5b78b8f64644a403710d/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTVRBd2VERXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--f7f7c44d52ed48123c6ef4614ef21d02fcfe0bb3/m04832-1.jpg",
            "product_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBalFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e1e9b5e347ad6ac6df0f5b78b8f64644a403710d/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTWpRd2VESTBNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--c76cc7abff21e86ef08bda6a116c120885214969/m04832-1.jpg",
            "large_url": "https://pruebas.goshop.test/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBalFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e1e9b5e347ad6ac6df0f5b78b8f64644a403710d/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lOTmpBd2VEWXdNRDRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1577b201d4d98798da1a095f7eb5500e162d8fba/m04832-1.jpg"
          }
        ],
        "display_price": "RD$ 2,880.00",
        "options_text": "",
        "in_stock": true,
        "is_backorderable": false,
        "is_orderable": true,
        "total_on_hand": 14,
        "is_destroyed": false
      },
      "adjustments": [
        {
          "id": 46,
          "source_type": "Spree::TaxRate",
          "source_id": 1,
          "adjustable_type": "Spree::LineItem",
          "adjustable_id": 4,
          "amount": "439.32",
          "label": "ITBIS 18% (incluido)",
          "mandatory": null,
          "eligible": true,
          "created_at": "2020-09-30T16:32:14.099Z",
          "updated_at": "2020-10-01T08:09:56.880Z",
          "display_amount": "RD$ 439.32"
        }
      ],
      "single_display_amount": "RD$ 2,880.00",
      "display_amount": "RD$ 2,880.00",
      "total": "2880.0"
    }
  ],
  "payments": [
    {
      "id": 5,
      "source_type": null,
      "source_id": null,
      "amount": "3200.0",
      "display_amount": "RD$ 3,200.00",
      "payment_method_id": 1,
      "state": "checkout",
      "avs_response": null,
      "created_at": "2020-09-30T15:44:30.234Z",
      "updated_at": "2020-09-30T15:44:30.234Z",
      "number": "PVVH6XZN",
      "payment_method": {
        "id": 1,
        "name": "Transferencia bancaria"
      },
      "source": null
    }
  ],
  "shipments": [
    {
      "id": 3,
      "tracking": null,
      "number": "H39367872705",
      "cost": "0.0",
      "shipped_at": null,
      "state": "pending",
      "shipping_rates": [
        {
          "id": 54,
          "name": "Recogida en tienda",
          "cost": "0.0",
          "selected": true,
          "shipping_method_id": 1,
          "shipping_method_code": "pickup",
          "display_cost": "RD$ 0.00"
        }
      ],
      "selected_shipping_rate": {
        "id": 54,
        "name": "Recogida en tienda",
        "cost": "0.0",
        "selected": true,
        "shipping_method_id": 1,
        "shipping_method_code": "pickup",
        "display_cost": "RD$ 0.00"
      },
      "shipping_methods": [
        {
          "id": 1,
          "code": "pickup",
          "name": "Recogida en tienda",
          "zones": [
            {
              "id": 1,
              "name": "República Dominicana",
              "description": ""
            }
          ],
          "shipping_categories": [
            {
              "id": 1,
              "name": "Estándar"
            }
          ]
        }
      ],
      "manifest": [
        {
          "variant_id": 62,
          "quantity": 1,
          "states": {
            "on_hand": 1
          }
        },
        {
          "variant_id": 52,
          "quantity": 2,
          "states": {
            "on_hand": 2
          }
        }
      ],
      "adjustments": [],
      "order_id": "R962097487",
      "stock_location_name": "pruebas"
    }
  ],
  "adjustments": [],
  "credit_cards": [],
  "permissions": {
    "can_update": true
  }
}

Eliminar los productos de un pedido

PUT https://tiendagoshop.com/api/v1/orders/:order_number/empty

Path Parameters

NameTypeDescription

order_number

string

Número de orden del pedido.

Headers

NameTypeDescription

X-Spree-Token

string

Token generado desde el CMS de GS

Cancelar un pedido

PUT https://tiendagoshop.com/api/v1/orders/:order_number/cancel

Modifica la dirección del cliente asociada a un pedido en específico.

Path Parameters

NameTypeDescription

id

integer

ID del pedido.

order_number

integer

Número de la orden que contiene el pedido.

Headers

NameTypeDescription

X-Spree-Token

string

Token generado desde el CMS de GS

Adjuntar factura del cliente (archivo PDF o imagen) al pedido.

POST https://tiendagoshop.com/api/v1/orders/:order_number/customer_invoice

Path Parameters

NameTypeDescription

order_number

string

Número de la orden que contiene el pedido.

Headers

NameTypeDescription

X-Spree-Token

string

Token generado desde el CMS de GS

Request Body

NameTypeDescription

customer_invoice_base64

string

Factura en Base64

customer_invoice_base64_content_type

string

Tipo de datos. Valor: application/pdf

Crear un nuevo pedido

POST https://tiendagoshop.com/api/v1/orders/

Headers

NameTypeDescription

X-Spree-Token*

String

Token generado desde el CMS de GS

Request Body

NameTypeDescription

user_id*

String

ID del cliente

completed_at

Timestamp

Fecha de finalización del pedido

approver_id

String

ID del usuario administrador

approved_at

String

Fecha de aprobación del pedido

bill_address_attributes*

Hash

Hash con la información de dirección de facturación

ship_address_attributes*

Hash

Hash con la información de dirección de envío

email*

String

email de cliente

special_instructions

String

Instrucciones especiales en caso para el pedido si las hubiere.

currency*

String

ISO de moneda según país, EJ Republica Dominicana, DOP

created_by_id*

String

id de usuario Administrador

channel

String

Canal de creación de pedido

line_items*

Hash de objetoss

Hash con las variantes y cantidades. Ej. { "variant_id": 509, "quantity": 1 }, { "variant_id": 591, "quantity": 2 }

// Ejemplo request.
{
    "order": {
      "state": "cart",
      "adjustment_total": 20,
      "user_id": "1",
      "completed_at": "2022-04-04 08:45:30 UTC",
      "approver_id": "string",
       "approved_at": "2022-02-22 08:45:30 UTC",
       "bill_address_attributes": {
        "firstname": "John",
        "lastname": "Doe",
        "address1": "7735 Old Georgetown Road",
        "city": "Bethesda",
        "phone": "3014445002",
        "state_id": 1,
        "country_id": 1
      },
      "ship_address_attributes": {
        "firstname": "John",
        "lastname": "Doe",
        "address1": "7735 Old Georgetown Road",
        "city": "Bethesda",
        "phone": "3014445002",
        "state_id": 1,
        "country_id": 1
      },
      "email": "hi@getvendo.com",
      "special_instructions": "Necesito que envien en horario nocturno. Gracias.",
      "currency": "DOP",
      "created_by_id": "7777",
      "channel": "API Goshop",
       "line_items": [
        { "variant_id": 509, "quantity": 1 }
      ]
    }
  }


// Ejemplo response
{
    "id": 357,
    "number": "R557006856",
    "item_total": "1000.0",
    "total": "1000.0",
    "ship_total": "0.0",
    "state": "cart",
    "adjustment_total": "0.0",
    "user_id": 1,
    "created_at": "2022-04-05T01:05:28.857-04:00",
    "updated_at": "2022-04-05T01:05:32.755-04:00",
    "completed_at": "2022-04-04T04:45:30.000-04:00",
    "payment_total": "0.0",
    "shipment_state": "pending",
    "payment_state": "balance_due",
    "email": "hi@getvendo.com",
    "special_instructions": "Necesito que envien en horario nocturno. Gracias.",
    "channel": "API Goshop",
    "included_tax_total": "152.54",
    "additional_tax_total": "0.0",
    "display_included_tax_total": "RD$ 152.54",
    "display_additional_tax_total": "RD$ 0.00",
    "tax_total": "152.54",
    "currency": "DOP",
    "considered_risky": false,
    "canceler_id": null,
    "display_item_total": "RD$ 1,000.00",
    "total_quantity": "1.0",
    "display_total": "RD$ 1,000.00",
    "display_ship_total": "RD$ 0.00",
    "display_tax_total": "RD$ 152.54",
    "display_adjustment_total": "RD$ 0.00",
    "token": "9cl81pc1q3Z8Ysj4iMOgdA1649135128857",
    "checkout_steps": [
        "address",
        "delivery",
        "payment",
        "complete"
    ],
    "bill_address": {
        "id": 1733,
        "firstname": "John",
        "lastname": "Doe",
        "full_name": "John Doe",
        "address1": "7735 Old Georgetown Road",
        "address2": null,
        "city": "Bethesda",
        "zipcode": null,
        "phone": "3014445002",
        "company": null,
        "alternative_phone": null,
        "country_id": 1,
        "state_id": 1,
        "label": null,
        "state_name": null,
        "state_text": "01",
        "address_type": null,
        "rnc": null,
        "fiscal_type": null,
        "last_used": null,
        "geo_address": null,
        "geo_lat": null,
        "geo_lng": null,
        "user_id": null,
        "country": {
            "id": 1,
            "iso_name": "DOMINICAN REPUBLIC",
            "iso": "DO",
            "iso3": "DOM",
            "name": "Dominican Republic",
            "numcode": 214
        },
        "state": {
            "id": 1,
            "name": "Distrito Nacional (Santo Domingo)",
            "abbr": "01",
            "country_id": 1
        }
    },
    "ship_address": {
        "id": 1733,
        "firstname": "John",
        "lastname": "Doe",
        "full_name": "John Doe",
        "address1": "7735 Old Georgetown Road",
        "address2": null,
        "city": "Bethesda",
        "zipcode": null,
        "phone": "3014445002",
        "company": null,
        "alternative_phone": null,
        "country_id": 1,
        "state_id": 1,
        "label": null,
        "state_name": null,
        "state_text": "01",
        "address_type": null,
        "rnc": null,
        "fiscal_type": null,
        "last_used": null,
        "geo_address": null,
        "geo_lat": null,
        "geo_lng": null,
        "user_id": null,
        "country": {
            "id": 1,
            "iso_name": "DOMINICAN REPUBLIC",
            "iso": "DO",
            "iso3": "DOM",
            "name": "Dominican Republic",
            "numcode": 214
        },
        "state": {
            "id": 1,
            "name": "Distrito Nacional (Santo Domingo)",
            "abbr": "01",
            "country_id": 1
        }
    },
    "line_items": [
        {
            "id": 559,
            "quantity": "1.0",
            "price": "1000.0",
            "variant_id": 509,
            "variant": {
                "product_id": 434,
                "id": 509,
                "name": "Peluche p/ perros",
                "sku": "8989",
                "price": "1000.0",
                "weight": "1.0",
                "height": null,
                "width": null,
                "depth": null,
                "is_master": true,
                "slug": "pollo-de-corral",
                "description": "",
                "track_inventory": true,
                "cost_price": "1250.0",
                "gd_size_reference": "document",
                "decimal_quantity_step": "1.0",
                "option_values": [],
                "images": [
                    {
                        "id": 247,
                        "position": 1,
                        "attachment_content_type": null,
                        "attachment_file_name": null,
                        "type": null,
                        "attachment_updated_at": null,
                        "attachment_width": null,
                        "attachment_height": null,
                        "alt": null,
                        "viewable_type": "Spree::Variant",
                        "viewable_id": 509,
                        "mini_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdVlCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4ec86885ce9ef9ce8897a23b4bb019535361279/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWdzME9IZzBPRDRHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--2f1b2cae634146e891b3c296278cd9d1548a7afd/petmarket.jpeg",
                        "small_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdVlCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4ec86885ce9ef9ce8897a23b4bb019535361279/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcweE1EQjRNVEF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--6b13ad18266c7375177a3c77e3075750ba2ffcc0/petmarket.jpeg",
                        "product_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdVlCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4ec86885ce9ef9ce8897a23b4bb019535361279/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcweU5EQjRNalF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--0dca4744e165205c4e78d1faa31afdc856bed168/petmarket.jpeg",
                        "large_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdVlCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4ec86885ce9ef9ce8897a23b4bb019535361279/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcwMk1EQjROakF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--27fe3250808b0a95142813596859c3f064cf5966/petmarket.jpeg"
                    },
                    {
                        "id": 248,
                        "position": 2,
                        "attachment_content_type": null,
                        "attachment_file_name": null,
                        "type": null,
                        "attachment_updated_at": null,
                        "attachment_width": null,
                        "attachment_height": null,
                        "alt": null,
                        "viewable_type": "Spree::Variant",
                        "viewable_id": 509,
                        "mini_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d19e9a43bea7fd8d59ae91f9e8032989a57b15c5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2QzNKbGMybDZaVWtpQ3pRNGVEUTRQZ1k3QmxRPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--7b28929397790ee66b7cc4c7f09b8a5afc2f8498/petmarket31.png",
                        "small_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d19e9a43bea7fd8d59ae91f9e8032989a57b15c5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2QzNKbGMybDZaVWtpRFRFd01IZ3hNREErQmpzR1ZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--63f162083ed317c256ddb1068727755a332b26c5/petmarket31.png",
                        "product_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d19e9a43bea7fd8d59ae91f9e8032989a57b15c5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2QzNKbGMybDZaVWtpRFRJME1IZ3lOREErQmpzR1ZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--44c4c36e97ceca3fb66796bbf810402e688122c1/petmarket31.png",
                        "large_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWNCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d19e9a43bea7fd8d59ae91f9e8032989a57b15c5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2QzNKbGMybDZaVWtpRFRZd01IZzJNREErQmpzR1ZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--ffc144c7539038c8d24daab34ce2b2c2712710e1/petmarket31.png"
                    },
                    {
                        "id": 249,
                        "position": 3,
                        "attachment_content_type": null,
                        "attachment_file_name": null,
                        "type": null,
                        "attachment_updated_at": null,
                        "attachment_width": null,
                        "attachment_height": null,
                        "alt": null,
                        "viewable_type": "Spree::Variant",
                        "viewable_id": 509,
                        "mini_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWdCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c51db43cf65a890fa8ec2935e7cdc408e0d1a8d6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWdzME9IZzBPRDRHT3daVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--2f1b2cae634146e891b3c296278cd9d1548a7afd/petmarket1.jpeg",
                        "small_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWdCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c51db43cf65a890fa8ec2935e7cdc408e0d1a8d6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcweE1EQjRNVEF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--6b13ad18266c7375177a3c77e3075750ba2ffcc0/petmarket1.jpeg",
                        "product_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWdCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c51db43cf65a890fa8ec2935e7cdc408e0d1a8d6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcweU5EQjRNalF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--0dca4744e165205c4e78d1faa31afdc856bed168/petmarket1.jpeg",
                        "large_url": "http://test8.goshop.test:5000/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdWdCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c51db43cf65a890fa8ec2935e7cdc408e0d1a8d6/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lKYW5CbFp3WTZCa1ZVT2d0eVpYTnBlbVZKSWcwMk1EQjROakF3UGdZN0JsUT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--27fe3250808b0a95142813596859c3f064cf5966/petmarket1.jpeg"
                    }
                ],
                "display_price": "RD$ 1,000.00",
                "options_text": "",
                "in_stock": true,
                "is_backorderable": false,
                "is_orderable": true,
                "total_on_hand": "129.0",
                "is_destroyed": false
            },
            "adjustments": [
                {
                    "id": 3724,
                    "source_type": "Spree::TaxRate",
                    "source_id": 1,
                    "adjustable_type": "Spree::LineItem",
                    "adjustable_id": 559,
                    "amount": "152.54",
                    "label": "ITBIS 18% (incluido)",
                    "mandatory": null,
                    "eligible": true,
                    "created_at": "2022-04-05T01:05:29.869-04:00",
                    "updated_at": "2022-04-05T01:05:31.450-04:00",
                    "display_amount": "RD$ 152.54"
                }
            ],
            "single_display_amount": "RD$ 1,000.00",
            "display_amount": "RD$ 1,000.00",
            "total": "1000.0"
        }
    ],
    "payments": [],
    "shipments": [
        {
            "id": 795,
            "tracking": null,
            "number": "H24509462815",
            "cost": "0.0",
            "shipped_at": null,
            "state": "pending",
            "shipping_rates": [
                {
                    "id": 2248,
                    "name": "Lista de regalos",
                    "cost": "0.0",
                    "selected": true,
                    "shipping_method_id": 2,
                    "shipping_method_code": "giftregistry",
                    "display_cost": "RD$ 0.00"
                }
            ],
            "selected_shipping_rate": {
                "id": 2248,
                "name": "Lista de regalos",
                "cost": "0.0",
                "selected": true,
                "shipping_method_id": 2,
                "shipping_method_code": "giftregistry",
                "display_cost": "RD$ 0.00"
            },
            "shipping_methods": [
                {
                    "id": 2,
                    "code": "giftregistry",
                    "name": "Lista de regalos",
                    "zones": [
                        {
                            "id": 1,
                            "name": "República Dominicana",
                            "description": ""
                        },
                        {
                            "id": 2,
                            "name": "Venezuela",
                            "description": "Venezuela"
                        }
                    ],
                    "shipping_categories": [
                        {
                            "id": 1,
                            "name": "Estándar"
                        },
                        {
                            "id": 2,
                            "name": "Zoom"
                        }
                    ]
                }
            ],
            "manifest": [
                {
                    "variant_id": 509,
                    "quantity": "1.0",
                    "states": {
                        "on_hand": "1.0"
                    }
                }
            ],
            "adjustments": [],
            "order_id": "R557006856",
            "stock_location_name": "Almacen 3"
        }
    ],
    "adjustments": [],