Duoplane API
  1. Products
Duoplane API
  • Duoplane API overview
    • Access and authentication
    • Request and response basics
    • Rate limiting
  • API reference
    • Order management
      • Orders
        • The Order object
        • Create an order
        • Get an order
    • Product and inventory management
      • Products
        • The Product object
        • Create a product
          POST
        • Get a single product
          GET
      • Product Inventories
        • The ProductInventory object
  1. Products

Create a product

Developing
POST
https://app.duoplane.com/api/products

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json

Example
{
    "upc": "string",
    "mpn": "string",
    "other_barcode": "string",
    "name": "string",
    "retailer_sku": "string",
    "product_inventories": [
        {
            "vendor_id": 0,
            "vendor_name": "string",
            "vendor_sku": "string",
            "purchase_name": "string",
            "cost": 0,
            "manage_inventory": false,
            "quantity_available": 0,
            "backordered_until": "2019-08-24"
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.duoplane.com/api/products' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "upc": "string",
    "mpn": "string",
    "other_barcode": "string",
    "name": "string",
    "retailer_sku": "string",
    "product_inventories": [
        {
            "vendor_id": 0,
            "vendor_name": "string",
            "vendor_sku": "string",
            "purchase_name": "string",
            "cost": 0,
            "manage_inventory": false,
            "quantity_available": 0,
            "backordered_until": "2019-08-24"
        }
    ]
}'

Responses

🟢201Created
application/json
Body

Example
{
    "metadata": {
        "requests_remaining": 0,
        "retry_after_seconds": 0,
        "total_count": "string"
    },
    "data": {
        "id": "string",
        "type": "product",
        "attributes": {
            "created_at": "2019-08-24T14:15:22Z",
            "updated_at": "2019-08-24T14:15:22Z",
            "upc": "string",
            "mpn": "string",
            "other_barcode": "string",
            "name": "string",
            "retailer_sku": "string"
        },
        "relationships": [
            {
                "product_inventories": [
                    {
                        "id": 0,
                        "type": "product_inventory",
                        "attributes": {
                            "product_id": 0,
                            "vendor_id": 0,
                            "vendor_name": "string",
                            "vendor_sku": "string",
                            "purchase_name": "string",
                            "cost": 0,
                            "manage_inventory": false,
                            "quantity_available": 0,
                            "backordered_until": "2019-08-24"
                        }
                    }
                ]
            }
        ]
    },
    "errors": [
        "string"
    ]
}
Modified at 2024-10-02 15:42:54
Previous
The Product object
Next
Get a single product
Built with