The Drop Shipping API enables customers to fulfill orders for available units and lots that are in stock in the Optoro RMS.
Drop Ship (6.0)
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://developer.optoro.com/_mock/openapi/drop_ship/openapi
Production
https://drop-ship.optiturn.com
Sandbox
https://drop-ship.sandbox.optiturn.com
- Mock serverhttps://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders
- Productionhttps://drop-ship.optiturn.com/orders
- Sandboxhttps://drop-ship.sandbox.optiturn.com/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders?updated_at=2023-01-01T17%3A27%3A46&channel=rts_drop_ship&status=accepted&page=1' \
-H 'api-version: 6'Response
application/json
{ "orders": [ { … } ] }
- Mock serverhttps://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders
- Productionhttps://drop-ship.optiturn.com/orders
- Sandboxhttps://drop-ship.sandbox.optiturn.com/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders \
-H 'Content-Type: application/json' \
-H 'api-version: 6' \
-d '{
"order": {
"client_identifier": "3fda4c37-6830-469f-b343-9d1a482a97fd",
"channel": "rts_drop_ship",
"billing_address": {
"name": "Lacy Macejkovic",
"company": "Bayer-Abernathy",
"telephone_number": "252-948-6723 12345",
"street": "315 5th Ave",
"street2": "Suite 2112",
"city": "New York",
"state": "NY",
"zip_code": "10016",
"country": "US"
},
"shipping_address": {
"name": "Lacy Macejkovic",
"company": "Bayer-Abernathy",
"telephone_number": "252-948-6723 12345",
"street": "315 5th Ave",
"street2": "Suite 2112",
"city": "New York",
"state": "NY",
"zip_code": "10016",
"country": "US",
"loading_dock": true
},
"brand": "acme",
"shipping_method": "STANDARD",
"price_cents": 10000,
"processing_fee_cents": 0,
"tax_cents": 1000,
"shipping_cost_cents": 500,
"shipping_tax_cents": 0,
"comments": "Gift wrap required",
"expected_delivery_date": "2019-08-24",
"signature_required": true,
"packing_slip_identifier": "1497064",
"order_items": [
{
"client_identifier": "296f0b98-7bc5-4750-8cb9-2e36db1ff766",
"sku": "PTBQ121308",
"brand": "acme",
"condition": "N",
"quantity": 1,
"price_cents": 10000,
"tax_cents": 1000,
"shipping_cost_cents": 500,
"shipping_tax_cents": 0,
"comments": ""
}
]
}
}'Order rejected response
Optoro response will be 200 code with message “rejected” if the order was rejected for some reason.
Example: "rejected"
This is an example of the response for insufficient inventory. Only available in Version 5+.
Example: "Insufficient inventory to fill order"
Response
application/json
- no_availablity
- pending_payment
- invalid_shipping_address
{ "message": "rejected", "reason": "Insufficient Quantity for: <order item #1 client_identifier> - <order item #1 sku>(condition), <order item #2 client_identifier> - <order item #2 sku> (condition)", "order": { "client_identifier": "3573390128", "order_items": [ … ] } }
- Mock serverhttps://developer.optoro.com/_mock/openapi/drop_ship/openapi/batch/orders
- Productionhttps://drop-ship.optiturn.com/batch/orders
- Sandboxhttps://drop-ship.sandbox.optiturn.com/batch/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.optoro.com/_mock/openapi/drop_ship/openapi/batch/orders \
-H 'Content-Type: application/json' \
-H 'api-version: 6' \
-d '{
"orders": [
{
"client_identifier": "3fda4c37-6830-469f-b343-9d1a482a97fd",
"channel": "rts_drop_ship",
"billing_address": {
"name": "Lacy Macejkovic",
"company": "Bayer-Abernathy",
"telephone_number": "252-948-6723 12345",
"street": "315 5th Ave",
"street2": "Suite 2112",
"city": "New York",
"state": "NY",
"zip_code": "10016",
"country": "US"
},
"shipping_address": {
"name": "Lacy Macejkovic",
"company": "Bayer-Abernathy",
"telephone_number": "252-948-6723 12345",
"street": "315 5th Ave",
"street2": "Suite 2112",
"city": "New York",
"state": "NY",
"zip_code": "10016",
"country": "US",
"loading_dock": true
},
"brand": "acme",
"shipping_method": "STANDARD",
"price_cents": 10000,
"processing_fee_cents": 0,
"tax_cents": 1000,
"shipping_cost_cents": 500,
"shipping_tax_cents": 0,
"comments": "Gift wrap required",
"expected_delivery_date": "2019-08-24",
"signature_required": true,
"packing_slip_identifier": "1497064",
"order_items": [
{
"client_identifier": "296f0b98-7bc5-4750-8cb9-2e36db1ff766",
"sku": "PTBQ121308",
"brand": "acme",
"condition": "N",
"quantity": 1,
"price_cents": 10000,
"tax_cents": 1000,
"shipping_cost_cents": 500,
"shipping_tax_cents": 0,
"comments": ""
}
]
}
]
}'Response
application/json
- ordersCreated
- ordersalreadyExists
- fieldMissing
- multipefieldsMissing
[ { "client_identifier": "3fda4c37-6830-469f-b343-9d1a482a97fd", "status": "created", "message": null } ]
- Mock serverhttps://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders/{id}
- Productionhttps://drop-ship.optiturn.com/orders/{id}
- Sandboxhttps://drop-ship.sandbox.optiturn.com/orders/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders/3573390128 \
-H 'api-version: 6'Response
application/json
{ "order": { "id": 1, "client_identifier": "3fda4c37-6830-469f-b343-9d1a482a97fd", "billing_address": { … }, "shipping_address": { … }, "brand": "acme", "shipping_method": "STANDARD", "status": "accepted", "price_cents": 10000, "processing_fee_cents": 0, "tax_cents": 1000, "shipping_cost_cents": 500, "shipping_tax_cents": 0, "comments": "Sample order instructions", "expected_delivery_date": "2019-08-24", "signature_required": true, "packing_slip_identifier": "1497064", "reject_reason": "", "order_items": [ … ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }
- Mock serverhttps://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders/{id}
- Productionhttps://drop-ship.optiturn.com/orders/{id}
- Sandboxhttps://drop-ship.sandbox.optiturn.com/orders/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders/3573390128 \
-H 'Content-Type: application/json' \
-H 'api-version: 6' \
-d '{
"order": {
"payment_status": "complete"
}
}'- Mock serverhttps://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders/{id}
- Productionhttps://drop-ship.optiturn.com/orders/{id}
- Sandboxhttps://drop-ship.sandbox.optiturn.com/orders/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://developer.optoro.com/_mock/openapi/drop_ship/openapi/orders/3573390128 \
-H 'api-version: 6'