Awkward Styles Print on Demand and Fulfilment API


Awkward Styles, based in Los Angeles, California, is a print on demand dropshipping company helping others to create their style in clothing and home decor since 2014. Working with the industry's best printing solution providers, we offer all printing techniques. We will be happy to assist you during Onboarding process.


Requirements


  • - Requests should be made using JSON form data.
  • - The Content-type header should be set accordingly to Content-type: application/json.
  • - You may access the API over either HTTP or HTTPS, but HTTPS is recommended where possible.


Authentication


Awkward Styles uses HTTP basic authentication for the API requests.

Your username Will be provided by Technical Support Team
Your password Will be provided by Technical Support Team

Order


The orders API allows you to create, view, update, and delete individual, or a batch, of orders.


Create


Create an order

HTTP request

POST    https://vendors.awkwardstyles.com/api/v2019-06/orders.json


Request example

{
  "id": "{order_id}",
  "address_to": {
    "address1": "4415 Bingamon Road",
    "address2": "",
    "city": "Cleveland",
    "zip": "44115",
    "country": "US",
    "region": "OH",
    "first_name": "Marina",
    "last_name": "Mauro",
    "email": "ly8g09d95mq@temporary-mail.net",
    "phone": "440-520-6265"
  },
  "address_from": {
    "address1": "4415 Bingamon Road",
    "address2": "",
    "city": "Cleveland",
    "zip": "44115",
    "country": "US",
    "region": "OH",
    "company": "Mauro T-Shirt Company",
    "email": "ly8g09d95mq@temporary-mail.net",
    "phone": "440-520-6265"
  },
  "shipping": {
    "carrier": "USPS",
    "service": "Express"
  },
  "items": [
    {
      "id": "{item-id}",
      "sku": "5001-BLACK-L",
      "preview_files": {
        "front": "",
        "back": ""
      },
      "print_files": {
        "front": "",
        "back": ""
      },
      "quantity": 1
    }
  ]
}

Response example

Successful response

{
  "status": "success"
  "id" : "{order_id}",
  "reference_id" : "{Awkward Styles system Order ID}"
}


Failed response

{
  "status": "failed",
  "errors" : [
    {
      "message": "Route or resource is not found. This error is returned when the request hits an undefined route, or if the resource doesn't exist (e.g. has been deleted).",
      "code": 404
    }
  ]
}


Get


Get the order

HTTP request

GET    https://vendors.awkwardstyles.com/api/v2019-06/orders/{order_id}.json


Response example

{
    "id": "{order_id}",
    "status": "created"
    "address_to": {
        "address1": "4415 Bingamon Road",
        "address2": "",
        "city": "Cleveland",
        "zip": "44115",
        "country": "US",
        "region": "OH",
        "first_name": "Marina",
        "last_name": "Mauro",
        "email": "ly8g09d95mq@temporary-mail.net",
        "phone": "440-520-6265"
    },
    "address_from": {
        "address1": "4415 Bingamon Road",
        "address2": "",
        "city": "Cleveland",
        "zip": "44115",
        "country": "US",
        "region": "OH",
        "company": "Mauro T-Shirt Company",
        "email": "ly8g09d95mq@temporary-mail.net",
        "phone": "440-520-6265"
    },
    "shipping": {
        "carrier": "USPS",
        "service": "Express",
        "tracking_number": "",
        "tracking_url": "",
    },
    "items": [
        {
            "id": "{item-id}",
            "sku": "5000-BLACK-L",
            "preview_files": {
                "front": "",
                "back": ""
            },
            "print_files": {
                "front": "",
                "back": ""
            },
            "quantity": 1
        }
    ]
}


Failed response

{
  "status": "failed"
}


Properties


General properties
id string REQUIRED* Order ID.
reference_id string REQUIRED* A unique string identifier for the Order in Awkward Styles system.
status string AVAILABLE ON GET REQUEST Current Status of the Order.

Address to properties
address1 string REQUIRED* First line of recipient address.
address2 string REQUIRED* Second line of recipient address.
city string REQUIRED* Town/City of recipient address.
zip string REQUIRED* Postal/Zipcode of recipient address.
country string REQUIRED* Two-letter country code of the recipient.
region string OPTIONAL Region of recipient address.
first_name string REQUIRED* Recipient First Name.
last_name string REQUIRED* Recipient Last Name.
email string OPTIONAL Recipient Email.
phone string OPTIONAL Recipient's Phone Number.

Address from properties
address1 string REQUIRED* First line of seller address.
address2 string REQUIRED* Second line of seller address.
city string REQUIRED* Town/City of seller address.
zip string REQUIRED* Postal/Zipcode of seller address.
country string REQUIRED* Two-letter country code of the seller.
region string OPTIONAL Region of seller address.
company string REQUIRED* Seller company name.
email string OPTIONAL Seller Email.
phone string OPTIONAL Seller Phone Number.

Shipping properties
carrier string REQUIRED* Shipping Carrier.
service string REQUIRED* Shipping Service.
tracking_number string AVAILABLE ON GET REQUEST
tracking_url string AVAILABLE ON GET REQUEST

Items properties
id string REQUIRED* Item id.
sku string REQUIRED* Item sku.
preview_files array REQUIRED* List of preview image links.
print_files array REQUIRED* List of print image links.
quantity int REQUIRED* Item quantity.

HTTP Codes


Standard HTTP response codes

200 OK Request completed successfully.
304 Not modified The request has already been received.
400 Bad Request The request encoding is invalid; the request can't be parsed as valid JSON.
404 Not Found Route or resource is not found. This error is returned when the request hits an undefined route, or if the resource doesn't exist (e.g. has been deleted).
422 Invalid Request The request data is invalid. This includes most of the base-specific validations. You will receive a detailed error message and code pointing to the exact issue.