object | |
created_at | string <date-time> |
discount_percentage | number or null [ 0 .. 100 ] |
discounted_amount | string or null <decimal> |
id | string <int64> |
is_monetary_discount | boolean or null |
object | |
object | |
quantity | integer |
updated_at | string <date-time> |
{- "created_at": "2019-08-24T14:15:22Z",
- "discount_percentage": 100,
- "discounted_amount": "string",
- "id": "string",
- "is_monetary_discount": true,
- "quantity": 0,
- "updated_at": "2019-08-24T14:15:22Z"
}
successful operation
{- "appointment_type_products": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "discount_percentage": 100,
- "discounted_amount": "string",
- "id": "string",
- "is_monetary_discount": true,
- "quantity": 0,
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "total_entries": 1,
}
Resource was created
Resource could not be saved due to validation errors
{- "appointment_type_id": "1",
- "discount_percentage": 100,
- "discounted_amount": "string",
- "product_id": "1",
- "quantity": 0
}
{- "created_at": "2019-08-24T14:15:22Z",
- "discount_percentage": 100,
- "discounted_amount": "string",
- "id": "string",
- "is_monetary_discount": true,
- "quantity": 0,
- "updated_at": "2019-08-24T14:15:22Z"
}
Successful operation
{- "created_at": "2019-08-24T14:15:22Z",
- "discount_percentage": 100,
- "discounted_amount": "string",
- "id": "string",
- "is_monetary_discount": true,
- "quantity": 0,
- "updated_at": "2019-08-24T14:15:22Z"
}
Resource was updated
Resource could not be saved due to validation errors
{- "discount_percentage": 100,
- "discounted_amount": "string",
- "product_id": "1",
- "quantity": 0
}
{- "created_at": "2019-08-24T14:15:22Z",
- "discount_percentage": 100,
- "discounted_amount": "string",
- "id": "string",
- "is_monetary_discount": true,
- "quantity": 0,
- "updated_at": "2019-08-24T14:15:22Z"
}