Supported Formats

json

Errors

Code Description
404 Resource Not Found
422 Validation Error
500 Internal Server Error

Examples

curl 'https://app.octopi.co/api/v1/service_orders/ORDER_NUMBER/service_order_items' \
  -X 'POST' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Token token=YOURTOKEN' \
  -d '{
    "service_order_item": {
      "container_id": 4332804,
      "service_id": "reseal"
    }
  }'
{
  "order_number": "API_TEST_003",
  "id": 80,
  "status": "pending",
  "container_id": 4332804,
  "container_number": "BMOU9341910",
  "service_type": "default",
  "service_id": "reseal",
  "service_name": "Reseal (Default)"
}

Params

Param name Description
order_number
required

Octopi ID or the unique service order number given while creating one.

Validations:

  • Must be a String

service_order_item
optional

Validations:

  • Must be a Hash

service_order_item[container_id]
required

Octopi ID of any container or breakbulk.

Validations:

  • Must be a Integer

service_order_item[service_id]
required

default or custom service IDs provided by Octopi.

Validations:

  • Must be a String