Add a discount to a line or the whole sale. Manual discounts need a reason and a manager or owner, and are capped

post/api/v1/baskets/{id}/discounts

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/baskets/{id}/discounts
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Path parameters

idstring required

Request body

kindstring

manual or a registered discount kind

line_idstring uuid
percent_bpsinteger
amount_minorinteger
reasonstring
dataobject
idempotency_keystring

Unique per change. Repeating it returns the original result.

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.