printdotio / printio-api

Issues + wiki for the api. See http://print.io/api
0 stars 0 forks source link

Multiple identical SKUs when submitting order #17

Closed chrischen closed 9 years ago

chrischen commented 9 years ago

When submitting order, do I have to merge all the identical SKUs or can I have the same SKU appear twice in the items submitted?

AustenB commented 9 years ago

You can have the same sku twice - they must be twice if they are different images.

On Fri, Mar 13, 2015 at 5:54 PM, chrischen notifications@github.com wrote:

When submitting order, do I have to merge all the identical SKUs or can I have the same SKU appear twice in the items submitted?

— Reply to this email directly or view it on GitHub https://github.com/printdotio/printio-api/issues/17.

Austen Bernstein Founder & CEO printio

chrischen commented 9 years ago

When I get shipping prices and they list SKUs in that quote, can the same SKUs appear in two shipping quote items? Or do you ship all the same SKUs together?

Is it possible for "asdf" below to show up in two results? on /shippingprices

chrischen commented 9 years ago

Ex:

[
    {
      "SKUs": [
        "asdf"
      ],
      "ShipOptions": []
    },
    {
      "SKUs": [
        "asdf"
      ],
      "ShipOptions": []
    }
]
micahasmith commented 9 years ago

If you pass in

{
  "ShipToPostalCode": "15301",
  "ShipToCountry": "US",
  "ShipToState": "PA",
  "CurrencyCode": "USD",
  "LanguageCode": "en",
  "Items": [
    {
      "SKU": "CanvsWrp-ImgWrp-10x10",
      "Quantity": 1
    },
{
      "SKU": "CanvsWrp-ImgWrp-10x10",
      "Quantity": 1
    }
  ]
}

You'll notice that it combines them into one result:

{
  "Result": [
    {
      "SKUs": [
        "CanvsWrp-ImgWrp-10x10"
      ],
      "ShipOptions": [
        {
          "CarrierName": "Standard",
          "MethodType": "Standard",
          "Name": "Standard",
          "Price": {
            "Price": 14,
            "CurrencyCode": "USD",
            "FormattedPrice": "$14.00",
            "CurrencyFormat": "${1}",
            "CurrencyDigits": 2
          },
          "Id": 1,
          "EstBusinessDaysTilDelivery": 12,
          "MethodId": 3
        },
        {
          "CarrierName": "Expedited",
          "MethodType": "Expedited",
          "Name": "Expedited",
          "Price": {
            "Price": 29,
            "CurrencyCode": "USD",
            "FormattedPrice": "$29.00",
            "CurrencyFormat": "${1}",
            "CurrencyDigits": 2
          },
          "Id": 2,
          "EstBusinessDaysTilDelivery": 4,
          "MethodId": 5
        },
        {
          "CarrierName": "Overnight",
          "MethodType": "Overnight",
          "Name": "Overnight",
          "Price": {
            "Price": 49.22,
            "CurrencyCode": "USD",
            "FormattedPrice": "$49.22",
            "CurrencyFormat": "${1}",
            "CurrencyDigits": 2
          },
          "Id": 3,
          "EstBusinessDaysTilDelivery": 2,
          "MethodId": 7
        }
      ]
    }
  ]
}
chrischen commented 9 years ago

It combines them into one result even if it will result in two tracking numbers later?

micahasmith commented 9 years ago

@chrischen yes