Table of Contents

Retailer API Documentation

Endpoints and Request Models

GET /products

Retrieve your full product listing.

Returns:

200 OK — Array of ProductRequest objects

GET /v1/products
Authorization: Bearer {Your Api Key}
Content-Type: application/json

POST /products

Create a new product listing.

The API assigns a new gid for the created product. Any gid you send in the request body is ignored.

Returns:

200 OK — The created product object

POST /v1/products
Authorization: Bearer {Your Api Key}
Content-Type: application/json

{
    "productType": "ammunition",
    "productName": "Federal HST 9mm Luger 124 Grain JHP",
    "description": "High-performance self-defense ammunition designed for reliability and stopping power.",
    "brand": "Federal",
    "price": 29.99,
    "upc": "012345678901",
    "mpn": "P9HST1",
    "sku": "FED-P9HST1",
    "url": "https://example.gunnabber.com/products/federal-hst-9mm",
    "availability": "in stock",
    "shippingInfo": "Ships within 2-3 business days",
    "caliber": "9mm Luger",
    "quantity": 50,
    "purchaseLimit": 5,
    "casing": "brass",
    "condition": "new",
    "grain": 124,
    "shellLength": "",
    "shotSize": "",
    "minimumPurchase": 1,
    "rebate": "",
    "make": "",
    "model": "",
    "firearmType": "",
    "action": "",
    "imageUrl": "https://example.gunnabber.com/images/federal-hst-9mm.jpg",
    "shippingCost": 7.50,
    "shippingCostEstimated": true,
    "weightInPounds": 1.25,
    "lengthInInches": 6.0,
    "widthInInches": 3.5,
    "heightInInches": 2.0
}

GET /products/{id}

Retrieve a specific product by ID.

Returns:

200 OK — The requested product object

404 Not Found — If the product with the specified ID does not exist

GET /v1/products/{id}
Authorization: Bearer {Your Api Key}
Content-Type: application/json

PUT /products/{id}

Update an existing product by ID.

Returns:

200 OK — The updated product object

404 Not Found — If the product with the specified ID does not exist

PUT /v1/products/{id}
Authorization: Bearer {Your Api Key}
Content-Type: application/json

{
    "gid": "548a1b5a-5b1e-4e68-923e-a071711e5fb9",
    "productType": "ammunition",
    "productName": "Federal HST 9mm Luger 124 Grain JHP",
    "description": "High-performance self-defense ammunition designed for reliability and stopping power.",
    "brand": "Federal",
    "price": 29.99,
    "upc": "012345678901",
    "mpn": "P9HST1",
    "sku": "FED-P9HST1",
    "url": "https://example.gunnabber.com/products/federal-hst-9mm",
    "availability": "in stock",
    "shippingInfo": "Ships within 2-3 business days",
    "caliber": "9mm Luger",
    "quantity": 50,
    "purchaseLimit": 5,
    "casing": "brass",
    "condition": "new",
    "grain": 124,
    "shellLength": "",
    "shotSize": "",
    "minimumPurchase": 1,
    "rebate": "",
    "make": "",
    "model": "",
    "firearmType": "",
    "action": "",
    "imageUrl": "https://example.gunnabber.com/images/federal-hst-9mm.jpg",
    "shippingCost": 7.50,
    "shippingCostEstimated": true,
    "weightInPounds": 1.25,
    "lengthInInches": 6.0,
    "widthInInches": 3.5,
    "heightInInches": 2.0
}

DELETE /products/{id}

Delete a specific product by ID.

Returns:

200 OK — If the deletion was successful

404 Not Found — If the product with the specified ID does not exist

DELETE /v1/products/{id}
Authorization: Bearer {Your Api Key}

ProductRequest Model

Request and response bodies for product endpoints use the same product shape. Properties:

"ProductRequest": {
  "type": "object",
  "properties": {
    "gid": { "type": "string", "format": "uuid" },
    "productType": { "type": "string" },
    "productName": { "type": "string" },
    "description": { "type": "string" },
    "brand": { "type": "string" },
    "price": { "type": "number", "format": "decimal" },
    "upc": { "type": "string" },
    "mpn": { "type": "string" },
    "sku": { "type": "string" },
    "url": { "type": "string" },
    "availability": { "type": "string" },
    "shippingInfo": { "type": "string" },
    "caliber": { "type": "string" },
    "quantity": { "type": "integer", "format": "int32" },
    "purchaseLimit": { "type": "integer", "format": "int32" },
    "casing": { "type": "string" },
    "condition": { "type": "string" },
    "grain": { "type": "integer", "format": "int32" },
    "shellLength": { "type": "string" },
    "shotSize": { "type": "string" },
    "minimumPurchase": { "type": "integer", "format": "int32" },
    "rebate": { "type": "string" },
    "make": { "type": "string" },
    "model": { "type": "string" },
    "firearmType": { "type": "string" },
    "action": { "type": "string" },
    "imageUrl": { "type": "string" },
    "shippingCost": { "type": "number", "format": "decimal" },
    "shippingCostEstimated": { "type": "boolean" },
    "weightInPounds": { "type": "number", "format": "decimal" },
    "lengthInInches": { "type": "number", "format": "decimal" },
    "widthInInches": { "type": "number", "format": "decimal" },
    "heightInInches": { "type": "number", "format": "decimal" }
  }
}

