API Help

Introduction

GunsAmerica selling APIs enable dealers to manage their sales by using simple REST API. Back in 2016 we introduced Bulk Upload Inventory, where inventory is managed by uploading/downloaing excel file containing the entire inventory. The new GunsAmerica APIs infrastructure, provides major advancement over traditional Bulk Upload. With our new APIs dealers are able to incorporate their sales and listings from GunsAmerica into their system or their web site.

Overview

GunsAmerica selling APIs are built on latest RESTfull and JSON technologies and are secured with OAuth 2.0 protocol.

We are using seller stock number based inventory management, which allows you to manage multiple listings by your SKU rather than by the listing IDs.

Currently there are 3 selling APIs:

The Base URL for all api calls is: https://functions-prod.gunsamerica.com/

Inventory API

The inventory API allows sellers to manage their inventory on GunsAmerica web site. It allows user to post and update items to GunsAmerica web site or to the Seller Store (if there is one). Items are managed by the seller stock number instead of listing id.

Restrictions:

Single seller stock number can only be listed once on GunsAmerica and once on seller store.
In case when the item with the same seller stock number is already listed manually by seller that item cannot be created/posted by the Inventory API.
If the item that is posted by API is edited on GunsAmerica, or seller store web site, that item becomes a manual item and cannot be updated by the Invetory API anymore.

Items – Listings API

The items API allows sellers to view their listings on GunsAmerica and seller store, regardless of if the items are managed/created by Inventory API or using GunsAmerica web site. Items are not grouped by the seller stock number.

Orders API

This API enables sellers to monitor their orders on GunsAmerica and seller store.

Authentication

All GunsAmerica API use OAuth 2.0 protocol for application authentication and user authorization. To access our API, you will first need to obtain an access token from GunsAmerica access token service by providing your Client ID and Client secret.

All requests made to GunsAmerica REST operations require the authorization HTTP header for authentication

To obtain Client Id and Client secret you must sign up for GA API.

Obtaining OAuth access token

The request requires the following values:

  • ClientID – your client id (provided to you when you sign up for the service).
  • ClientSecret – Base64-encoded string (provided to you when you sign up for the service).
  • OAuth scope(s) – required for access to the REST interfaces.

Access token Request example:

HTTP method: POST
URL: https://functions-prod.gunsamerica.com/api/identity/connect/token

HTTP headers:

content-type: application/x-www-form-urlencoded

Request body

grant_type:”client_credentials”
scope:”InventoryServiceAPI”
client_id:”TestSeller”
client_secret:”XXXXX-XXX-XXXX-XXXX-XXXXXXX”

Response Body

access_token:”5404d41b24a788u9khknhd0eac9360092″
expires_in:3600
token_type:”Bearer”

Error Codes

Rate limit

FAQ

Inventory API Reference

GET Inventory
{{url}}/api/inventory

Returns uploaded inventory on GunsAmerica associated with dealer account.

HEADERS

The authorization header is the only required HTTP header for this call.

HeaderData TypeDescription
Content-Typeapplication/jsonThe format and encoding of the request message.
AuthorizationOAuth 2.0 access tokenOAuth 2.0 protocol used for application authentication and user authorization.
RESPONSE
FieldTypeDescription
AddToGAbooleanIs item posted to GA Listings
AddToLSFbooleanIs item posted to Live Store Front.
BuyNowPricedecimalBuy it now price for auction listing.
CaliberstringThe caliber that item uses Required if firearm
CategoryIDintGunsAmerica category Id.
CategoryNamestringGunsAmerica category name.
ConditionintItem Condition:
2 – NIB
3 – Never fired
4 – Used, As New
5 – Used, Minor Wear
6 – Used – See Item Description
CountOfDropsintCount of quantity reduced.
DeletedOndatetimeWhen item was deleted.
DescriptionStringItem description.
ErrorstringList of errors if any.
FixedPricedecimalItem price.
InspectionPeriodintReturn policy.
1 – AS IS – No refund or exchange.
4 – Three Days from the date the item is received.
6 – Five Days from the date the item is received.
8 – Seven Days from the date the item is received.
10 – Fourteen Days from the date the item is received.
12 – 30 day money back guarantee.
14 – Factory Warranty.
ItemIDintInventory item id.
ListingIdintListing Id.
ListingStatusstringLast listing status.

  • CREATED
  • DROP – listing has been deleted.
  • MANUAL – You have a listing with the same seller stock number as manual listing on GunsAmerica.
  • UPDATED
