Create Return Orders POST

/order/return-orders/
Request Example

Development Endpoint: https://api.int.janio.asia/api/order/return-orders/

Production Endpoint: https://api.janio.asia/api/order/return-orders/

{
  "secret_key": 1,
  "orders": [
    {
      "service_type": "PICKUP",
      "shipper_order_id": "text",
      "consignee_name": "text",
      "consignee_address": "text",
      "consignee_postal": "123455",
      "consignee_country": "Singapore",
      "consignee_city": "Singapore",
      "consignee_state": "Singapore",
      "consignee_number": "+6598765432",
      "consignee_email": "text@email.com",
      "order_length": 1.1,
      "order_width": 1.1,
      "order_height": 1.1,
      "order_weight": 1.1,
      "pickup_contact_name": "Max",
      "pickup_contact_email": "bob@email.bob",
      "pickup_contact_number": "61234567",
      "pickup_country": "Singapore",
      "pickup_state": "Singapore",
      "pickup_city": "Singapore",
      "pickup_postal": "624789",
      "pickup_address": "text",
      "items": [
        {
          "item_desc": "text",
          "item_quantity": 1,
          "item_product_id": "text",
          "item_sku": "text",
          "item_category": "Fashion Accessories",
          "item_price_value": 1.1,
          "item_price_currency": "USD"
        }
      ]
    }
  ]
}
Response Example

Success 201

// Returns array of tracking_no objects
// Contains the "return_tracking_no" as well as the optional "forward_tracking_no" if one was supplied
// Tracking numbers in "tracking_nos" array are ordered in the same order of tracking numbers supplied

{
  "upload_batch_no": "POG201112123238",
  "tracking_nos": [
      {"return_tracking_no": "return123"},
      {"return_tracking_no": "return456", "forward_tracking_no": "forward456"},
      {"return_tracking_no": "return789", "forward_tracking_no": "forward789"},
  ]
}

Failure 400

// Errors are sorted by the index of order submission, for e.g., the 2nd order submitted will always be index 1.

{
    "orders": [
      {
        "fieldname_as_key": [
          "Enter a valid email address."
        ]
      }
    ]
}