Cancellations can be done at any time by sending a POST request to our /api/order_cancelled endpoint. Cancellations are supported on both an order and line item basis. If the line_item array is omitted then the entire order will be cancelled, otherwise, only the specified product warranties will be affected. Once cancelled, the refund will be factored into the next invoice.

Cancelling a specific warranty

HTTP method: POST

Authentication: Private Bearer Token

Staging Endpoint: https://partner-staging.getmulberry.com/api/order_cancelled

Production Endpoint: https://partner.getmulberry.com/api/order_cancelled

{
  "cancelled_date": "2018-09-04",
  "order_id": "7689dde5c0f64fffa7ad217432f6f73",
  "line_items": [{
      "product_id": "123456"
  }]
}
ParameterDefinitionRequiredType
cancelled_dateDate of the cancellationyesdate
order_idUnique order ID from your ecommerce platformyesstring
line_itemsList of product_id to cancel the warranties ofnoarray
product_idSKU of the product that you'd like to cancel the warranty ofnostring

Cancelling an entire order

HTTP method: POST

Authentication: Private Bearer Token

Staging Endpoint: https://partner-staging.getmulberry.com/api/order_cancelled

Production Endpoint: https://partner.getmulberry.com/api/order_cancelled

{
  "cancelled_date": "2018-09-04",
  "order_id": "7689dde5c0f64fffa7ad217432f6f73"
}
ParameterDefinitionRequiredType
cancelled_dateThe date of the cancellationYesstring
order_idThe unique order ID from your ecommerce platformYesstring