ListingUrlstringURL of listing on GunsAmerica.
ListingDurationintNumber of days before listings ends.
ManufacturerstringName of manufacturer Required
MfgPartNumberstringManufacturer.
ModelstringName of model Required if firearm
ModifiedOndatetimeModified date time.
PictureURLsstringComma delimited image URLs.
QuantityintQuantity
ReserverPricedecimalReserve price if item is an auction.
SerialNumberstringSeller stock number.
ShippingCoststringShipping cost.
ShippingTextstringShipping text.
SKUstringItem SKU.
StoreListingIdintStore listing id.
StoreListingStatusstringLast listing status.

  • CREATED
  • DROP – listing has been deleted.
  • MANUAL – You have a listing with the same seller stock number as manual listing on GunsAmerica.
  • UPDATED
StoreListingUrlstringListing URL on your store.
TitlestringItem title.
UPCstringItem UPC.
WeightdecimalItem weight.
WeightUnitint
  • 1 – Pounds
  • 2 – Kilograms

GET Inventory Item
{{url}}/api/inventory/{your seller stock number}

Returns an item that matches your seller stock number.

HEADERS

The authorization header is the only required HTTP header for this call.

HeaderData TypeDescription
Content-Typeapplication/jsonThe format and encoding of the request message.
AuthorizationOAuth 2.0 access tokenOAuth 2.0 protocol used for application authentication and user authorization.
INPUT – URI parameters
ParameterData TypeDescription
idstringSeller stock number.
Required
RESPONSE
FieldData TypeDescription
AddToGAbooleanIs item posted to GA Listings
AddToLSFbooleanIs item posted to Live Store Front.
BuyNowPricedecimalBuy it now price for auction listing.
CaliberstringThe caliber that item uses Required if firearm
CategoryIDintGunsAmerica category Id.
CategoryNamestringGunsAmerica category name.
ConditionintItem Condition:
2 – NIB
3 – Never fired
4 – Used, As New
5 – Used, Minor Wear
6 – Used – See Item Description
CountOfDropsintCount of quantity reduced.
DeletedOndatetimeWhen item was deleted.
DescriptionStringItem description.
ErrorstringList of errors if any.
FixedPricedecimalItem price.
InspectionPeriodintReturn policy.
1 – AS IS – No refund or exchange.
4 – Three Days from the date the item is received.
6 – Five Days from the date the item is received.
8 – Seven Days from the date the item is received.
10 – Fourteen Days from the date the item is received.
12 – 30 day money back guarantee.
14 – Factory Warranty.
ItemIDintInventory item id.
ListingIdintListing Id.
ListingStatusstringLast listing status.

  • CREATED
  • DROP – listing has been deleted.
  • MANUAL – You have a listing with the same seller stock number as manual listing on GunsAmerica.
  • UPDATED
ListingUrlstringURL of listing on GunsAmerica.
ListingDurationintNumber of days before listings ends.
ManufacturerstringName of manufacturer Required
MfgPartNumberstringManufacturer.
ModelstringName of model Required if firearm
ModifiedOndatetimeModified date time.
PictureURLsstringComma delimited image URLs.
QuantityintQuantity
ReserverPricedecimalReserve price if item is an auction.
SerialNumberstringSeller stock number.
ShippingCoststringShipping cost.
ShippingTextstringShipping text.
SKUstringItem SKU.
StoreListingIdintStore listing id.
StoreListingStatusstringLast listing status.

  • CREATED
  • DROP – listing has been deleted.
  • MANUAL – You have a listing with the same seller stock number as manual listing on GunsAmerica.
  • UPDATED
StoreListingUrlstringListing URL on your store.
TitlestringItem title.
UPCstringItem UPC.
WeightdecimalItem weight.
WeightUnitint
  • 1 – Pounds
  • 2 – Kilograms
RESPONSE CODES

This call returns one of the following HTTP status codes:

