Purchasing API
...
Purchasing API Docs
Purchasing

Create/Update Purchase

PUT
/api/v1/purchases/{lookupBy}/{identifier}

Create/Update an purchase

Path Parameters
lookupBy
*
identifier
*
Body Parameters
body
*
Description
SparkLayer purchase object
All Of
PurchaseBase +
type
*
purchase_identifiers
*
customer_identifiers
*
payment_method
dates
*
customer_reference
currency_code
calculated_shipping_address
calculated_total
All Of
MonetaryObject +
calculated_total_usd
All Of
MonetaryObject +
calculated_fulfilment_status
revision_date
billing_address
packages
*
One Of
Incoming
accounting_files
*
custom_fields
*
metadata
Responses
200
Description
SparkLayer purchase object
All Of
PurchaseBase +
type
*
purchase_identifiers
*
customer_identifiers
*
payment_method
dates
*
customer_reference
currency_code
calculated_shipping_address
calculated_total
All Of
MonetaryObject +
calculated_total_usd
All Of
MonetaryObject +
calculated_fulfilment_status
revision_date
billing_address
packages
*
One Of
Incoming
accounting_files
*
custom_fields
*
metadata
403
Trying to update purchase SparkLayer ID, which is immutable
404
Error Response
409
A conflict has occurred
500
Error Response




Updated 24 Sep 2024
Did this page help you?