Welcome to the SexToy Wholesale Order Management API. This API provides a secure and efficient way for our partners to automate order processing, including creating and managing orders. Our API is designed to streamline operations for bulk purchasing, making it easier for you to integrate our platform directly into your internal systems.
All API requests require the use of an API key for authentication. The API key should be included in the request header as
X-API-KEY: <Your-API-Key>Your unique API key will be provided by our support team.
All API requests should be made to the base URL:
https://api.cnv.com
Please ensure that you use this base URL for all your requests to the SexToy Wholesale Order Management API.
Creates a new order with detailed shipping information, line items, and more.
POST https://api.cnv.com/orders
{
"order": {
"shippingAddress": {
"firstName": "John",
"lastName": "Doe",
"companyName" : "ACE Auto",
"address1": "123 Main St",
"address2": "Apt 4B",
"city": "Anytown",
"province": "Texas",
"country": "US",
"zip": "12345",
"phoneNumber": "555-888-3232"
},
"lineItems": [
{
"upc": "685634102308",
"quantity": 1
}
],
"shippingMethod": "Standard",
"internalReferenceNumber": "5333444333334"
}
}
{
"status": "success",
"message": "Order created successfully",
"data": {
"order_id": "67890",
"status": "created",
"created_at": "2024-03-06T12:00:00Z",
"shippingAddress": {
"firstName": "John",
"lastName": "Doe",
"companyName" : "ACE Auto",
"address1": "123 Main St",
"address2": "Apt 4B",
"city": "Anytown",
"province": "Texas",
"country": "US",
"zip": "12345",
"phoneNumber": "555-888-3232"
},
"lineItems": [
{
"upc": "685634102308",
"quantity": 1
}
],
"shippingMethod": "Standard",
"internalReferenceNumber": "5333444333334"
}
}
Deletes an existing order by its unique order Reference Number that you provided when creating the order.
DELETE https://api.cnv.com/orders/{your_reference_number}
curl -X DELETE "https://api.cnv.com/orders/67890" \
-H "X-API-KEY: <Your-API-Key>"
{
"message": "Order deleted successfully."
}
The Order Status endpoint provides detailed information about an order, including its current status, shipment details, the tracking company responsible for the shipment.
GET /orders/status/{your-reference-number}
curl -X GET "https://api.cnv.com//orders/status/67890" \
-H "X-API-KEY: <Your-API-Key>"
{
"status": "shipped",
"customer_reference_number": "123456789",
"submitted_timestamp": "2024-01-01T12:00:00Z",
"shipment_details": [
{
"tracking_number": "TRACK123456",
"tracking_company": "FastShip Co.",
"shipped_items": [
{
"sku": "PROD001",
"quantity": 2
},
{
"sku": "PROD002",
"quantity": 1
}
]
}
]
}
The tracking_company
field specifies the company responsible for the shipment. This field may be null if not available at the request time.
When accessing undefined routes, the API returns a standardized JSON error response:
{
"status": 404,
"error": true,
"message": "The resource you are looking for could not be found."
}
For additional support or inquiries, please reach out to wholesale@sextoy.com.
When submitting orders through the API, specify a shipping method based on the destination. Below are the shipping methods for both USA and International destinations, along with their respective pricing.
Shipping Method | Price (USD) |
---|---|
4-8 Business Days | $11.64 |
3-5 Business Days | $17.64 |
2 Business Days | $39.64 |
Shipping Method | Price (USD) |
---|---|
4-8 Business Days | $14.64 |
3-5 Business Days | $20.64 |
2 Business Days | $55.64 |
Shipping Method | Price (USD) |
---|---|
6-20 Business Days | $45.99 |
Orders submitted via this API are not automatically processed and shipped upon submission. Completion of payment is required before any order is finalized and dispatched to customers. To facilitate payment for orders placed through the API, please follow these steps:
This process ensures that all orders are correctly finalized according to your specifications and payment preferences.
For additional support or inquiries, please reach out to wholesale@sextoy.com.