StatusDescription
200OK
400Bad Request
404Not Found
500Internal Server Error

POST Inventory Item
{{url}}/api/inventory/

This API enables you to create (post listing) or update inventory item.

Important notes/rules:

If the same seller stock number is listed manually the item will not be created.

If you edit a listing on GunsAmerica that is created by API or bulk upload, that listing cannot be updated anymore by API/Bulk upload.

If the item is listed on both GunsAmerica and Store both items will be updated.

If the item has already been posted to your inventory an UPDATE will be performed. In this case the fields that are not sent and not required will not be updated. For example if you only send required fields and Item Title, only the Title (plus required fields) will be updated. Other fields will be ignored.

When item is updated, if the quantity is 0, listing on GunsAmerica and listing on your store will be dropped and inactive.

Category ID must be a valid GunsAmerica category. If your listings contain UPCs, this field is optional as we will assign the proper category based on the UPC.

HEADERS
HeaderData TypeDescription
Content-Typeapplication/jsonThe format and encoding of the request message.
AuthorizationOAuth 2.0 access tokenOAuth 2.0 protocol used for application authentication and user authorization.
INPUT – JSON
FieldData TypeDescription
AddToGAbooleanList item on GA Listings
AddToLSFbooleanList item on Live Store Front
BuyNowPricedecimalBuy it now price for auction listing.
CaliberstringThe caliber that item uses Required if firearm
CategoryIDintValid GunsAmerica Category ID.
Required if UPC is not provided for item.
ConditionintItem Condition:

  • 2 – NIB
  • 3 – Never fired
  • 4 – Used, As New
  • 5 – Used, Minor Wear
  • 6 – Used – See Item Description

Required.

DescriptionStringItem description. Non ASCII characters will be removed. If length is > 5000, the rest is truncated.
FixedPricedecimalItem price.
Required.
InspectionPeriodintReturn policy.
1 – AS IS – No refund or exchange
4 – Three Days from the date the item is received
6 – Five Days from the date the item is received
8 – Seven Days from the date the item is received
10 – Fourteen Days from the date the item is received
12 – 30 day money back guarantee
14 – Factory Warranty
ListingDurationintNumber of days before listings ends.
ManufacturerstringName of manufacturer Required
MfgPartNumberstringManufacturer.
ModelstringName of model Required if firearm
PictureURLsstringComma delimited image URLs.
QuantityintQuantity
Required.
ReserverPricedecimalReserve price if item is an auction.
SerialNumberstringSeller stock number.
Required.
ShippingCoststringShipping cost.
ShippingTextstringShipping text. Non ASCII characters will be removed. Maximum 500 characters.
SKUstringItem SKU.
Required.
TitlestringItem title
Required.
UPCstringItem UPC. Max length is 500 characters.
Required.
WarningstringWarning messages. For example if you have item in store and GunsAmerica, and one of the items cannot be updated or created you will receive warning message.
WeightdecimalItem weight.
WeightUnitint
  • 1 – Pounds
  • 2 – Kilograms
RESPONSE CODES

This call returns one of the following HTTP status codes:

StatusDescription
200OK
201Created
400Bad Request
404Not Found
500Internal Server Error

This call will return created or updated inventory item. The item will have a separate status for GA listing and status for Store listing.

Status can be:

  • CREATED
  • UPDATED
  • MANUAL
  • DROP
  • NO CHANGE

The returned item will also have a list of error messages if any.

POST ITEM Request example:

var settings = {
"async": true,
"crossDomain": true,
"url": "http://{{url}}/api/inventory/",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"processData": false,
"data": "{
"CategoryID": 894,
"Condition": 2,
"Description": "For sale is a Glock 19 gen 5 chambered in 9mm!",
"FixedPrice" : "600",
"MfgPartNumber" : "glock",
"SerialNumber" : "135686-mro997",
"UPC" : "723175704183",
"SKU" : "JRC10G3-TB/BL",
"ShippingCost": 19.99,
"ShippingText":"not expensive shipping...
only $19.99",
"Title":"Glock 19 gen 5 w/ 3 mags and add ons!",
"Quantity":5,
"ShippingCost":30,
"AddToGA":"true",
"AddToLSF":"true"
}"
}

