LogoLogo
System Status
2020-01-07
2020-01-07
  • 2020-01-07
  • Charges
  • Checkouts
  • Country specifications
  • Customers
  • Events
  • Fees
  • File links
  • Files
  • Fulfillments
  • Orders
  • Payouts
  • Refunds
  • Returns
  • SKUs
  • Sales summaries
  • Sales transactions
  • Sources
  • Webhooks
Powered by GitBook
On this page

SKUs

PreviousReturnsNextSales summaries

Last updated 6 months ago

The SKUs (stock keeping units) resource serves as a unique identifier for each product variation within an inventory. It is crucial for managing stock, tracking sales, and ensuring efficient inventory control. Each SKU allows businesses to differentiate between products based on traits such as size, color, or model, enabling streamlined operations and improved customer satisfaction.

Gets a SKU by ID

get

Retrieves the details of a SKU. You must supply the unique identifier of the SKU.

Path parameters
idstringRequired

SKU identifier.

Responses
200
OK.
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
404 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
GET /skus/{id} HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
  "createdTime": "2025-05-09T05:18:58.957Z",
  "id": "sku_5823594809",
  "eccn": "EAR99",
  "hsCode": "6404.20",
  "partNumber": "SWG1224J10L",
  "taxCode": "4323.310_A",
  "name": "Athena Womens Running Shoes",
  "description": "Athena Womens Running Shoes",
  "image": "https://imageurl.com",
  "url": "https://producturl.com",
  "countryOfOrigin": "US",
  "weight": 20.5,
  "weightUnit": "oz",
  "liveMode": false,
  "metadata": {
    "coupon": "iOS"
  },
  "updatedTime": "2025-05-09T05:18:58.957Z"
}

Deletes a SKU by ID

delete

Permanently deletes a SKU. Supply the unique identifier of the SKU.

Path parameters
idstringRequired

SKU identifier

