func CreateBonus(payload Bonus) (string, error) {
	data, err := json.Marshal(payload)
	if err != nil {
		return "", err
	}
	bonusData, err := makeRequest(http.MethodPost, BASE_URL+"/bonuses", data)
	bonus := bonusApiResponse{}
	if err := json.Unmarshal(bonusData, &bonus); err != nil {
		return "", err
	}
	return bonus.Result.Id, nil
}
// returns ID of post if created successfully
returns ID of post if created successfully
// returns ID of post if created successfully
func CreateBonus(payload Bonus) (string, error) {
	data, err := json.Marshal(payload)
	if err != nil {
		return "", err
	}
	bonusData, err := makeRequest(http.MethodPost, BASE_URL+"/bonuses", data)
	bonus := bonusApiResponse{}
	if err := json.Unmarshal(bonusData, &bonus); err != nil {
		return "", err
	}
	return bonus.Result.Id, nil
}
func CreateBonus ( payload Bonus ) ( string , error ) { data , err := json . Marshal ( payload ) if err != nil { return " " , err } bonusData , err := makeRequest ( http . MethodPost , BASE_URL + " " , data ) bonus := bonusApiResponse { } if err := json . Unmarshal ( bonusData , & bonus ) ; err != nil { return " " , err } return bonus . Result . Id , nil }
returns ID of post if created successfully
returns ID of post if created successfully