$.ajax(settings).done(function (response) {
console.log(response);
});

POST ITEM response example:

{
"ItemID": 246266,
"ListingId": 933227534,
"ListingStatus": "CREATED",
"ListingUrl": "https://www.gunsamerica.com/933227534/Glock-19-gen-5-w-3-mags-and-add-on.htm",
"StoreListingId": 733801442,
"StoreListingStatus": "CREATED",
"StoreListingUrl": "https://www.gunsamerica.com/733801442/Inventory/Guns/Rifles/IJ-Misc-Rifles/Glock-19-gen-5-w-3-mags-and-add-on.htm",
"Message": null,
"ModifiedOn": "2017-12-29T01:24:31.567",
"DeletedOn": null,
"Error": [],
"Warning": [],
"AddToGA": true,
"AddToLSF": true,
"BuyNowPrice": null,
"CategoryID": 894,
"CategoryName": null,
"Condition": 2,
"ConditionDescription": "NIB",
"CountOfDrops": 0,
"Description": "For sale is a Glock 19 gen 5 chambered in 9mm!",
"FixedPrice": 600,
"InspectionPeriod": 14,
"MfgPartNumber": "glock",
"ListingDuration": null,
"PictureURLs": null,
"Quantity": 5,
"ReserverPrice": null,
"SerialNumber": "135686-mro997",
"ShippingCost": 19.99,
"ShippingText": "not very expensive shipping... <br>only $19.99",
"SKU": "JRC10G3-TB/BL",
"Title": "Glock 19 gen 5 w/ 3 mags and add ons!",
"UPC": "723175704183",
"Weight": 0,
"WeightUnit": 0
}

DELETE Inventory Item
{{url}}/api/inventory/{your seller stock number}

This will mark your uploaded item as deleted. Listings with same seller stock number that are not manually listed will become inactive.

HEADERS
HeaderData TypeDescription
Content-Typeapplication/jsonThe format and encoding of the request message.
AuthorizationOAuth 2.0 access tokenOAuth 2.0 protocol used for application authentication and user authorization.
INPUT – URI parameters
ParameterData TypeDescription
idstringSeller stock number.
Required
RESPONSE

This call returns one of the following HTTP status codes:

StatusDescription
200OK
400Bad Request
404Not Found
500Internal Server Error

Items API Reference

Listings on GunsAmerica and dealer store.

GET Items
{{url}}/api/items

Returns your items listed on GunsAmerica.

HEADERS
HeaderData TypeDescription
Content-Typeapplication/jsonThe format and encoding of the request message.
AuthorizationOAuth 2.0 access tokenOAuth 2.0 protocol used for application authentication and user authorization.
URI Parameters
FieldData TypeDescription
CaliberstringThe caliber that item uses
CategoriesstringComma-separated list of valid category ids.
KeywordsstringThe keywords to use for search
ManufacturerstringName of manufacturer
ModelstringName of model
MaxPricedecimalMaximum item price
MinPricedecimalMinimum item price
SearchTypestringSearch by title or title and description. Default = 0 – Search by title.

  • 0 – Search by title
  • 1 – Search by Title and Description
SellingStatusintSearch for items that are selling or items that are not selling. Default = 0 – Both.

  • 0 – Both
  • 1 – Selling
  • 2 – Not Selling
SerialNumberstringSeller stock number.
SKUstringItem SKU
UPCstringUPC
SortintThe order in which the results are returned. Default 7 – starting date desc.

  • 2 – Item number Asc
  • 3 – Item number Desc
  • 4 – Item price Asc
  • 5 – Item price Desc
  • 6 – Starting date Asc
  • 7 – Starting date Desc
PageintPage number of the result set. Default = 1
Page SizeintPage size of the result set
RESPONSE
FieldData TypeDescription
ListingIdintListing URL
ListingUrlstringURL of listing on GunsAmerica.
BuyNowPricedecimalBuy it now price for auction listing.
CategoryIDintGunsAmerica category Id.
CategoryNamestringGunsAmerica category name.
ConditionintItem Condition:

  • 2 – NIB
  • 3 – Never fired
  • 4 – Used, As New
  • 5 – Used, Minor Wear
  • 6 – Used – See Item Description