Responses
204
204 No Content
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
401 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
409
409 Conflict
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
delete
DELETE /skus/{id} HTTP/1.1
Host: api.digitalriver.com
Accept: */*

No content

  • GETReturns a list of SKUs
  • POSTCreates a SKU
  • GETGets a SKU by ID
  • PUTUpserts a SKU
  • POSTUpdates a SKU
  • DELETEDeletes a SKU by ID

Returns a list of SKUs

get

Get all SKUs.

Query parameters
createdTimestring · date-timeOptional

A filter on the list based on the createdTime field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:

  • gt–return values where the createdTime field is after this timestamp
  • gte–return values where the createdTime field is after or equal to this timestamp
  • lt–return values where the createdTime field is before this timestamp
  • lte–return values where the createdTime field is before or equal to this timestamp
updatedTimestring · date-timeOptional

A filter on the list based on the updatedTime field. The value can be a string with an ISO-8601 UTC format datetime or it can be a dictionary with the following options:

  • gt–return values where the updatedTime field is after this timestamp
  • gte–return values where the updatedTime field is after or equal to this timestamp
  • lt–return values where the updatedTime field is before this timestamp
  • lte–return values where the updatedTime field is before or equal to this timestamp
endingBeforestringOptional

A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list.

startingAfterstringOptional

A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list.

limitinteger · min: 1 · max: 100Optional

A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.

idsstring[]Optional

Only return objects with these IDs.

eccnstringOptional

The Export Control Classification Number (ECCN) associated with the SKUs you want to retrieve.

partNumberstringOptional

The partNumber associated with the SKUs you want to retrieve.

hsCodestringOptional

The hsCode associated with the SKUs you want to retrieve.

taxCodestringOptional

The taxCode associated with the SKUs you want to retrieve.

Responses
200
200 OK
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
GET /skus HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
  "hasMore": true,
  "data": [
    {
      "createdTime": "2025-05-09T05:18:58.957Z",
      "id": "sku_5823594809",
      "eccn": "EAR99",
      "hsCode": "6404.20",
      "partNumber": "SWG1224J10L",
      "taxCode": "4323.310_A",
      "name": "Athena Womens Running Shoes",
      "description": "Athena Womens Running Shoes",
      "image": "https://imageurl.com",
      "url": "https://producturl.com",
      "countryOfOrigin": "US",
      "weight": 20.5,
      "weightUnit": "oz",
      "liveMode": false,
      "metadata": {
        "coupon": "iOS"
      },
      "updatedTime": "2025-05-09T05:18:58.957Z"
    }
  ]
}

Creates a SKU

post

Creates a SKU.

Body
idstringOptional

Unique identifier of a SKU.

Example: 5823594809
eccnstringRequired

Export control classification number.

Example: EAR99
hsCodestringOptional

International & US HS Code & Harmonized Tariff Code.

Example: 6404.20
partNumberstringOptional

Manufacturer part number.

Example: SWG1224J10L
taxCodestringRequired

Sabrix tax code.

Example: 4323.310_A
namestringRequired

The product’s name.

Example: Athena Womens Running Shoes
descriptionstringOptional

A description of the product.

Example: Athena Womens Running Shoes
imagestringOptional

An image of the product.

Example: https://imageurl.com
urlstringOptional

A product url.

Example: https://producturl.com
weightnumber · doubleOptional

The weight of the sku in the unit system specified with weightUnit.

Example: 20.5
weightUnitstring · enumOptional

The unit of measurement that applies to the sku weight. If you do not specify a value for weightUnit, then the default unit of measurement is applied.

Example: ozPossible values:
countryOfOriginstringRequired

2-letter country code.

Example: US
metadataany ofOptional
or
or
Responses
201
201 Created
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
409
409 Conflict
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
post
POST /skus HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 329

{
  "id": "5823594809",
  "eccn": "EAR99",
  "hsCode": "6404.20",
  "partNumber": "SWG1224J10L",
  "taxCode": "4323.310_A",
  "name": "Athena Womens Running Shoes",
  "description": "Athena Womens Running Shoes",
  "image": "https://imageurl.com",
  "url": "https://producturl.com",
  "weight": 20.5,
  "weightUnit": "oz",
  "countryOfOrigin": "US",
  "metadata": {
    "coupon": "iOS"
  }
}
{
  "createdTime": "2025-05-09T05:18:58.957Z",
  "id": "sku_5823594809",
  "eccn": "EAR99",
  "hsCode": "6404.20",
  "partNumber": "SWG1224J10L",
  "taxCode": "4323.310_A",
  "name": "Athena Womens Running Shoes",
  "description": "Athena Womens Running Shoes",
  "image": "https://imageurl.com",
  "url": "https://producturl.com",
  "countryOfOrigin": "US",
  "weight": 20.5,
  "weightUnit": "oz",
  "liveMode": false,
  "metadata": {
    "coupon": "iOS"
  },
  "updatedTime": "2025-05-09T05:18:58.957Z"
}

Upserts a SKU

put

Upserts a SKU.

Path parameters
idstringRequired

SKU identifier.

Body
eccnstringRequired

Export control classification number.

Example: EAR99
hsCodestringOptional

International & US HS Code & Harmonized Tariff Code.

Example: 6404.20
partNumberstringOptional

Manufacturer part number.

Example: SWG1224J10L
taxCodestringRequired

Sabrix tax code.

Example: 4323.310_A
namestringRequired

The product’s name.

Example: Athena Womens Running Shoes
descriptionstringOptional

A description of the product.

Example: Athena Womens Running Shoes
imagestringOptional

An image of the product.

Example: https://imageurl.com
urlstringOptional

A product url.

Example: https://producturl.com
countryOfOriginstringRequired

2-letter country code.

Example: US
weightnumber · doubleOptional

The weight of the sku in the unit system specified with weightUnit.

Example: 20.5
weightUnitstring · enumOptional

The unit of measurement that applies to the sku weight. If you do not specify a value for weightUnit, then the default unit of measurement is applied.

Example: ozPossible values:
metadataany ofOptional
or
or
Responses
200
200 OK
application/json
201
201 Created
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
409
409 Conflict
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
put
PUT /skus/{id} HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 311

{
  "eccn": "EAR99",
  "hsCode": "6404.20",
  "partNumber": "SWG1224J10L",
  "taxCode": "4323.310_A",
  "name": "Athena Womens Running Shoes",
  "description": "Athena Womens Running Shoes",
  "image": "https://imageurl.com",
  "url": "https://producturl.com",
  "countryOfOrigin": "US",
  "weight": 20.5,
  "weightUnit": "oz",
  "metadata": {
    "coupon": "iOS"
  }
}
{
  "createdTime": "2025-05-09T05:18:58.957Z",
  "id": "sku_5823594809",
  "eccn": "EAR99",
  "hsCode": "6404.20",
  "partNumber": "SWG1224J10L",
  "taxCode": "4323.310_A",
  "name": "Athena Womens Running Shoes",
  "description": "Athena Womens Running Shoes",
  "image": "https://imageurl.com",
  "url": "https://producturl.com",
  "countryOfOrigin": "US",
  "weight": 20.5,
  "weightUnit": "oz",
  "liveMode": false,
  "metadata": {
    "coupon": "iOS"
  },
  "updatedTime": "2025-05-09T05:18:58.957Z"
}

Updates a SKU

post

Updates the specified SKU by setting the values of the parameters passed. Any parameters not provided will remain unchanged.

Path parameters
idstringRequired

SKU identifier.

Body
eccnstringOptional

Export control classification number.

Example: EAR99
hsCodestringOptional

International & US HS Code & Harmonized Tariff Code.

Example: 6404.20
partNumberstringOptional

Manufacturer part number.

Example: SWG1224J10L
taxCodestringOptional

Sabrix tax code.

Example: 4323.310_A
namestringOptional

The product’s name.

Example: Athena Womens Running Shoes
descriptionstringOptional

A description of the product.

Example: Athena Womens Running Shoes
imagestringOptional

An image of the product.

Example: https://imageurl.com
urlstringOptional

A product url.

Example: https://producturl.com
countryOfOriginstringOptional

2-letter country code.

Example: US
weightnumber · doubleOptional

The weight of the sku in the unit system specified with weightUnit.

Example: 20.5
weightUnitstring · enumOptional

The unit of measurement that applies to the sku weight. If you do not specify a value for weightUnit, then the default unit of measurement is applied.

Example: ozPossible values:
metadataany ofOptional
or
or
Responses
200
200 OK
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
401 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
409
409 Conflict
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
post
POST /skus/{id} HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 311

{
  "eccn": "EAR99",
  "hsCode": "6404.20",
  "partNumber": "SWG1224J10L",
  "taxCode": "4323.310_A",
  "name": "Athena Womens Running Shoes",
  "description": "Athena Womens Running Shoes",
  "image": "https://imageurl.com",
  "url": "https://producturl.com",
  "countryOfOrigin": "US",
  "weight": 20.5,
  "weightUnit": "oz",
  "metadata": {
    "coupon": "iOS"
  }
}
{
  "createdTime": "2025-05-09T05:18:58.957Z",
  "id": "sku_5823594809",
  "eccn": "EAR99",
  "hsCode": "6404.20",
  "partNumber": "SWG1224J10L",
  "taxCode": "4323.310_A",
  "name": "Athena Womens Running Shoes",
  "description": "Athena Womens Running Shoes",
  "image": "https://imageurl.com",
  "url": "https://producturl.com",
  "countryOfOrigin": "US",
  "weight": 20.5,
  "weightUnit": "oz",
  "liveMode": false,
  "metadata": {
    "coupon": "iOS"
  },
  "updatedTime": "2025-05-09T05:18:58.957Z"
}