Example product for ammunition:

{
    "gid": "548a1b5a-5b1e-4e68-923e-a071711e5fb9",
    "productType": "ammunition",
    "productName": "Federal HST 9mm Luger 124 Grain JHP",
    "description": "High-performance self-defense ammunition designed for reliability and stopping power.",
    "brand": "Federal",
    "price": 29.99,
    "upc": "012345678901",
    "mpn": "P9HST1",
    "sku": "FED-P9HST1",
    "url": "https://example.gunnabber.com/products/federal-hst-9mm",
    "availability": "in stock",
    "shippingInfo": "Ships within 2-3 business days",
    "caliber": "9mm Luger",
    "quantity": 50,
    "purchaseLimit": 5,
    "casing": "brass",
    "condition": "new",
    "grain": 124,
    "shellLength": "",
    "shotSize": "",
    "minimumPurchase": 1,
    "rebate": "",
    "make": "",
    "model": "",
    "firearmType": "",
    "action": "",
    "imageUrl": "https://example.gunnabber.com/images/federal-hst-9mm.jpg",
    "shippingCost": 7.50,
    "shippingCostEstimated": true,
    "weightInPounds": 1.25,
    "lengthInInches": 6.0,
    "widthInInches": 3.5,
    "heightInInches": 2.0
}

Product Parameter Definitions

Parameter Name Type Required Description
gid string Yes for PUT Unique product identifier (UUID). Assigned by the API on create.
productType string Yes Product type. Valid values: ammunition, handgun, rifle, shotgun, part, accessory, optic, gear, brass, primers, bullets, powder, reloading, promotion
productName string Yes Product name. More descriptive is better (e.g. Federal HST 9mm Luger 124 grain 50rd. Box).
description string No Product description
brand string Yes Product brand
price number (decimal) Yes Product price (e.g. 29.99)
upc string No Universal Product Code. Sent and returned as a string to preserve leading zeros (e.g. "012345678901").
mpn string No Manufacturer Part Number
sku string No Stock Keeping Unit
url string Yes Product page URL
availability string Yes Availability. Valid values: in stock, out of stock, backordered
shippingInfo string No Free-text shipping notes
caliber string Yes for ammunition, handgun, rifle, shotgun, brass, bullets Caliber
quantity integer Yes Quantity available
purchaseLimit integer No Purchase limit per order
casing string Yes for ammunition, brass Casing type (e.g. brass, steel)
condition string Yes for ammunition Condition. Ammunition values: new, remanufactured
grain integer Yes for ammunition, bullets Grain weight
shellLength string No for ammunition Shell length when applicable
shotSize string No for ammunition Shot size when applicable
minimumPurchase integer No Minimum purchase quantity
rebate string No Rebate information
make string Yes for handgun, rifle, shotgun Firearm make
model string Yes for handgun, rifle, shotgun Firearm model
firearmType string Yes for handgun, rifle, shotgun Firearm type. Valid values: handgun, rifle, shotgun
action string Yes for handgun, rifle, shotgun Firearm action type
imageUrl string No Product image URL
shippingCost number (decimal) No Shipping cost for the item
shippingCostEstimated boolean No Whether shippingCost is an estimate
weightInPounds number (decimal) No Package weight in pounds
lengthInInches number (decimal) No Package length in inches
widthInInches number (decimal) No Package width in inches
heightInInches number (decimal) No Package height in inches

Deals Endpoints

Deal endpoints require a retailer subscription plan that includes deals (Retailer Standard, Retailer Premium, or Founders).

Test API keys (pk_test_ / ak_test_) operate on isolated test-mode deal data and do not affect live deals.

GET /deals

Retrieve your deal listings.

Returns:

200 OK — Array of Deal objects

GET /v1/deals
Authorization: Bearer {Your Api Key}
Content-Type: application/json

POST /deals

Create a new deal.

Returns:

201 Created — The created Deal object

POST /v1/deals
Authorization: Bearer {Your Api Key}
Content-Type: application/json