DescriptionstringItem Description
FixedPricedecimalItem price.
InspectionPeriodintReturn policy.
1 – AS IS – No refund or exchange.
4 – Three Days from the date the item is received.
6 – Five Days from the date the item is received.
8 – Seven Days from the date the item is received.
10 – Fourteen Days from the date the item is received.
12 – 30 day money back guarantee.
14 – Factory Warranty.
IsManualboolIs item manually created or edited. If true, item cannot be updated by the API.
MfgPartNumberstringModel.
ListingEndDateDateDate when listings ends.
ListingTypestringListing Type:

  • IN – Store ad.
  • A – Auction.
  • AB – Approved bidder auction.
  • CL – Classified ad.
QuantityintQuantity
ReserverPricedecimalReserve price if item is an auction.
SerialNumberstringSeller stock number.
ShippingCoststringShipping cost.
ShippingTextstringShipping text.
SKUstringListing SKU.
TitlestringListing Title.
UPCstringListing UPC.
WeightdecimalItem weight.
WeightUnitint
  • 1 – Pounds
  • 2 – Pounds
ManufacturerstringManufacturer.
ModelstringModel
CaliberstringCaliber
Barrel lengthfloatBarrel length
Total CapacitystringCapcity
GripstringGrip material
FramestringFrame finish

Orders API Reference

This API enables dealers to monitor their orders from creation to completition. Orders can be filtered by Buyer User ID, Buyer User Name, Item ID (listingId), Seller Stock Number, Modified Date, Order Status, Created Date, and can be sorted by sort fields provided below.

API objects:

Order Detail
FieldData TypeDescription
ItemIDintListing item ID.
ItemPricedecimalThe price of the item.
QuantityintQuantity purchased.
SalesTaxRatedecimalTax rate for the item.
SalesTaxdecimalThe sales tax on the item.
IsFFLRequiredboolIs FFL Required for this item.
TitlestringTitle of the item.
WeightdecimalThe weight of the item.
WeightUnitintThe unit weight.

  • 1 – Pounds
  • 2 – Kilograms
ItemSubTotaldecimalTotal for item before taxes and discounts are applied
ThumbnailstringA fully qualified url to an image file
Buyer
FieldData TypeDescription
UserIDint
AccountStatusint
FeedbackRatingstring
IsFFLboolWhether or not the User is an FFL Dealer.
IsRegisteredUserboolWhether or not the User is a valid registered user.
IsVerifiedboolWhether or not the User is a GunsAmerica.com verified user.
UsernamestringThe User’s Username.
MemberSinceDateTimeDate user registered on GunsAmerica.
Order Line Items
FieldData TypeDescription
NotestringSeller note.
AmountdecimalLine item Amount.
CreatedOnDateTimeCreate on.
ModifiedOnDateTimeModified On
Order Notes
FieldData TypeDescription
NotestringNote note.
CreatedOnDateTimeWhen the note is entered.

GET Orders
{{url}}/api/orders

Returns your orders on GunsAmerica.

HEADERS
HeaderData TypeDescription
Content-Typeapplication/jsonThe format and encoding of the request message.
AuthorizationOAuth 2.0 access tokenOAuth 2.0 protocol used for application authentication and user authorization.
URI Parameters
FieldData TypeDescription
BuyerUserIDintUser ID on the order.
BuyerUserNamestringUser name on the order.
ItemIDintListing Id on the order detail.
OrdersModifiedSinceDatestring (DateTime)Date order was modified on.
OrderStatusintStatus of the sold order. Default = 0 – All

  • 0 – All
  • 1 – Pending Seller Review
  • 2 – Pending Buyer Confirmation
  • 3 – Pending Payment Received
  • 4 – Pending Shipment
  • 5 – Complete
  • 6 – Cancelled
  • 7 – Pending Buyer Review
SerialNumberstringSeller Stock Number on the order detail.
SortintThe field to sort on. Default = 0 – OrderID

  • 0 – Order ID
  • 1 – Buyer Name
  • 2 – Item ID
  • 3 – Order Date
  • 4 – Total Price
  • 7 – Payment Received
  • 8 – Order Picked up
SortOrderintSort direction. Default = 1 – Descending

  • 0 – Ascending
  • 1 – Descending
