[Get discounts]

GET {{url}}{{public-prefix}}/discounts

Request Body

{"page"=>nil, "per_page"=>nil}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"data":[{"id":"bd9a61bd-c7f1-4920-a832-a43a5084b6f1","external_id":"e2dfa853-aba1-4512-846c-c10e42143134","name":"New discount","type":"flat","amount":"120.0","currency":"ARS","duration":"periodic","cycle_unit":"monthly","cycle_amount":10,"created_at":"2021-09-30T14:54:56-03:00","description":"A description of the discount"}],"current_page":1,"per_page":20,"total_pages":1,"total_elements":1}