{
    "name": "25% Off Federal HST",
    "description": "Limited-time ammunition promotion",
    "destinationUrl": "https://example.gunnabber.com/deals/federal-hst",
    "imageUrl": null,
    "dealStartUtcDateTime": "2026-09-01T00:00:00Z",
    "dealEndUtcDateTime": "2026-09-30T23:59:59Z",
    "dealType": "PercentOff",
    "originalPrice": 39.99,
    "dealPrice": 29.99,
    "discountPercent": 25,
    "discountAmount": 10,
    "couponCode": "HST25",
    "minimumOrderAmount": 0,
    "termsAndConditions": "While supplies last.",
    "productType": "ammunition",
    "brand": "Federal"
}

GET /deals/{id}

Retrieve a specific deal by ID.

Returns:

200 OK — The requested Deal object

404 Not Found — If the deal does not exist

GET /v1/deals/{id}
Authorization: Bearer {Your Api Key}
Content-Type: application/json

PUT /deals/{id}

Update an existing deal by ID.

Returns:

200 OK — The updated Deal object

404 Not Found — If the deal does not exist

PUT /v1/deals/{id}
Authorization: Bearer {Your Api Key}
Content-Type: application/json

{
    "gid": "548a1b5a-5b1e-4e68-923e-a071711e5fb9",
    "name": "25% Off Federal HST",
    "description": "Limited-time ammunition promotion",
    "destinationUrl": "https://example.gunnabber.com/deals/federal-hst",
    "imageUrl": null,
    "dealStartUtcDateTime": "2026-09-01T00:00:00Z",
    "dealEndUtcDateTime": "2026-09-30T23:59:59Z",
    "dealType": "PercentOff",
    "originalPrice": 39.99,
    "dealPrice": 29.99,
    "discountPercent": 25,
    "discountAmount": 10,
    "couponCode": "HST25",
    "minimumOrderAmount": 0,
    "termsAndConditions": "While supplies last.",
    "productType": "ammunition",
    "brand": "Federal"
}

DELETE /deals/{id}

Delete a specific deal by ID.

Returns:

204 No Content — If the deletion was successful

404 Not Found — If the deal does not exist

DELETE /v1/deals/{id}
Authorization: Bearer {Your Api Key}

DealRequest Model

"DealRequest": {
  "type": "object",
  "properties": {
    "gid": { "type": "string", "format": "uuid" },
    "name": { "type": "string" },
    "description": { "type": "string" },
    "destinationUrl": { "type": "string" },
    "imageUrl": { "type": "string", "nullable": true },
    "publishedUtcDateTime": { "type": "string", "format": "date-time", "nullable": true },
    "dealStartUtcDateTime": { "type": "string", "format": "date-time", "nullable": true },
    "dealEndUtcDateTime": { "type": "string", "format": "date-time", "nullable": true },
    "status": { "type": "string", "nullable": true },
    "dealType": { "type": "string", "nullable": true },
    "originalPrice": { "type": "number", "format": "decimal", "nullable": true },
    "dealPrice": { "type": "number", "format": "decimal", "nullable": true },
    "discountPercent": { "type": "number", "format": "decimal", "nullable": true },
    "discountAmount": { "type": "number", "format": "decimal", "nullable": true },
    "couponCode": { "type": "string", "nullable": true },
    "minimumOrderAmount": { "type": "number", "format": "decimal", "nullable": true },
    "termsAndConditions": { "type": "string", "nullable": true },
    "productType": { "type": "string", "nullable": true },
    "brand": { "type": "string", "nullable": true }
  }
}

Deal Parameter Definitions

Parameter Name Type Required Description
gid string Yes for PUT Unique deal identifier (UUID). Assigned by the API on create.
name string Yes Deal name
description string No Deal description
destinationUrl string Yes Destination URL for the deal. Must be a valid URL on your store domain.
imageUrl string No Deal image URL. When provided, must be a valid image URL (png, jpg, jpeg, gif, svg).
publishedUtcDateTime string (date-time) No Published timestamp in UTC. May be set by the API when a deal becomes active.
dealStartUtcDateTime string (date-time) No Deal start time in UTC
dealEndUtcDateTime string (date-time) No Deal end time in UTC
status string No Deal status. The API may set this to Active when the deal window includes the current time.
dealType string No Deal type (e.g. PercentOff, AmountOff, PriceDrop, FreeShipping, Bundle, BOGO)
originalPrice number (decimal) No Original price before discount
dealPrice number (decimal) No Discounted deal price
discountPercent number (decimal) No Percent discount
discountAmount number (decimal) No Fixed discount amount
couponCode string No Coupon code associated with the deal
minimumOrderAmount number (decimal) No Minimum order amount required
termsAndConditions string No Terms and conditions text
productType string No Related product type (e.g. ammunition)
brand string No Related brand