TimeFrameintWhen the order was created. Default = 3 – 7 days ago.

  • 1 – CreatedLast24
  • 2 – CreatedLast48
  • 3 – CreatedLastWeek
  • 4 – CreatedLast2Weeks
  • 5 – CreatedLast30Days
  • 6 – CreatedLast60Days
  • 7 – CreatedLast90Days
  • 8 – CreatedLast360Days
RESPONSE
FieldData TypeDescription
OrderIDintID of the Order
ItemIDsarray[integers]An array of itemIDs on the order
BillToNamestringBilling name
BillToAddress1stringBilling address 1
BillToAddress2stringBilling address 2
BillToCitystringBilling city
BillToStatestringBilling state
BillToPostalCodestringBilling postal code
BillToCountryCodestringBilling country code
BillToEmailstringBilling email – buyer email
BillToPhonestringBilling phone
BuyerBuyer SummaryBuyer object
CancelDateDateTimeThe date when the order was canceled.
LostCashDiscountPercentdecimalPercentage Discount lost when using a credit card.
LostCashDiscountdecimalDiscount amount lost when using a credit card.
FFLNumberstringThe FFL number on the order. (if the order needed a FFL)
FFLReceivedDateDateTimeThe date when the FFL was received.
FFLStatusstring
  • Unknown
  • Selected
  • Provide Later
  • Pickup From Seller
  • Pickup In Store
  • Arrange Local Transfer
  • Not Required
  • Not Entered
HasBuyerLeftFeedbackboolDid buyer leave feedback.
HasSellerLeftFeedbackboolDid seller leave feedback.
IsStoreOrderboolIs the order placed on Seller store on GunsAmerica.
ItemsOrder ItemList of order details.
LastModifiedDateDateTimeThe date when the order was last modified.
MiscChargedecimalAny miscellaneous up charge a seller may add.
MiscDescriptionstringThe description of any miscellaneous up charge a seller may add.
PaymentMethodskey/pair ( integer/string )
  • 4 – Personal Check
  • 8 – Visa MasterCard
  • 64 – AMEX
  • 128 – Discover
  • 8192 – Certified Check
  • 32768 – Money Order
PaymentReceivedDateDateTimeDate when the seller received payment.
OrderDateDateTimeDate when order is created.
OrderTotaldecimalOrder Total
SalesTaxTotaldecimalTotal Tax amount.
SellerUser SummaryThe Seller of the order.
SellerOrderIDstringOrder number.
ShipCarrierkey/pair ( integer/string )Shipping carrier

  • 0 – Unknown
  • 1 – FedEx
  • 2 – UPS
  • 3 – USPS
ShipCostDecimalShipping cost.
ShipDateDateTimeDate the order shipped.
ShipFromNamestringName of the seller warehouse.
ShipFromAddress1stringAddress1 of the seller warehouse.
ShipFromAddress2stringAddress2 of the seller warehouse.
ShipFromCitystringCity of the seller warehouse.
ShipFromStatestringState or provinces of the seller warehouse.
ShipFromPostalCodestringPostal code of the seller warehouse.
ShipFromEmailstringEmail of the seller warehouse.
ShipFromPhonestringPhone number of the seller warehouse.
ShipHandlingCostdecimalHandling cost.
ShipInsuranceCostdecimalInsurance cost.
ShipToNamestringBuyer name.
ShipToAddress1stringShipping address 1
ShipToAddress2stringShipping address 2
ShipToCitystringShipping city
ShipToStatestringShipping state
ShipToPostalCodestringShipping zip.
ShipToEmailstringBuyer email adrress.
ShipToPhonestringBuyer phone.
ShipTrackingNumberstringTracking number.
Statuskey/pair ( integer/string )
  • 0 – All
  • 1 – Pending Seller Review
  • 2 – Pending Buyer Confirmation
  • 3 – Pending Payment Received
  • 4 – Pending Shipment
  • 5 – Complete
  • 6 – Cancelled
  • 7 – Pending Buyer Review
PaymentReceivedboolIs payment received.
OrderNotesOrder NoteList of order notes.
OrderLineItemsOrder Line ItemList of Line Items.
IsLocalOrderboolIs order local order.

