POST /sales.json
Body Required
-
adjustmentReasonId integer(int32) | null
Adjustment reason
-
adminNotes string | null
Admin notes
-
billingAddressLineOne string | null
Billing address line one
-
billingAddressLineTwo string | null
Billing address line two
-
billingAddressMessage string | null
Billing address message
-
billingCity string | null
Billing city
-
billingCountry string | null
Billing country
-
billingFirstName string | null
Billing first name
billingFullName object | null | array | boolean | integer | number | string
Any of: Billing full name
Billing full name
Billing full name
Billing full name
Billing full name
Billing full name
-
billingLastName string | null
Billing last name
-
billingName string | null
Billing name
-
billingState string | null
Billing state
-
billingZip string | null
Billing zip
-
cancelReason string | null
Cancel reason
Values are
customer
,fraud
,inventory
,declined
, orother
. -
Cancellation status
Values are
none
,partial
, orfull
. Default value isnone
. -
Cancelled
Default value is
false
. -
cancelledAt string(date-time) | null
Cancelled at
-
channelCancelledAt string(date-time) | null
Channel cancelled at
-
Channel
-
cityTaxLocation string | null
City tax location
-
cityTaxRate number(float) | null
City tax rate
-
cloneReason string | null
Clone reason
Values are
exchange
ornew_sale
. -
combinedTaxRate number(float) | null
Combined tax rate
-
countyTaxLocation string | null
County tax location
-
countyTaxRate number(float) | null
County tax rate
-
currencyId integer(int32) | null
Currency
-
customerId integer(int32) | null
Customer
-
customerReference string | null
Customer reference
-
Date ordered
Default value is
{}
(empty). -
Discounts
Default value is
0
. -
districtTaxRate number(float) | null
District tax rate
dropshipProblems object | null | array | boolean | integer | number | string
Any of: Dropship problems
Dropship problems
Dropship problems
Dropship problems
Dropship problems
Dropship problems
-
exchangeRate number | null
Exchange rate
-
externalChannelSiteId string | null
External channel site
-
externalId string | null
External
-
Finalized
Default value is
true
. -
intercomMessageId string | null
Intercom message
-
internalNotes string | null
Internal notes
-
invalidBillingAddress string | null
Invalid billing address
-
Invalid shipping address
Default value is
false
. -
Inventory status
Values are
notFulfilled
,partiallyFulfilled
, orfulfilled
. Default value isnotFulfilled
. -
Invoice status
Values are
notInvoiced
,partiallyInvoiced
, orinvoiced
. Default value isnotInvoiced
. -
iso string | null
Iso
-
Last fulfillment reference
Default value is
0
. -
Last purchase reference
Default value is
0
. -
Last sale return reference
Default value is
0
. -
Locked
Default value is
false
. -
Mute error
Default value is
false
. -
notes string | null
Notes
-
paid number | null
Paid
-
Payment provider ids
Default value is
[]
(empty). -
Payment status
Values are
notPaid
,partiallyPaid
, orpaid
. Default value isnotPaid
. -
Price list
-
Quantity
Default value is
0
. -
receiverAddressLineOne string | null
Receiver address line one
-
receiverAddressLineTwo string | null
Receiver address line two
-
receiverCity string | null
Receiver city
-
receiverCountry string | null
Receiver country
-
receiverName string | null
Receiver name
-
receiverState string | null
Receiver state
-
receiverZip string | null
Receiver zip
-
Reference
-
resellerId integer(int32) | null
Reseller
-
Reseller payee
Values are
reseller
orcustomer
. Default value isreseller
. -
resellerStripeChargeId string | null
Reseller stripe charge
-
Return status
Values are
notReturned
,partiallyReturned
, orreturned
. Default value isnotReturned
. -
saleDiscountCodeId integer(int32) | null
Sale discount code
-
saleId integer(int32) | null
Sale
saleReturnProblems object | null | array | boolean | integer | number | string
Any of: Sale return problems
Sale return problems
Sale return problems
Sale return problems
Sale return problems
Sale return problems
-
shippingAddressLineOne string | null
Shipping address line one
-
shippingAddressLineTwo string | null
Shipping address line two
-
Shipping address message
Default value is
false
. -
shippingCity string | null
Shipping city
-
shippingCountry string | null
Shipping country
-
shippingFirstName string | null
Shipping first name
shippingFullName object | null | array | boolean | integer | number | string
Any of: Shipping full name
Shipping full name
Shipping full name
Shipping full name
Shipping full name
Shipping full name
-
shippingLastName string | null
Shipping last name
-
shippingName string | null
Shipping name
-
shippingState string | null
Shipping state
-
shippingZip string | null
Shipping zip
-
shipstationId string | null
Shipstation
-
stateTaxLocation string | null
State tax location
-
stateTaxRate number(float) | null
State tax rate
-
Status
Values are
draft
,pending
, orfinalized
. Default value ispending
. -
Subtotal
Default value is
0
. -
Tax
Default value is
0
. -
Tax calculation
Values are
default
orcustom
. Default value isdefault
. -
Tax included
Default value is
false
. -
Tax shipping
Default value is
true
. -
Total
Default value is
0
. -
userId integer(int32) | null
User
-
Warehouse
-
Weight
Default value is
0
.
curl \
-X POST http://api.example.com/v1/sales.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"adjustmentReasonId":42,"adminNotes":"string","billingAddressLineOne":"string","billingAddressLineTwo":"string","billingAddressMessage":"string","billingCity":"string","billingCountry":"string","billingFirstName":"string","billingFullName":{},"billingLastName":"string","billingName":"string","billingState":"string","billingZip":"string","cancelReason":"customer","cancellationStatus":"none","cancelled":false,"cancelledAt":"2024-05-04T09:42:00+00:00","channelCancelledAt":"2024-05-04T09:42:00+00:00","channelId":42,"cityTaxLocation":"string","cityTaxRate":42.0,"cloneReason":"exchange","combinedTaxRate":42.0,"countyTaxLocation":"string","countyTaxRate":42.0,"currencyId":42,"customerId":42,"customerReference":"string","dateOrdered":{},"discounts":0,"districtTaxRate":42.0,"dropshipProblems":{},"exchangeRate":42.0,"externalChannelSiteId":"string","externalId":"string","finalized":true,"intercomMessageId":"string","internalNotes":"string","invalidBillingAddress":"string","invalidShippingAddress":false,"inventoryStatus":"notFulfilled","invoiceStatus":"notInvoiced","iso":"string","lastFulfillmentReference":0,"lastPurchaseReference":0,"lastSaleReturnReference":0,"locked":false,"muteError":false,"notes":"string","paid":42.0,"paymentProviderIds":[],"paymentStatus":"notPaid","priceListId":42,"quantity":0,"receiverAddressLineOne":"string","receiverAddressLineTwo":"string","receiverCity":"string","receiverCountry":"string","receiverName":"string","receiverState":"string","receiverZip":"string","reference":"string","resellerId":42,"resellerPayee":"reseller","resellerStripeChargeId":"string","returnStatus":"notReturned","saleDiscountCodeId":42,"saleId":42,"saleReturnProblems":{},"shippingAddressLineOne":"string","shippingAddressLineTwo":"string","shippingAddressMessage":false,"shippingCity":"string","shippingCountry":"string","shippingFirstName":"string","shippingFullName":{},"shippingLastName":"string","shippingName":"string","shippingState":"string","shippingZip":"string","shipstationId":"string","stateTaxLocation":"string","stateTaxRate":42.0,"status":"pending","subtotal":0,"tags":["string"],"tax":0,"taxCalculation":"default","taxIncluded":false,"taxShipping":true,"total":0,"userId":42,"warehouseId":42,"weight":0}'
{
"adjustmentReasonId": 42,
"adminNotes": "string",
"billingAddressLineOne": "string",
"billingAddressLineTwo": "string",
"billingAddressMessage": "string",
"billingCity": "string",
"billingCountry": "string",
"billingFirstName": "string",
"billingFullName": {},
"billingLastName": "string",
"billingName": "string",
"billingState": "string",
"billingZip": "string",
"cancelReason": "customer",
"cancellationStatus": "none",
"cancelled": false,
"cancelledAt": "2024-05-04T09:42:00+00:00",
"channelCancelledAt": "2024-05-04T09:42:00+00:00",
"channelId": 42,
"cityTaxLocation": "string",
"cityTaxRate": 42.0,
"cloneReason": "exchange",
"combinedTaxRate": 42.0,
"countyTaxLocation": "string",
"countyTaxRate": 42.0,
"currencyId": 42,
"customerId": 42,
"customerReference": "string",
"dateOrdered": {},
"discounts": 0,
"districtTaxRate": 42.0,
"dropshipProblems": {},
"exchangeRate": 42.0,
"externalChannelSiteId": "string",
"externalId": "string",
"finalized": true,
"intercomMessageId": "string",
"internalNotes": "string",
"invalidBillingAddress": "string",
"invalidShippingAddress": false,
"inventoryStatus": "notFulfilled",
"invoiceStatus": "notInvoiced",
"iso": "string",
"lastFulfillmentReference": 0,
"lastPurchaseReference": 0,
"lastSaleReturnReference": 0,
"locked": false,
"muteError": false,
"notes": "string",
"paid": 42.0,
"paymentProviderIds": [],
"paymentStatus": "notPaid",
"priceListId": 42,
"quantity": 0,
"receiverAddressLineOne": "string",
"receiverAddressLineTwo": "string",
"receiverCity": "string",
"receiverCountry": "string",
"receiverName": "string",
"receiverState": "string",
"receiverZip": "string",
"reference": "string",
"resellerId": 42,
"resellerPayee": "reseller",
"resellerStripeChargeId": "string",
"returnStatus": "notReturned",
"saleDiscountCodeId": 42,
"saleId": 42,
"saleReturnProblems": {},
"shippingAddressLineOne": "string",
"shippingAddressLineTwo": "string",
"shippingAddressMessage": false,
"shippingCity": "string",
"shippingCountry": "string",
"shippingFirstName": "string",
"shippingFullName": {},
"shippingLastName": "string",
"shippingName": "string",
"shippingState": "string",
"shippingZip": "string",
"shipstationId": "string",
"stateTaxLocation": "string",
"stateTaxRate": 42.0,
"status": "pending",
"subtotal": 0,
"tags": [
"string"
],
"tax": 0,
"taxCalculation": "default",
"taxIncluded": false,
"taxShipping": true,
"total": 0,
"userId": 42,
"warehouseId": 42,
"weight": 0
}
{
"adjustmentReasonId": 42,
"adminNotes": "string",
"billingAddressLineOne": "string",
"billingAddressLineTwo": "string",
"billingAddressMessage": "string",
"billingCity": "string",
"billingCountry": "string",
"billingFirstName": "string",
"billingFullName": {},
"billingLastName": "string",
"billingName": "string",
"billingState": "string",
"billingZip": "string",
"cancelReason": "customer",
"cancellationStatus": "none",
"cancelled": false,
"cancelledAt": "2024-05-04T09:42:00+00:00",
"channelCancelledAt": "2024-05-04T09:42:00+00:00",
"channelId": 42,
"cityTaxLocation": "string",
"cityTaxRate": 42.0,
"cloneReason": "exchange",
"combinedTaxRate": 42.0,
"countyTaxLocation": "string",
"countyTaxRate": 42.0,
"createdAt": "2024-05-04T09:42:00+00:00",
"currencyId": 42,
"customerId": 42,
"customerReference": "string",
"dateOrdered": {},
"discounts": 0,
"districtTaxRate": 42.0,
"dropshipProblems": {},
"exchangeRate": 42.0,
"externalChannelSiteId": "string",
"externalId": "string",
"finalized": true,
"id": 42,
"intercomMessageId": "string",
"internalNotes": "string",
"invalidBillingAddress": "string",
"invalidShippingAddress": false,
"inventoryStatus": "notFulfilled",
"invoiceStatus": "notInvoiced",
"iso": "string",
"lastFulfillmentReference": 0,
"lastPurchaseReference": 0,
"lastSaleReturnReference": 0,
"locked": false,
"muteError": false,
"notes": "string",
"paid": 42.0,
"paymentProviderIds": [],
"paymentStatus": "notPaid",
"priceListId": 42,
"quantity": 0,
"receiverAddressLineOne": "string",
"receiverAddressLineTwo": "string",
"receiverCity": "string",
"receiverCountry": "string",
"receiverName": "string",
"receiverState": "string",
"receiverZip": "string",
"reference": "string",
"resellerId": 42,
"resellerPayee": "reseller",
"resellerStripeChargeId": "string",
"returnStatus": "notReturned",
"saleDiscountCodeId": 42,
"saleId": 42,
"saleReturnProblems": {},
"shippingAddressLineOne": "string",
"shippingAddressLineTwo": "string",
"shippingAddressMessage": false,
"shippingCity": "string",
"shippingCountry": "string",
"shippingFirstName": "string",
"shippingFullName": {},
"shippingLastName": "string",
"shippingName": "string",
"shippingState": "string",
"shippingZip": "string",
"shipstationId": "string",
"stateTaxLocation": "string",
"stateTaxRate": 42.0,
"status": "pending",
"subtotal": 0,
"tags": [
"string"
],
"tax": 0,
"taxCalculation": "default",
"taxIncluded": false,
"taxShipping": true,
"total": 0,
"updatedAt": "2024-05-04T09:42:00+00:00",
"userId": 42,
"warehouseId": 42,
"weight": 0
}