Delete a Standing Order

Use this method to delete a Standing Order.

Valid Tokens: Company and Customer.


Request


URL: https://api.kometsales.com/api/v2/standing-order/item

Method: DELETE

Content-Type: Application/JSON


authenticationToken (required)(string:50)

Komet Sales security token.


Input parameters

standingOrderId (required)(integer:20)  

Komet Sales Standing Order ID.

You can get this value from the standing-order.create API method.


standingOrderItemId (required)(number:20)

The Komet Sales Standing Order item ID.

You can get this value from the standing-order.create API method.


curl -X 'DELETE' \ 'https://api.kometsales.com/api/v2/standing-order/item?standingOrderItemId={131215}&standingOrderId={950413}' \ -H 'key: authenticationToken' \ -H 'value: u0j3ij91k2r58g6s0grbi02dor' \ -H 'type: text'

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


{ "message": "Standing Order Item was deleted successfully.", "status": 1 }

Peacock