GET Order
{{url}}/api/orders/{id}

Returns order detail by order id.

HEADERS
HeaderData TypeDescription
Content-Typeapplication/jsonThe format and encoding of the request message.
AuthorizationOAuth 2.0 access tokenOAuth 2.0 protocol used for application authentication and user authorization.
INPUT – URI parameters
ParameterData TypeDescription
idintOrder ID.
Required
RESPONSE
FieldData TypeDescription
OrderIDintID of the Order
ItemIDsarray[integers]An array of itemIDs on the order
BillToNamestringBilling name
BillToAddress1stringBilling address 1
BillToAddress2stringBilling address 2
BillToCitystringBilling city
BillToStatestringBilling state
BillToPostalCodestringBilling postal code
BillToCountryCodestringBilling country code
BillToEmailstringBilling email – buyer email
BillToPhonestringBilling phone
BuyerBuyer SummaryBuyer object
CancelDateDateTimeThe date when the order was canceled.
LostCashDiscountPercentdecimalPercentage Discount lost when using a credit card.
LostCashDiscountdecimalDiscount amount lost when using a credit card.
FFLNumberstringThe FFL number on the order. (if the order needed a FFL)
FFLReceivedDateDateTimeThe date when the FFL was received.
FFLStatusstring
  • Unknown
  • Selected
  • Provide Later
  • Pickup From Seller
  • Pickup In Store
  • Arrange Local Transfer
  • Not Required
  • Not Entered
HasBuyerLeftFeedbackboolDid buyer leave feedback.
HasSellerLeftFeedbackboolDid seller leave feedback.
IsStoreOrderboolIs the order placed on Seller store on GunsAmerica.
ItemsOrder ItemList of order details.
LastModifiedDateDateTimeThe date when the order was last modified.
MiscChargedecimalAny miscellaneous up charge a seller may add.
MiscDescriptionstringThe description of any miscellaneous up charge a seller may add.
PaymentMethodskey/pair ( integer/string )
  • 4 – Personal Check
  • 8 – Visa MasterCard
  • 64 – AMEX
  • 128 – Discover
  • 8192 – Certified Check
  • 32768 – Money Order
PaymentReceivedDateDateTimeDate when the seller received payment.
OrderDateDateTimeDate when order is created.
OrderTotaldecimalOrder Total
SalesTaxTotaldecimalTotal Tax amount.
SellerUser SummaryThe Seller of the order.
SellerOrderIDstringOrder number.
ShipCarrierkey/pair ( integer/string )Shipping carrier

  • 0 – Unknown
  • 1 – FedEx
  • 2 – UPS
  • 3 – USPS
ShipCostDecimalShipping cost.
ShipDateDateTimeDate the order shipped.
ShipFromNamestringName of the seller warehouse.
ShipFromAddress1stringAddress1 of the seller warehouse.
ShipFromAddress2stringAddress2 of the seller warehouse.
ShipFromCitystringCity of the seller warehouse.
ShipFromStatestringState or provinces of the seller warehouse.
ShipFromPostalCodestringPostal code of the seller warehouse.
ShipFromEmailstringEmail of the seller warehouse.
ShipFromPhonestringPhone number of the seller warehouse.
ShipHandlingCostdecimalHandling cost.
ShipInsuranceCostdecimalInsurance cost.
ShipToNamestringBuyer name.
ShipToAddress1stringShipping address 1
ShipToAddress2stringShipping address 2
ShipToCitystringShipping city
ShipToStatestringShipping state
ShipToPostalCodestringShipping zip.
ShipToEmailstringBuyer email adrress.
ShipToPhonestringBuyer phone.
ShipTrackingNumberstringTracking number.
Statuskey/pair ( integer/string )
  • 0 – All
  • 1 – Pending Seller Review
  • 2 – Pending Buyer Confirmation
  • 3 – Pending Payment Received
  • 4 – Pending Shipment
  • 5 – Complete
  • 6 – Cancelled
  • 7 – Pending Buyer Review
PaymentReceivedboolIs payment received.
OrderNotesOrder NoteList of order notes.
OrderLineItemsOrder Line ItemList of Line Items.
IsLocalOrderboolIs order local order.

Leave a Reply